(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2680,e=>{"use strict";var n=e.i(54710),t=e.i(34416),i=e.i(45958),s=e.i(40807),l=e.i(28022),r=e.i(12878),o=e.i(53663);let c=new Set(["/","/activity","/analytics","/chat","/connections","/connections/calendar","/connections/repositories","/connections/journal","/connections/knowledge","/connections/mail","/connections/mcp","/connections/messaging","/connections/routines","/connections/tasks","/conversations","/docs","/knowledge","/reading","/schedule","/settings","/settings/advanced","/settings/backends","/settings/commands","/settings/connections","/settings/journal","/settings/messaging","/settings/models","/settings/processes","/settings/routines","/settings/schedule","/settings/wiki","/setup","/tasks","/wiki","/wiki/timeline"]);var u=e.i(45492);let a=/^[a-z][a-z0-9+.-]*:/i;e.i(32896);var d=e.i(45244);let h=[r.default,u.remarkCitations];function f(e){return e.startsWith("pa-doc:")?e:(0,l.defaultUrlTransform)(e)}let g=(0,t.memo)(function({body:e,currentSlug:l,onCitationClick:r,onRendered:d}){(0,t.useEffect)(()=>{d?.()},[e,d]);let g=(0,t.useMemo)(()=>({a:({href:e,children:t,...i})=>{let s=e?(0,u.parsePaDocHref)(e):null;if(s)return(0,n.jsx)(o.CitationPill,{slug:s.slug,anchor:s.anchor,onClick:r});let c=e&&l?function(e,n){if(!n||a.test(n)||n.startsWith("#")||n.startsWith("/"))return null;let t=n.indexOf("#"),i=-1===t?n:n.slice(0,t),s=-1===t?null:n.slice(t+1)||null;if(!i.endsWith(".md"))return null;let l=[...e.split("/").slice(0,-1)];for(let e of i.split("/"))if(""!==e&&"."!==e){if(".."===e){if(0===l.length)return null;l.pop();continue}l.push(e)}if(0===l.length)return null;let r=l[l.length-1];if(!r.endsWith(".md"))return null;let o=r.slice(0,-3);return o?(l[l.length-1]=o,{slug:l.join("/"),anchor:s}):null}(l,e):null;if(c){let e=c.anchor?`/docs/${c.slug}#${c.anchor}`:`/docs/${c.slug}`;return(0,n.jsx)("a",{...i,href:e,onClick:e=>{e.defaultPrevented||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button||(e.preventDefault(),r(c.slug,c.anchor))},children:t})}return(0,n.jsx)("a",{...i,href:e,target:"_blank",rel:"noopener noreferrer",children:t})},code:({children:e,...t})=>{let s=m(e);if(!s||s.includes("\n"))return(0,n.jsx)("code",{...t,children:e});let l=function(e){if("string"!=typeof e||0===e.length||!e.startsWith("/")||/\s/.test(e)||e.includes("...")||e.includes(":"))return null;let n=e,t="",i=n.indexOf("#");-1!==i&&(t=n.slice(i)+t,n=n.slice(0,i));let s=n.indexOf("?");return(-1!==s&&(t=n.slice(s)+t,n=n.slice(0,s)),c.has(n))?`${n}${t}`:null}(s);return l?(0,n.jsx)(i.default,{href:l,className:"docs-route-chip",title:`Open ${s}`,children:s}):(0,n.jsx)("code",{...t,children:e})},h1:({children:e,...t})=>(0,n.jsx)("h2",{id:p(e),...t,children:e}),h2:({children:e,...t})=>(0,n.jsx)("h2",{id:p(e),...t,children:e}),h3:({children:e,...t})=>(0,n.jsx)("h3",{id:p(e),...t,children:e})}),[l,r]);return(0,n.jsx)(s.default,{remarkPlugins:h,urlTransform:f,components:g,children:e})});function p(e){return(0,d.slugifyAnchor)(m(e))}function m(e){return null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(m).join(""):"object"==typeof e&&"props"in e?m(e.props.children):""}e.s(["DocsMarkdownBody",0,g],2680)},16909,e=>{e.n(e.i(2680))}]);