@inkeep/open-knowledge 0.9.0-beta.26 → 0.9.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/assets/skills/discovery/SKILL.md +1 -1
  2. package/dist/assets/skills/project/SKILL.md +1 -1
  3. package/dist/cli.mjs +4 -4
  4. package/dist/constants-yQMG37yV.mjs +2 -0
  5. package/dist/{dist-DlmFeQ-H.mjs → dist-BCZuoJER.mjs} +1 -1
  6. package/dist/{dist-q5PZFM5z.mjs → dist-ByvLyk9y.mjs} +5 -5
  7. package/dist/{gh-detect-BA7tlPzY.mjs → gh-detect-CqUbPTBu.mjs} +2 -2
  8. package/dist/index.mjs +1 -1
  9. package/dist/init-C_CcUzoQ.mjs +1 -0
  10. package/dist/{init-B_sTXRIk.mjs → init-DmYIeCrf.mjs} +4 -4
  11. package/dist/{loader-BKlVklj3.mjs → loader-CIwTcwam.mjs} +2 -2
  12. package/dist/loader-D9OcZAto.mjs +1 -0
  13. package/dist/preview-D3XWNUXr.mjs +1 -0
  14. package/dist/{preview-CbI4FLL_.mjs → preview-WKTU_wvv.mjs} +2 -2
  15. package/dist/public/assets/{ActivityModeContent-DBUlDDd_.js → ActivityModeContent-Cz7HZdxs.js} +1 -1
  16. package/dist/public/assets/DocumentContext-wZvOgCCn.js +61 -0
  17. package/dist/public/assets/{GraphPanel-DQPd07Df.js → GraphPanel-C5pLKrxb.js} +3 -3
  18. package/dist/public/assets/{SettingsDialogBody-Ds0lg6RZ.js → SettingsDialogBody-HooMlU8-.js} +2 -2
  19. package/dist/public/assets/{SourceEditor-DypG3lee.js → SourceEditor-CfJ6WNEg.js} +1 -1
  20. package/dist/public/assets/config-validation-events-BK_gNN4-.js +12 -0
  21. package/dist/public/assets/index-DaMo-5Vm.js +1917 -0
  22. package/dist/public/assets/index-yD6IS9UB.css +1 -0
  23. package/dist/public/assets/{prop-types-BukjUPXR.js → prop-types-CA8UtCKL.js} +2 -2
  24. package/dist/public/assets/{target-navigation-intent-B9ffyxAO.js → target-navigation-intent-DZ9slDU6.js} +1 -1
  25. package/dist/public/assets/{typing-burst-detector-Dd3NE2ME.js → typing-burst-detector-BqHUZnAN.js} +1 -1
  26. package/dist/public/index.html +7 -7
  27. package/dist/{repair-launch-json-3jIkDqw3.mjs → repair-launch-json-Qdwhu3RT.mjs} +2 -2
  28. package/dist/{repair-mcp-configs-DDnS29FF.mjs → repair-mcp-configs-BSNmCvKG.mjs} +2 -2
  29. package/dist/repair-skills-DQQOhELx.mjs +1 -0
  30. package/dist/{repair-skills-BxGSose1.mjs → repair-skills-Dzigqc9G.mjs} +2 -2
  31. package/dist/{server-lock-BpjJj3OD-C5eNAMGL.mjs → server-lock-BpjJj3OD-DxHkfAmg.mjs} +3 -3
  32. package/dist/server-lock-CyhBidkz-CT18eT26.mjs +1 -0
  33. package/dist/{src-BuCQLQDk.mjs → src-usX5rKt6.mjs} +2 -2
  34. package/dist/start-BKts1yE2.mjs +1 -0
  35. package/dist/{start-CrVLGEqx.mjs → start-CKM4dTtb.mjs} +2 -2
  36. package/dist/{write-project-skill--cARlVJ3.mjs → write-project-skill-CM3q8lZC.mjs} +2 -2
  37. package/package.json +1 -1
  38. package/dist/constants-D5I52lz_.mjs +0 -2
  39. package/dist/init-DMpyz77j.mjs +0 -1
  40. package/dist/loader-DBzd0LoE.mjs +0 -1
  41. package/dist/preview-CrDrdqqT.mjs +0 -1
  42. package/dist/public/assets/DocumentContext-Db4QZJLh.js +0 -61
  43. package/dist/public/assets/config-validation-events-_VhVoID2.js +0 -12
  44. package/dist/public/assets/index-BClOnUHN.css +0 -1
  45. package/dist/public/assets/index-Dt0YPYjG.js +0 -1917
  46. package/dist/repair-skills-Cn_FcRjU.mjs +0 -1
  47. package/dist/server-lock-CyhBidkz-mFPU94zN.mjs +0 -1
  48. package/dist/start-BwuKO3na.mjs +0 -1
@@ -461,7 +461,7 @@ Read more at https://docs.orama.com/docs/orama-js/plugins/plugin-secure-proxy#pl
461
461
  `)}function _0(e,t,n,r){let i=t=>f0(g0(e,t,n),r)<=a0;if(i(t))return t;let a=0,o=t.length;for(;a<o;){let e=Math.ceil((a+o)/2);i(t.slice(0,e).trimEnd()+c0)?a=e:o=e-1}let s=t.slice(0,a).trimEnd();return s===``?``:s+c0}function v0(e){let t=t0(e.relativePath),n=h0(t,e.instruction,e.selectionMarkdown);return f0(n,e.target)<=a0?n:g0(t,_0(t,e.instruction,e.selectionMarkdown,e.target),e.selectionMarkdown)}function y0(e){if(e.length===0)return{ok:!1,reason:`docName must not be empty`};if(e.trim().length===0)return{ok:!1,reason:`docName must not be blank (whitespace only)`};if(e!==e.trim())return{ok:!1,reason:`docName must not have leading or trailing whitespace`};for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<32||n===127)return{ok:!1,reason:`docName must not contain control characters`}}if(e.includes(`..`)||e.startsWith(`/`)||e.includes(`\\`))return{ok:!1,reason:`docName must not contain "..", a leading "/", or a backslash`};for(let t of e.split(`/`)){if(t.length===0)return{ok:!1,reason:`docName must not contain empty path segments (no leading, trailing, or doubled "/")`};if(t.startsWith(`.`))return{ok:!1,reason:`docName path segments must not start with "." (hidden files are not addressable)`}}return{ok:!0}}function b0(e){return y0(e).ok}var x0=`docName is empty, blank, or has an invalid shape (no "..", leading "/" or whitespace, hidden-dot segments, empty segments, or control characters)`,S0=A().refine(e=>b0(e),{message:x0}).optional(),C0=A().min(1).refine(e=>b0(e),{message:x0}),w0={agentId:A().optional(),agentName:A().optional(),colorSeed:A().optional(),clientName:A().optional(),clientVersion:A().optional(),label:A().optional()},T0=A().optional(),E0=/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;N({docPath:A().min(1)}).loose();var D0=P([`no-remote`,`detached-head`,`branch-not-on-origin`,`non-github-remote`,`invalid-path`]),O0=Za(`ok`,[N({ok:F(!0),shareUrl:A().min(1),blobUrl:A().min(1),branch:A().min(1)}).loose(),N({ok:F(!1),error:D0,branch:A().min(1).optional()}).loose()]),k0=P([`user`,`org`]),A0=N({login:A().min(1),kind:k0,avatarUrl:A().optional()}).loose(),j0=P([`auth-required`,`network`]),M0=Za(`ok`,[N({ok:F(!0),owners:M(A0)}).loose(),N({ok:F(!1),error:j0}).loose()]),N0=Za(`ok`,[N({ok:F(!0),available:Ra()}).loose(),N({ok:F(!1),error:j0}).loose()]),P0=P([`public`,`private`]);N({owner:A().min(1),name:A().min(1),visibility:P0,description:A().optional()}).loose();var F0=P([`name-conflict`,`saml-sso`,`auth-required`,`push-failed`,`init-failed`,`network`,`no-project`]),I0=Za(`ok`,[N({ok:F(!0),ownerLogin:A().min(1),repoName:A().min(1),cloneUrl:A().min(1),defaultBranch:A().min(1)}).loose(),N({ok:F(!1),error:F0}).loose()]);function L0(e){return!(typeof e!=`string`||e.length===0||e.startsWith(`-`)||/[\x00-\x1F\x7F]/.test(e)||/\s/.test(e)||e.includes(`:`)||e.split(`/`).includes(`..`))}var R0=e=>e.refine(L0,`invalid branch name`),z0={shareFileExists:Ra(),dirtyConflicts:N({conflicts:Ra(),files:M(A().min(1))}).loose(),branchIsLocal:Ra()};Za(`detached`,[N({detached:F(!1),currentBranch:A().min(1).nullable(),currentHeadSha:Ba(),...z0}).loose(),N({detached:F(!0),currentBranch:Ba(),currentHeadSha:A().min(1),...z0}).loose()]),N({branch:R0(A().min(1)),principalId:A().optional()}).loose();var B0=P([`dirty-conflict`,`branch-not-found`,`fetch-failed`,`checkout-failed`,`branch-in-other-worktree`]);Za(`ok`,[N({ok:F(!0)}).loose(),N({ok:F(!1),reason:B0,files:M(A().min(1)).optional(),otherWorktreePath:A().min(1).optional()}).loose()]);var V0=N({serverInstanceId:A().min(1),currentBranch:A().min(1).optional(),currentDiskAckSVs:to(A().min(1),A().min(1)).optional()}).loose(),H0=N({id:A().min(1),display_name:A().min(1),display_email:A(),source:P([`git-config`,`synthesized`]),created_at:A().min(1)}).loose();N({collabUrl:A().nullable(),previewUrl:A().nullable(),port:j(),paneTarget:A().nullable()}).loose();var U0=N({type:P(`urn:ok:error:malformed-upload.urn:ok:error:collision-exhaustion.urn:ok:error:storage-full.urn:ok:error:storage-readonly.urn:ok:error:storage-error.urn:ok:error:no-file-received.urn:ok:error:path-escape.urn:ok:error:method-not-allowed.urn:ok:error:invalid-request.urn:ok:error:payload-too-large.urn:ok:error:request-timeout.urn:ok:error:internal-server-error.urn:ok:error:loopback-required.urn:ok:error:invalid-origin.urn:ok:error:url-not-allowed.urn:ok:error:dir-outside-home.urn:ok:error:concurrent-operation.urn:ok:error:clone-failed.urn:ok:error:clone-timeout.urn:ok:error:server-start-failed.urn:ok:error:reserved-doc-name.urn:ok:error:target-not-found.urn:ok:error:stale-target.urn:ok:error:frontmatter-edit-not-supported.urn:ok:error:invalid-frontmatter-patch.urn:ok:error:frontmatter-malformed.urn:ok:error:no-active-session.urn:ok:error:too-many-agent-sessions.urn:ok:error:doc-not-found.urn:ok:error:doc-already-exists.urn:ok:error:doc-not-open.urn:ok:error:rollback-not-configured.urn:ok:error:doc-not-available.urn:ok:error:backlink-index-not-configured.urn:ok:error:file-rescan-not-configured.urn:ok:error:shadow-not-configured.urn:ok:error:host-not-allowed.urn:ok:error:principal-not-available.urn:ok:error:not-found.urn:ok:error:auth-failed.urn:ok:error:no-project-dir.urn:ok:error:server-open-failed.urn:ok:error:doc-in-conflict.urn:ok:error:no-conflict-tracked.urn:ok:error:sync-not-active.urn:ok:error:project-repo-not-configured.urn:ok:error:seed-prerequisite-missing.urn:ok:error:seed-invalid-root.urn:ok:error:tag-index-not-configured.urn:ok:error:template-not-found.urn:ok:error:unsupported-asset-type.urn:ok:error:asset-not-found.urn:ok:error:collab-server-not-running.urn:ok:error:gateway-timeout.urn:ok:error:cursor-not-installed.urn:ok:error:cursor-spawn-timeout.urn:ok:error:cursor-spawn-failed.urn:ok:error:handoff-target-not-installed.urn:ok:error:handoff-spawn-timeout.urn:ok:error:handoff-spawn-failed`.split(`.`)),title:A().min(1),status:j().int().min(400).max(599),instance:A().regex(E0,`instance must be urn:uuid:<uuid>`).optional(),detail:A().optional()}).loose();N({parentDocName:A().min(1),agentId:A().min(1).optional(),agentName:A().min(1).optional()}).loose();var W0=N({src:A().min(1),path:A().min(1).optional(),deduped:Ra().optional()}).loose();N({url:A().min(1),dir:A().min(1),branch:A().min(1).refine(L0,`invalid branch name`).optional()}).loose(),N({type:F(`error`),problem:U0}).loose();function G0(e){return`https://claude.ai/new?q=${encodeURIComponent(e)}`}var K0=8192,q0=32768,J0=`…[truncated]`;function Y0(e){let t=e.trim();if(t.length===0||t[0]!==`{`)return null;let n;try{n=JSON.parse(t)}catch{return null}if(typeof n!=`object`||!n||Array.isArray(n))return null;let r=n;return{event:typeof r.event==`string`?r.event:void 0,fields:r}}function X0(e){return e.length<=8192?e:`${e.slice(0,K0-12)}${J0}`}var Z0=/notionvc:/i,Q0=()=>e=>{$0(e)&&(e2(e),t2(e))};function $0(e){if(!(`children`in e)||!Array.isArray(e.children))return!1;for(let t of e.children){if(t.type===`comment`){let e=String(t.value??``);if(Z0.test(e))return!0}if(t.type===`element`&&$0(t))return!0}return!1}function e2(e){if(!(`children`in e)||!Array.isArray(e.children))return;for(let t of e.children)t.type===`element`&&e2(t);let t=[];for(let n of e.children){if(n.type!==`text`){t.push(n);continue}let e=String(n.value??``);if(!e.includes(`
462
462
  `)){t.push(n);continue}let r=e.split(`
463
463
  `);for(let e=0;e<r.length;e++)r[e]&&t.push({type:`text`,value:r[e]??``}),e<r.length-1&&t.push({type:`element`,tagName:`br`,properties:{},children:[]})}e.children=t}function t2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){e.children=e.children.filter(e=>e.type===`comment`?!Z0.test(String(e.value??``)):!0);for(let t of e.children)t.type===`element`&&t2(t)}}var n2=new Set([`Apple-tab-span`,`Apple-converted-space`,`Apple-style-span`]),r2=()=>e=>{i2(e)};function i2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&i2(t);e.children=e.children.flatMap(e=>{if(e.type!==`element`)return[e];let t=e;return a2(t)?[]:o2(t)?t.children:[t]})}}function a2(e){if(e.tagName!==`meta`)return!1;let t=e.properties?.name,n=e.properties?.content;return t===`Generator`&&typeof n==`string`&&/Cocoa/i.test(n)}function o2(e){if(e.tagName!==`span`)return!1;let t=e.properties?.className;return Array.isArray(t)?t.length>0&&t.every(e=>n2.has(String(e))):!1}var s2=`docs-internal-guid-`;function c2(e,t){let n=e.children[t];!n||n.type!==`element`||e.children.splice(t,1,...n.children)}var l2=()=>e=>{u2(e)};function u2(e){if(!(`children`in e)||!Array.isArray(e.children))return;for(let t of e.children)t.type===`element`&&u2(t);let t=0;for(;t<e.children.length;){let n=e.children[t];if(!n||n.type!==`element`){t++;continue}let r=n;if(d2(r)||f2(r)){c2(e,t);continue}t++}}function d2(e){if(e.tagName!==`b`)return!1;let t=e.properties?.id;return typeof t==`string`&&t.startsWith(s2)}function f2(e){if(e.tagName!==`div`||e.properties?.dir!==`ltr`)return!1;let t=e.children.filter(e=>e.type===`element`);return t.length===1?t[0]?.tagName===`table`:!1}var p2=new Set([`commit-link`,`user-mention`,`team-mention`,`issue-link`]),m2=()=>e=>{h2(e)};function h2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&h2(t);for(let t of e.children)t.type===`element`&&g2(t)}}function g2(e){if(!e.properties)return;for(let t of Object.keys(e.properties))t.startsWith(`dataHovercard`)&&delete e.properties[t];let t=e.properties.className;if(Array.isArray(t)){let n=t.filter(e=>!p2.has(String(e)));n.length===0?delete e.properties.className:e.properties.className=n}}var _2=/^gmail_/,v2=()=>e=>{y2(e)};function y2(e){if(!(`children`in e)||!Array.isArray(e.children))return;for(let t of e.children)t.type===`element`&&y2(t);let t=0;for(;t<e.children.length;){let n=e.children[t];if(n.type!==`element`){t++;continue}let r=n;if(r.tagName===`div`&&b2(r,`gmail_quote`)&&(r.tagName=`blockquote`),x2(r),S2(r)){e.children.splice(t,1,...r.children);continue}t++}}function b2(e,t){let n=e.properties?.className;return Array.isArray(n)?n.some(e=>String(e)===t):!1}function x2(e){let t=e.properties?.className;if(!Array.isArray(t))return;let n=t.filter(e=>!_2.test(String(e)));n.length===0?delete e.properties?.className:e.properties&&(e.properties.className=n)}function S2(e){if(e.tagName!==`div`||e.properties?.dir!==`ltr`)return!1;let t=e.properties?.className;return t!=null&&!(Array.isArray(t)&&t.length===0)?!1:e.children.filter(e=>e.type===`element`).length<=1}var C2=()=>e=>{w2(e)};function w2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&w2(t);e.children=e.children.flatMap(e=>{if(e.type!==`element`)return[e];let t=e;return t.tagName===`google-sheets-html-origin`?t.children:t.tagName===`style`?[]:(T2(t),[t])})}}function T2(e){if(e.properties)for(let t of Object.keys(e.properties))t.startsWith(`dataSheets`)&&delete e.properties[t]}var E2=[`o:`,`w:`,`m:`,`v:`,`u1:`],D2=/^Mso[A-Z]/,O2=/^\s*\[if\s+[^\]]*\]/,k2=()=>e=>{A2(e)};function A2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&A2(t);e.children=e.children.flatMap(e=>{if(e.type===`comment`){let t=String(e.value??``);return O2.test(t)?[]:[e]}if(e.type!==`element`)return[e];let t=e;return j2(t)?[]:(M2(t),[t])})}}function j2(e){return E2.some(t=>e.tagName.startsWith(t))}function M2(e){let t=e.properties;if(!t)return;let n=t.className;if(Array.isArray(n)){let e=n.filter(e=>typeof e==`string`&&!D2.test(e));e.length===0?delete t.className:t.className=e}else typeof n==`string`&&D2.test(n)&&delete t.className;let r=t.style;typeof r==`string`&&/mso-/i.test(r)&&delete t.style;for(let e of Object.keys(t))if(e.startsWith(`xmlns:`)){let n=e.slice(6);E2.some(e=>e===`${n}:`)&&delete t[e]}}var N2=/^c-(message_kit__|message__|compose|timestamp)/,P2=()=>e=>{F2(e)};function F2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&F2(t);e.children=e.children.flatMap(e=>{if(e.type!==`element`)return[e];let t=e;return I2(t)?[]:(L2(t),[t])})}}function I2(e){let t=e.properties?.className;return Array.isArray(t)?t.some(e=>String(e)===`c-timestamp`||String(e).startsWith(`c-timestamp`)):!1}function L2(e){let t=e.properties?.className;if(!Array.isArray(t))return;let n=t.filter(e=>!N2.test(String(e)));n.length===0?delete e.properties?.className:e.properties&&(e.properties.className=n)}var R2=()=>e=>{z2(e)};function z2(e){if(!(!(`children`in e)||!Array.isArray(e.children))){for(let t of e.children)t.type===`element`&&z2(t);for(let t=0;t<e.children.length;t++){let n=e.children[t];if(n.type!==`element`)continue;let r=n;B2(r)&&(e.children[t]=H2(r))}}}function B2(e){if(e.tagName!==`div`)return!1;let t=e.children.filter(e=>e.type===`element`&&e.tagName===`div`);return t.length<2?!1:t.some(e=>V2(e))}function V2(e){for(let t of e.children){if(t.type!==`element`)continue;let e=t,n=e.properties?.style;if(typeof n==`string`&&/color\s*:/i.test(n)||V2(e))return!0}return!1}function H2(e){return{type:`element`,tagName:`pre`,properties:{},children:[{type:`element`,tagName:`code`,properties:{},children:[{type:`text`,value:e.children.filter(e=>e.type===`element`&&e.tagName===`div`).map(e=>U2(e)).join(`
464
- `)}]}]}}function U2(e){let t=``;for(let n of e.children)n.type===`text`?t+=n.value??``:n.type===`element`&&(t+=U2(n));return t}var W2=class extends Error{htmlBytes;maxBytes;constructor(e,t){super(`HTML payload (${e} bytes) exceeds htmlToMdast ceiling (${t} bytes); falling through to plain text`),this.name=`HtmlPayloadTooLargeError`,this.htmlBytes=e,this.maxBytes=t}},G2=[l2,k2,r2,v2,Q0,R2,C2,P2,m2];function K2(e){TP(e,e=>{e.type===`strong`?(e.data??={},e.data.sourceDelimiter=`**`):e.type===`emphasis`?(e.data??={},e.data.sourceDelimiter=`*`):e.type===`inlineCode`?(e.data??={},e.data.sourceFenceChar="`",e.data.sourceFenceLength=1):e.type===`code`&&(e.data??={},e.data.sourceFenceChar="`",e.data.sourceFenceLength=3)})}function q2(e,t){let n=t?.maxBytes??5242880;if(e.length>n)throw new W2(e.length,n);let r=gH().use(CN,{fragment:!0});for(let e of G2)r.use(e);for(let e of t?.additionalCleanupPlugins??[])r.use(e);r.use(wI);let i=r.parse(e),a=r.runSync(i);return K2(a),a}function J2(e){return String(gH().use(sH).use(cH).stringify(e))}function Y2(e,t){let n=Array.isArray(e.attrs.attributes)?e.attrs.attributes.filter(e=>typeof e==`object`&&!!e&&`type`in e):[],r=e.attrs.props??{},i=new Map,a=new Set;if(t)for(let e of t)e.omitOnDefault===!0&&`defaultValue`in e&&e.defaultValue!==void 0&&i.set(e.name,e.defaultValue),e.type===`string`&&e.required===!1&&e.defaultValue===void 0&&a.add(e.name);for(let[e,t]of Object.entries(r)){let r=n.findIndex(t=>t.type===`mdxJsxAttribute`&&t.name===e);if(i.has(e)&&Object.is(i.get(e),t)){r>=0&&n.splice(r,1);continue}if(a.has(e)&&t===``){r>=0&&n.splice(r,1);continue}let o=X2(e,t);r>=0?n[r]=o:n.push(o)}return n}function X2(e,t){if(t===!0)return{type:`mdxJsxAttribute`,name:e,value:null};if(t===!1)return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:`false`}};if(t==null)return{type:`mdxJsxAttribute`,name:e,value:null};if(typeof t==`string`)return{type:`mdxJsxAttribute`,name:e,value:t};if(typeof t==`number`)return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:JSON.stringify(t)}};if(typeof t==`object`){let n;try{n=JSON.stringify(t)}catch{n=String(t)}return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:n}}}return{type:`mdxJsxAttribute`,name:e,value:String(t)}}function Z2(e,t,n,r){return{type:`mdxJsxFlowElement`,name:e,attributes:Y2(t,r),children:n.all(t),data:{}}}var Q2=/^[A-Za-z0-9]{20,}$/,$2=/^(?:\d+s?|(?:\d+h)?(?:\d+m)?(?:\d+s)?)$/;function e4(e){let t=e.toLowerCase();return t===`loom.com`||t===`www.loom.com`}function t4(e){let t=e.pathname.match(/^\/(?:share|embed)\/([A-Za-z0-9]+)\/?$/);if(!t)return null;let n=t[1]??``;return Q2.test(n)?n:null}function n4(e){if(typeof e!=`string`||e.length===0)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`http:`&&t.protocol!==`https:`||!e4(t.hostname))return null;let n=t4(t);if(!n)return null;let r=t.searchParams.get(`t`);return{id:n,startRaw:r&&r.length>0&&$2.test(r)?r:null}}function r4(e){return n4(e)!==null}function i4(e){let t=e.toLowerCase();return t===`vimeo.com`||t===`www.vimeo.com`||t===`player.vimeo.com`}function a4(e){if(typeof e!=`string`||e.length===0)return!1;let t;try{t=new URL(e)}catch{return!1}return t.protocol!==`http:`&&t.protocol!==`https:`?!1:i4(t.hostname)}var o4=/^[A-Za-z0-9_-]{11}$/;function s4(e){let t=e.toLowerCase();return t===`youtube.com`||t===`www.youtube.com`||t===`m.youtube.com`||t===`music.youtube.com`||t===`youtu.be`||t===`youtube-nocookie.com`||t===`www.youtube-nocookie.com`}function c4(e){if(e.length===0)return null;if(/^[0-9]+$/.test(e)){let t=Number.parseInt(e,10);return t>0?t:null}let t=e.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s?)?$/);if(!t)return null;let n=t[1]?Number.parseInt(t[1],10):0,r=t[2]?Number.parseInt(t[2],10):0,i=t[3]?Number.parseInt(t[3],10):0,a=n*3600+r*60+i;return a>0?a:null}function l4(e){if(e.hostname.toLowerCase()===`youtu.be`){let t=e.pathname.replace(/^\//,``).split(`/`)[0]??``;return o4.test(t)?t:null}if(e.pathname===`/watch`){let t=e.searchParams.get(`v`)??``;return o4.test(t)?t:null}let t=e.pathname.match(/^\/(?:embed|shorts|v)\/([A-Za-z0-9_-]{11})\/?$/);return t?t[1]??null:null}function u4(e){if(typeof e!=`string`||e.length===0)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`http:`&&t.protocol!==`https:`||!s4(t.hostname))return null;let n=l4(t);if(!n)return null;let r=t.searchParams.get(`t`)??t.searchParams.get(`start`)??``;return{id:n,startSeconds:r.length>0?c4(r):null,noCookie:t.hostname.toLowerCase().endsWith(`youtube-nocookie.com`)}}var d4=[{name:`type`,type:`enum`,enumValues:[`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`],defaultValue:`note`,required:!1,description:`Callout variant`},{name:`title`,type:`string`,required:!1,description:`Optional heading shown above the body`},{name:`icon`,type:`string`,required:!1,advanced:!0,description:"Custom lucide icon override (e.g. `lucide:Lightbulb`)"},{name:`color`,type:`string`,required:!1,advanced:!0,description:"Optional accent color override (hex — e.g. `#F05032`)"},{name:`collapsible`,type:`boolean`,required:!1,defaultValue:!1,advanced:!0,description:"Render as a foldable `<details>` (Obsidian `[!TYPE]+/-`)"},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,description:`When collapsible, start in the open state`,hideWhen:e=>e.collapsible!==!0},{name:`children`,type:`reactnode`,required:!0,description:`Callout content`}],f4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Image source URL`,accept:y$,autoFocus:!0},{name:`alt`,type:`string`,required:!0,description:`Alt text`},{name:`width`,type:`number`,required:!1,advanced:!0,description:`Image width`},{name:`height`,type:`number`,required:!1,advanced:!0,description:`Image height`},{name:`srcset`,type:`string`,required:!1,advanced:!0,description:`Responsive image candidate set (e.g. "x.png 1x, y.png 2x")`},{name:`sizes`,type:`string`,required:!1,advanced:!0,description:`Responsive image sizes hint paired with srcset`},{name:`loading`,type:`enum`,enumValues:[`eager`,`lazy`],defaultValue:`lazy`,required:!1,advanced:!0,omitOnDefault:!0,description:`Native img loading strategy (defaults to lazy)`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`decoding`,type:`enum`,enumValues:[`sync`,`async`,`auto`],defaultValue:`auto`,required:!1,advanced:!0,omitOnDefault:!0,description:`Hint for how the browser should decode the image`},{name:`fetchpriority`,type:`enum`,enumValues:[`high`,`low`,`auto`],defaultValue:`auto`,required:!1,advanced:!0,omitOnDefault:!0,description:`Resource fetch priority hint`},{name:`crossorigin`,type:`enum`,enumValues:[`anonymous`,`use-credentials`],required:!1,advanced:!0,description:`CORS mode for the image fetch`},{name:`referrerpolicy`,type:`string`,required:!1,advanced:!0,description:`Referrer policy for the image fetch (HTML referrerpolicy values)`},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],p4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Embedded page URL (must start with http:// or https://)`,autoFocus:!0},{name:`title`,type:`string`,required:!1,description:`Iframe title (accessible label for screen readers)`},{name:`width`,type:`string`,required:!1,advanced:!0,description:`Embed width as a CSS length (e.g. "100%", "640px")`},{name:`height`,type:`string`,required:!1,advanced:!0,description:`Embed height as a CSS length (e.g. "26rem", "480px")`},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],m4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Video source URL`,accept:b$,autoFocus:!0},{name:`controls`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,omitOnDefault:!0,description:`Show native HTML5 video controls (defaults to true)`,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`autoplay`,type:`boolean`,required:!1,advanced:!0,description:`Begin playback as soon as possible (usually requires muted)`},{name:`poster`,type:`string`,required:!1,advanced:!0,description:`Poster image URL shown before playback`,accept:y$,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`width`,type:`number`,required:!1,advanced:!0,description:`Video width`},{name:`height`,type:`number`,required:!1,advanced:!0,description:`Video height`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`muted`,type:`boolean`,required:!1,advanced:!0,description:`Mute audio on load`},{name:`loop`,type:`boolean`,required:!1,advanced:!0,description:`Restart from the beginning when playback ends`,hideWhen:e=>typeof e.src==`string`&&r4(e.src)},{name:`playsinline`,type:`boolean`,required:!1,advanced:!0,description:`Play inline on iOS rather than entering fullscreen`,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`preload`,type:`enum`,enumValues:[`none`,`metadata`,`auto`],required:!1,advanced:!0,description:`Hint for how much of the video to preload`,hideWhen:e=>typeof e.src==`string`&&(u4(e.src)!==null||a4(e.src)||r4(e.src))},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],h4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Audio source URL`,accept:x$,autoFocus:!0},{name:`controls`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,omitOnDefault:!0,description:`Show native HTML5 audio controls (defaults to true)`},{name:`autoplay`,type:`boolean`,required:!1,advanced:!0,description:`Begin playback as soon as possible (usually requires muted)`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`muted`,type:`boolean`,required:!1,advanced:!0,description:`Mute audio on load`},{name:`loop`,type:`boolean`,required:!1,advanced:!0,description:`Restart from the beginning when playback ends`},{name:`preload`,type:`enum`,enumValues:[`none`,`metadata`,`auto`],required:!1,advanced:!0,description:`Hint for how much of the audio to preload`}],g4=[{name:`title`,type:`string`,required:!0,description:`Accordion heading shown inside the <summary>`},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!1,description:`When true, the accordion renders expanded on initial load`},{name:`icon`,type:`string`,required:!1,advanced:!0,description:"Custom lucide icon override (e.g. `lucide:Rocket`)"},{name:`description`,type:`string`,required:!1,advanced:!0,description:`Optional subtitle rendered below the title inside <summary>`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#advanced-options`)"},{name:`name`,type:`string`,required:!1,advanced:!0,description:`HTML5 <details name=> group — siblings with the same name are mutually exclusive`}],_4=[d4[0],d4[1],d4[4],d4[5],d4[6]],v4=[f4[0],f4[1],f4[7]],y4=[g4[0],g4[1],g4[4],g4[5]],b4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Alt text (Obsidian alias syntax: `![[file.png|alt text]]`)"}],x4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[clip.mp4|title]]`)"}],S4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[song.mp3|title]]`)"}],C4=[{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#install-tabs`)"}],w4=[{name:`label`,type:`string`,required:!0,autoFocus:!0,defaultValue:`Tab`,description:`Tab strip label — shown in the clickable pill at the top`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#tab-npm`)"}],T4=[{name:`formula`,type:`string`,required:!0,autoFocus:!0,language:`latex`,description:`LaTeX math source (rendered with KaTeX in the browser)`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#eq-pythagoras`)"},{name:`language`,type:`string`,required:!1,advanced:!0,description:"Forward-compat hint for the math source language (default `latex`). Reserved for future MathJax / Typst / AsciiMath substrates."}],E4=[T4[0]],D4=[T4[0]],O4=[{name:`chart`,type:`string`,required:!0,autoFocus:!0,language:`mermaid`,description:`Mermaid chart source (graph / flowchart / sequenceDiagram / class / state / etc.)`}],k4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Display name override (Obsidian alias syntax: `![[file.zip|label]]`)"}],A4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`File URL`,accept:[`*/*`],autoFocus:!0}],j4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`PDF source URL`,accept:S$,autoFocus:!0},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Accessible label for the embedded PDF viewer`},{name:`anchor`,type:`string`,required:!1,advanced:!0,description:"PDF viewer parameters as a single URL-fragment string (e.g. `page=3&height=600`)"}],M4=[{name:`src`,type:`string`,required:!0,description:"Path of the source doc, extension-less (e.g. `api-spec`).",autoFocus:!0},{name:`anchor`,type:`string`,required:!0,description:"Id of the `<MirrorSource>` block within the source doc."}],N4=[{name:`id`,type:`string`,required:!0,description:"Stable id agents and authors use to reference this block from `<Mirror>` elsewhere.",autoFocus:!0},{name:`children`,type:`reactnode`,required:!0,description:`Block content this MirrorSource owns — paragraphs, callouts, code, nested JSX, anything.`}];function P4(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function F4(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function I4(e){let t=e.attrs.props,n=t?.target??``,r=typeof t?.alias==`string`&&t.alias.length>0?t.alias:null,i=typeof t?.anchor==`string`&&t.anchor.length>0?t.anchor:null,a=r??(i?`${n}#${i}`:n);return{type:`wikiLinkEmbed`,value:a,data:{target:n,anchor:i,alias:r},children:[{type:`text`,value:a}]}}var L4=[{name:`Callout`,surface:`canonical`,hasChildren:!0,props:d4,icon:`MessageSquareWarning`,category:`content`,displayName:`Callout`,description:`Alert / admonition with 15 type variants — 5 GFM (note, tip, important, warning, caution) plus 10 Obsidian-parity (abstract, info, todo, success, question, failure, danger, bug, example, quote)`,searchTerms:[`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`,`alert`,`admonition`,`callout`],serialize:(e,t)=>Z2(`Callout`,e,t,d4)},{name:`img`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:f4,icon:`Image`,category:`media`,displayName:`Image`,description:`Image with click-to-zoom and HTML-native attributes`,searchTerms:[`image`,`zoom`,`picture`,`photo`],placeholder:{label:`Add an image`},serialize:(e,t)=>Z2(`img`,e,t,f4)},{name:`video`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:m4,icon:`SquarePlay`,category:`media`,displayName:`Video`,description:`HTML5 video player with native controls`,searchTerms:[`video`,`media`,`player`,`mp4`,`webm`,`movie`],placeholder:{label:`Add a video`},serialize:(e,t)=>Z2(`video`,e,t,m4)},{name:`audio`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:h4,icon:`Volume2`,category:`media`,displayName:`Audio`,description:`HTML5 audio player with native controls`,searchTerms:[`audio`,`sound`,`music`,`mp3`,`podcast`,`player`],placeholder:{label:`Add audio`},serialize:(e,t)=>Z2(`audio`,e,t,h4)},{name:`Pdf`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:j4,icon:`FileText`,category:`media`,displayName:`PDF`,description:"Embedded PDF viewer (`#page=N` to open at page N, `#height=N` for viewer height)",searchTerms:[`pdf`,`document`,`embed`,`pdfjs`],placeholder:{label:`Add a PDF`},serialize:(e,t)=>Z2(`Pdf`,e,t,j4)},{name:`File`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:A4,icon:`Paperclip`,category:`media`,displayName:`File`,description:`Downloadable file attachment — inline row with name + size + download link`,searchTerms:[`file`,`attachment`,`download`,`document`,`zip`,`docx`,`doc`],placeholder:{label:`Add a file`},serialize:(e,t)=>Z2(`File`,e,t,A4)},{name:`Embed`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:p4,icon:`AppWindow`,category:`media`,displayName:`Embed`,description:`Inline web embed (iframe) — drop a URL, get a resizable preview pane`,searchTerms:[`embed`,`iframe`,`website`,`page`,`inline`,`frame`,`preview`],placeholder:{label:`Embed a URL`},serialize:(e,t)=>Z2(`Embed`,e,t,p4)},{name:`Accordion`,surface:`canonical`,hasChildren:!0,props:g4,icon:`ChevronRight`,category:`content`,displayName:`Accordion`,description:"Standalone expand/collapse via native HTML5 <details>/<summary>. Group siblings with the `name` prop for exclusive-accordion UX.",searchTerms:[`toggle`,`accordion`,`expandable`,`details`,`disclosure`,`collapse`,`fold`],exampleBody:`Body content revealed when the accordion is expanded.`,serialize:(e,t)=>Z2(`Accordion`,e,t,g4)},{name:`Tabs`,surface:`canonical`,hasChildren:!0,emptyChildName:`Tab`,props:C4,icon:`LayoutPanelTop`,category:`content`,displayName:`Tabs`,description:"Horizontal tab strip + active panel below. Each `<Tab>` child is one panel; clickable pills at the top switch the active one. Active selection is ephemeral (resets on reload).",searchTerms:[`tabs`,`tabbed`,`panels`,`tabgroup`,`switcher`],exampleBody:`<Tab label="One">Body of the first tab panel.</Tab>
464
+ `)}]}]}}function U2(e){let t=``;for(let n of e.children)n.type===`text`?t+=n.value??``:n.type===`element`&&(t+=U2(n));return t}var W2=class extends Error{htmlBytes;maxBytes;constructor(e,t){super(`HTML payload (${e} bytes) exceeds htmlToMdast ceiling (${t} bytes); falling through to plain text`),this.name=`HtmlPayloadTooLargeError`,this.htmlBytes=e,this.maxBytes=t}},G2=[l2,k2,r2,v2,Q0,R2,C2,P2,m2];function K2(e){TP(e,e=>{e.type===`strong`?(e.data??={},e.data.sourceDelimiter=`**`):e.type===`emphasis`?(e.data??={},e.data.sourceDelimiter=`*`):e.type===`inlineCode`?(e.data??={},e.data.sourceFenceChar="`",e.data.sourceFenceLength=1):e.type===`code`&&(e.data??={},e.data.sourceFenceChar="`",e.data.sourceFenceLength=3)})}function q2(e,t){let n=t?.maxBytes??5242880;if(e.length>n)throw new W2(e.length,n);let r=gH().use(CN,{fragment:!0});for(let e of G2)r.use(e);for(let e of t?.additionalCleanupPlugins??[])r.use(e);r.use(wI);let i=r.parse(e),a=r.runSync(i);return K2(a),a}function J2(e){return String(gH().use(sH).use(cH).stringify(e))}function Y2(e,t){let n=Array.isArray(e.attrs.attributes)?e.attrs.attributes.filter(e=>typeof e==`object`&&!!e&&`type`in e):[],r=e.attrs.props??{},i=new Map,a=new Set;if(t)for(let e of t)e.omitOnDefault===!0&&`defaultValue`in e&&e.defaultValue!==void 0&&i.set(e.name,e.defaultValue),e.type===`string`&&e.required===!1&&e.defaultValue===void 0&&a.add(e.name);for(let[e,t]of Object.entries(r)){let r=n.findIndex(t=>t.type===`mdxJsxAttribute`&&t.name===e);if(i.has(e)&&Object.is(i.get(e),t)){r>=0&&n.splice(r,1);continue}if(a.has(e)&&t===``){r>=0&&n.splice(r,1);continue}let o=X2(e,t);r>=0?n[r]=o:n.push(o)}return n}function X2(e,t){if(t===!0)return{type:`mdxJsxAttribute`,name:e,value:null};if(t===!1)return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:`false`}};if(t==null)return{type:`mdxJsxAttribute`,name:e,value:null};if(typeof t==`string`)return{type:`mdxJsxAttribute`,name:e,value:t};if(typeof t==`number`)return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:JSON.stringify(t)}};if(typeof t==`object`){let n;try{n=JSON.stringify(t)}catch{n=String(t)}return{type:`mdxJsxAttribute`,name:e,value:{type:`mdxJsxAttributeValueExpression`,value:n}}}return{type:`mdxJsxAttribute`,name:e,value:String(t)}}function Z2(e,t,n,r){return{type:`mdxJsxFlowElement`,name:e,attributes:Y2(t,r),children:n.all(t),data:{}}}var Q2=/^[A-Za-z0-9]{20,}$/,$2=/^(?:\d+s?|(?:\d+h)?(?:\d+m)?(?:\d+s)?)$/;function e4(e){let t=e.toLowerCase();return t===`loom.com`||t===`www.loom.com`}function t4(e){let t=e.pathname.match(/^\/(?:share|embed)\/([A-Za-z0-9]+)\/?$/);if(!t)return null;let n=t[1]??``;return Q2.test(n)?n:null}function n4(e){if(typeof e!=`string`||e.length===0)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`http:`&&t.protocol!==`https:`||!e4(t.hostname))return null;let n=t4(t);if(!n)return null;let r=t.searchParams.get(`t`);return{id:n,startRaw:r&&r.length>0&&$2.test(r)?r:null}}function r4(e){return n4(e)!==null}function i4(e){let t=e.toLowerCase();return t===`vimeo.com`||t===`www.vimeo.com`||t===`player.vimeo.com`}function a4(e){if(typeof e!=`string`||e.length===0)return!1;let t;try{t=new URL(e)}catch{return!1}return t.protocol!==`http:`&&t.protocol!==`https:`?!1:i4(t.hostname)}var o4=/^[A-Za-z0-9_-]{11}$/;function s4(e){let t=e.toLowerCase();return t===`youtube.com`||t===`www.youtube.com`||t===`m.youtube.com`||t===`music.youtube.com`||t===`youtu.be`||t===`youtube-nocookie.com`||t===`www.youtube-nocookie.com`}function c4(e){if(e.length===0)return null;if(/^[0-9]+$/.test(e)){let t=Number.parseInt(e,10);return t>0?t:null}let t=e.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s?)?$/);if(!t)return null;let n=t[1]?Number.parseInt(t[1],10):0,r=t[2]?Number.parseInt(t[2],10):0,i=t[3]?Number.parseInt(t[3],10):0,a=n*3600+r*60+i;return a>0?a:null}function l4(e){if(e.hostname.toLowerCase()===`youtu.be`){let t=e.pathname.replace(/^\//,``).split(`/`)[0]??``;return o4.test(t)?t:null}if(e.pathname===`/watch`){let t=e.searchParams.get(`v`)??``;return o4.test(t)?t:null}let t=e.pathname.match(/^\/(?:embed|shorts|v)\/([A-Za-z0-9_-]{11})\/?$/);return t?t[1]??null:null}function u4(e){if(typeof e!=`string`||e.length===0)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`http:`&&t.protocol!==`https:`||!s4(t.hostname))return null;let n=l4(t);if(!n)return null;let r=t.searchParams.get(`t`)??t.searchParams.get(`start`)??``;return{id:n,startSeconds:r.length>0?c4(r):null,noCookie:t.hostname.toLowerCase().endsWith(`youtube-nocookie.com`)}}var d4=[{name:`type`,type:`enum`,enumValues:[`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`],defaultValue:`note`,required:!1,description:`Callout variant`},{name:`title`,type:`string`,required:!1,description:`Optional heading shown above the body`},{name:`icon`,type:`string`,required:!1,advanced:!0,description:"Custom lucide icon override (e.g. `lucide:Lightbulb`)",iconPicker:!0},{name:`color`,type:`string`,required:!1,advanced:!0,description:"Optional accent color override (hex — e.g. `#F05032`)"},{name:`collapsible`,type:`boolean`,required:!1,defaultValue:!1,advanced:!0,description:"Render as a foldable `<details>` (Obsidian `[!TYPE]+/-`)"},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,description:`When collapsible, start in the open state`,hideWhen:e=>e.collapsible!==!0},{name:`children`,type:`reactnode`,required:!0,description:`Callout content`}],f4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Image source URL`,accept:y$,autoFocus:!0},{name:`alt`,type:`string`,required:!0,description:`Alt text`},{name:`width`,type:`number`,required:!1,advanced:!0,description:`Image width`},{name:`height`,type:`number`,required:!1,advanced:!0,description:`Image height`},{name:`srcset`,type:`string`,required:!1,advanced:!0,description:`Responsive image candidate set (e.g. "x.png 1x, y.png 2x")`},{name:`sizes`,type:`string`,required:!1,advanced:!0,description:`Responsive image sizes hint paired with srcset`},{name:`loading`,type:`enum`,enumValues:[`eager`,`lazy`],defaultValue:`lazy`,required:!1,advanced:!0,omitOnDefault:!0,description:`Native img loading strategy (defaults to lazy)`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`decoding`,type:`enum`,enumValues:[`sync`,`async`,`auto`],defaultValue:`auto`,required:!1,advanced:!0,omitOnDefault:!0,description:`Hint for how the browser should decode the image`},{name:`fetchpriority`,type:`enum`,enumValues:[`high`,`low`,`auto`],defaultValue:`auto`,required:!1,advanced:!0,omitOnDefault:!0,description:`Resource fetch priority hint`},{name:`crossorigin`,type:`enum`,enumValues:[`anonymous`,`use-credentials`],required:!1,advanced:!0,description:`CORS mode for the image fetch`},{name:`referrerpolicy`,type:`string`,required:!1,advanced:!0,description:`Referrer policy for the image fetch (HTML referrerpolicy values)`},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],p4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Embedded page URL (must start with http:// or https://)`,autoFocus:!0},{name:`title`,type:`string`,required:!1,description:`Iframe title (accessible label for screen readers)`},{name:`width`,type:`string`,required:!1,advanced:!0,description:`Embed width as a CSS length (e.g. "100%", "640px")`},{name:`height`,type:`string`,required:!1,advanced:!0,description:`Embed height as a CSS length (e.g. "26rem", "480px")`},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],m4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Video source URL`,accept:b$,autoFocus:!0},{name:`controls`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,omitOnDefault:!0,description:`Show native HTML5 video controls (defaults to true)`,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`autoplay`,type:`boolean`,required:!1,advanced:!0,description:`Begin playback as soon as possible (usually requires muted)`},{name:`poster`,type:`string`,required:!1,advanced:!0,description:`Poster image URL shown before playback`,accept:y$,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`width`,type:`number`,required:!1,advanced:!0,description:`Video width`},{name:`height`,type:`number`,required:!1,advanced:!0,description:`Video height`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`muted`,type:`boolean`,required:!1,advanced:!0,description:`Mute audio on load`},{name:`loop`,type:`boolean`,required:!1,advanced:!0,description:`Restart from the beginning when playback ends`,hideWhen:e=>typeof e.src==`string`&&r4(e.src)},{name:`playsinline`,type:`boolean`,required:!1,advanced:!0,description:`Play inline on iOS rather than entering fullscreen`,hideWhen:e=>typeof e.src==`string`&&(a4(e.src)||r4(e.src))},{name:`preload`,type:`enum`,enumValues:[`none`,`metadata`,`auto`],required:!1,advanced:!0,description:`Hint for how much of the video to preload`,hideWhen:e=>typeof e.src==`string`&&(u4(e.src)!==null||a4(e.src)||r4(e.src))},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`}],h4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Audio source URL`,accept:x$,autoFocus:!0},{name:`controls`,type:`boolean`,required:!1,defaultValue:!0,advanced:!0,omitOnDefault:!0,description:`Show native HTML5 audio controls (defaults to true)`},{name:`autoplay`,type:`boolean`,required:!1,advanced:!0,description:`Begin playback as soon as possible (usually requires muted)`},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Native HTML title attribute (tooltip)`},{name:`muted`,type:`boolean`,required:!1,advanced:!0,description:`Mute audio on load`},{name:`loop`,type:`boolean`,required:!1,advanced:!0,description:`Restart from the beginning when playback ends`},{name:`preload`,type:`enum`,enumValues:[`none`,`metadata`,`auto`],required:!1,advanced:!0,description:`Hint for how much of the audio to preload`}],g4=[{name:`title`,type:`string`,required:!0,description:`Accordion heading shown inside the <summary>`},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!1,description:`When true, the accordion renders expanded on initial load`},{name:`icon`,type:`string`,required:!1,advanced:!0,description:"Custom lucide icon override (e.g. `lucide:Rocket`)",iconPicker:!0},{name:`description`,type:`string`,required:!1,advanced:!0,description:`Optional subtitle rendered below the title inside <summary>`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#advanced-options`)"},{name:`name`,type:`string`,required:!1,advanced:!0,description:`HTML5 <details name=> group — siblings with the same name are mutually exclusive`}],_4=[d4[0],d4[1],d4[4],d4[5],d4[6]],v4=[f4[0],f4[1],f4[7]],y4=[g4[0],g4[1],g4[4],g4[5]],b4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Alt text (Obsidian alias syntax: `![[file.png|alt text]]`)"}],x4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[clip.mp4|title]]`)"}],S4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[song.mp3|title]]`)"}],C4=[{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#install-tabs`)"}],w4=[{name:`label`,type:`string`,required:!0,autoFocus:!0,defaultValue:`Tab`,description:`Tab strip label — shown in the clickable pill at the top`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#tab-npm`)"}],T4=[{name:`formula`,type:`string`,required:!0,autoFocus:!0,language:`latex`,description:`LaTeX math source (rendered with KaTeX in the browser)`},{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#eq-pythagoras`)"},{name:`language`,type:`string`,required:!1,advanced:!0,description:"Forward-compat hint for the math source language (default `latex`). Reserved for future MathJax / Typst / AsciiMath substrates."}],E4=[T4[0]],D4=[T4[0]],O4=[{name:`chart`,type:`string`,required:!0,autoFocus:!0,language:`mermaid`,description:`Mermaid chart source (graph / flowchart / sequenceDiagram / class / state / etc.)`}],k4=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Display name override (Obsidian alias syntax: `![[file.zip|label]]`)"}],A4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`File URL`,accept:[`*/*`],autoFocus:!0}],j4=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`PDF source URL`,accept:S$,autoFocus:!0},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Accessible label for the embedded PDF viewer`},{name:`anchor`,type:`string`,required:!1,advanced:!0,description:"PDF viewer parameters as a single URL-fragment string (e.g. `page=3&height=600`)"}],M4=[{name:`src`,type:`string`,required:!0,description:"Path of the source doc, extension-less (e.g. `api-spec`).",autoFocus:!0},{name:`anchor`,type:`string`,required:!0,description:"Id of the `<MirrorSource>` block within the source doc."}],N4=[{name:`id`,type:`string`,required:!0,description:"Stable id agents and authors use to reference this block from `<Mirror>` elsewhere.",autoFocus:!0},{name:`children`,type:`reactnode`,required:!0,description:`Block content this MirrorSource owns — paragraphs, callouts, code, nested JSX, anything.`}];function P4(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function F4(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function I4(e){let t=e.attrs.props,n=t?.target??``,r=typeof t?.alias==`string`&&t.alias.length>0?t.alias:null,i=typeof t?.anchor==`string`&&t.anchor.length>0?t.anchor:null,a=r??(i?`${n}#${i}`:n);return{type:`wikiLinkEmbed`,value:a,data:{target:n,anchor:i,alias:r},children:[{type:`text`,value:a}]}}var L4=[{name:`Callout`,surface:`canonical`,hasChildren:!0,props:d4,icon:`MessageSquareWarning`,category:`content`,displayName:`Callout`,description:`Alert / admonition with 15 type variants — 5 GFM (note, tip, important, warning, caution) plus 10 Obsidian-parity (abstract, info, todo, success, question, failure, danger, bug, example, quote)`,searchTerms:[`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`,`alert`,`admonition`,`callout`],serialize:(e,t)=>Z2(`Callout`,e,t,d4)},{name:`img`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:f4,icon:`Image`,category:`media`,displayName:`Image`,description:`Image with click-to-zoom and HTML-native attributes`,searchTerms:[`image`,`zoom`,`picture`,`photo`],placeholder:{label:`Add an image`},serialize:(e,t)=>Z2(`img`,e,t,f4)},{name:`video`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:m4,icon:`SquarePlay`,category:`media`,displayName:`Video`,description:`HTML5 video player with native controls`,searchTerms:[`video`,`media`,`player`,`mp4`,`webm`,`movie`],placeholder:{label:`Add a video`},serialize:(e,t)=>Z2(`video`,e,t,m4)},{name:`audio`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:h4,icon:`Volume2`,category:`media`,displayName:`Audio`,description:`HTML5 audio player with native controls`,searchTerms:[`audio`,`sound`,`music`,`mp3`,`podcast`,`player`],placeholder:{label:`Add audio`},serialize:(e,t)=>Z2(`audio`,e,t,h4)},{name:`Pdf`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:j4,icon:`FileText`,category:`media`,displayName:`PDF`,description:"Embedded PDF viewer (`#page=N` to open at page N, `#height=N` for viewer height)",searchTerms:[`pdf`,`document`,`embed`,`pdfjs`],placeholder:{label:`Add a PDF`},serialize:(e,t)=>Z2(`Pdf`,e,t,j4)},{name:`File`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:A4,icon:`Paperclip`,category:`media`,displayName:`File`,description:`Downloadable file attachment — inline row with name + size + download link`,searchTerms:[`file`,`attachment`,`download`,`document`,`zip`,`docx`,`doc`],placeholder:{label:`Add a file`},serialize:(e,t)=>Z2(`File`,e,t,A4)},{name:`Embed`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:p4,icon:`AppWindow`,category:`media`,displayName:`Embed`,description:`Inline web embed (iframe) — drop a URL, get a resizable preview pane`,searchTerms:[`embed`,`iframe`,`website`,`page`,`inline`,`frame`,`preview`],placeholder:{label:`Embed a URL`},serialize:(e,t)=>Z2(`Embed`,e,t,p4)},{name:`Accordion`,surface:`canonical`,hasChildren:!0,props:g4,icon:`ChevronRight`,category:`content`,displayName:`Accordion`,description:"Standalone expand/collapse via native HTML5 <details>/<summary>. Group siblings with the `name` prop for exclusive-accordion UX.",searchTerms:[`toggle`,`accordion`,`expandable`,`details`,`disclosure`,`collapse`,`fold`],exampleBody:`Body content revealed when the accordion is expanded.`,serialize:(e,t)=>Z2(`Accordion`,e,t,g4)},{name:`Tabs`,surface:`canonical`,hasChildren:!0,emptyChildName:`Tab`,props:C4,icon:`LayoutPanelTop`,category:`content`,displayName:`Tabs`,description:"Horizontal tab strip + active panel below. Each `<Tab>` child is one panel; clickable pills at the top switch the active one. Active selection is ephemeral (resets on reload).",searchTerms:[`tabs`,`tabbed`,`panels`,`tabgroup`,`switcher`],exampleBody:`<Tab label="One">Body of the first tab panel.</Tab>
465
465
  <Tab label="Two">Body of the second tab panel.</Tab>`,serialize:(e,t)=>Z2(`Tabs`,e,t,C4)},{name:`Tab`,surface:`canonical`,hasChildren:!0,props:w4,icon:`PanelTop`,category:`content`,displayName:`Tab`,description:"A single tab panel inside a `<Tabs>` container — carries the strip label and the block-content body.",searchTerms:[`tab`,`panel`],exampleBody:"Panel content — must be nested inside a `<Tabs>` parent.",serialize:(e,t)=>Z2(`Tab`,e,t,w4)},{name:`Math`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:T4,icon:`Sigma`,category:`content`,displayName:`Math`,description:`Block math equation rendered with KaTeX from a LaTeX source string`,searchTerms:[`math`,`latex`,`equation`,`formula`,`katex`,`tex`],serialize:(e,t)=>Z2(`Math`,e,t,T4)},{name:`MermaidFence`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:O4,icon:`Workflow`,category:`content`,displayName:`Mermaid`,description:"Diagram rendered from Mermaid source (flowchart, sequence, class, state, ER, gantt, pie). Authored exclusively as ` ```mermaid ` fenced code.",searchTerms:[`mermaid`,`diagram`,`flowchart`,`graph`,`sequence`,`sequencediagram`,`class`,`state`,`er`,`erdiagram`,`gantt`,`pie`,`chart`],serialize:e=>({type:`code`,lang:`mermaid`,meta:null,value:e.attrs.props?.chart??``})},{name:`Mirror`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:M4,icon:`CopyPlus`,category:`content`,displayName:`Mirror`,description:"Render a read-only copy of a `<MirrorSource>` block from another doc. Use to keep the same content in sync across multiple docs without copy-paste — edits land at the source, every Mirror reflects the change.",searchTerms:[`mirror`,`sync`,`synced`,`transclude`,`embed`,`reference`,`shared block`],serialize:(e,t)=>Z2(`Mirror`,e,t,M4)},{name:`MirrorSource`,surface:`canonical`,hasChildren:!0,props:N4,icon:`GitBranch`,category:`content`,displayName:`Mirror Source`,description:'Mark a block as the source of truth for content that appears in multiple docs. Wrap any block content; `<Mirror src="…" anchor="<id>">` references render this verbatim read-only at every call-site. Edit here, propagate everywhere.',searchTerms:[`mirror source`,`sync source`,`source block`,`master block`,`shared`],exampleBody:"Authoritative content lives inside this block — edits here propagate to every `<Mirror>` that references this id.",serialize:(e,t)=>Z2(`MirrorSource`,e,t,N4)},{name:`GFMCallout`,surface:`compat`,hasChildren:!0,props:_4,icon:`MessageSquareWarning`,category:`content`,displayName:`GFM Callout`,description:"GFM blockquote alert (`> [!NOTE]`) — read-only compat. Preserves `> [!NOTE]` syntax on round-trip; insert a fresh Callout block for the full prop surface.",rendersAs:`Callout`,translateProps:e=>e,serialize:(e,t)=>{let n=e.attrs.props,r=new Set([`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`]),i=n?.type??`note`;return{type:`blockquote`,children:[{type:`html`,value:`[!${(r.has(i.toLowerCase())?i:`note`).toUpperCase()}]${n?.collapsible?n.defaultOpen===!1?`-`:`+`:``}${n?.title?` ${n.title}`:``}`},...t.all(e).filter(e=>{if(e.type!==`paragraph`)return!0;let t=e;return Array.isArray(t.children)&&t.children.length>0})]}}},{name:`CommonMarkImage`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:v4,icon:`Image`,category:`media`,displayName:`CommonMark Image`,description:'CommonMark image (`![alt](src "title")`) — read-only compat. Preserves `![alt](src)` syntax on round-trip; insert a fresh Image block for the full HTML-native attribute surface (srcset, sizes, decoding, etc.).',rendersAs:`img`,translateProps:e=>e,serialize:e=>{let t=e.attrs.props;return{type:`paragraph`,children:[{type:`image`,url:t?.sourceUrl??t?.src??``,alt:t?.alt??``,title:t?.title??null}]}}},{name:`WikiEmbedImage`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:b4,icon:`ZoomIn`,category:`media`,displayName:`Wiki Embed Image`,description:"Obsidian-style `![[file.png]]` wiki-embed — read-only compat. Edit the alt-text via the alias slot; the embed target / anchor stay on the prop bag and round-trip byte-identical.",rendersAs:`img`,translateProps:e=>{let t=typeof e.alias==`string`&&e.alias.length>0?e.alias:null,n=typeof e.target==`string`?e.target:``;return{src:e.src,alt:t??n}},serialize:I4},{name:`WikiEmbedVideo`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:x4,icon:`Film`,category:`media`,displayName:`Wiki Embed Video`,description:"Obsidian-style `![[clip.mp4]]` wiki-embed — read-only compat. Edit the title via the alias slot; the embed target / anchor stay on the prop bag and round-trip byte-identical.",rendersAs:`video`,translateProps:e=>{let t=typeof e.alias==`string`&&e.alias.length>0?e.alias:null,n=typeof e.target==`string`?e.target:``;return{src:e.src,title:t??n}},serialize:I4},{name:`WikiEmbedAudio`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:S4,icon:`Volume2`,category:`media`,displayName:`Wiki Embed Audio`,description:"Obsidian-style `![[song.mp3]]` wiki-embed — read-only compat. Edit the title via the alias slot; the embed target / anchor stay on the prop bag and round-trip byte-identical.",rendersAs:`audio`,translateProps:e=>{let t=typeof e.alias==`string`&&e.alias.length>0?e.alias:null,n=typeof e.target==`string`?e.target:``;return{src:e.src,title:t??n}},serialize:I4},{name:`WikiEmbedFile`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:k4,icon:`Paperclip`,category:`media`,displayName:`Wiki Embed File`,description:"Obsidian-style `![[file.zip]]` wiki-embed — read-only compat for arbitrary downloadable attachments. Renders through the `File` canonical (inline row with file-up icon + bold name + optional dim size). Edit the display name via the alias slot.",rendersAs:`File`,translateProps:e=>{let t=typeof e.alias==`string`&&e.alias.length>0?e.alias:null,n=typeof e.size==`string`&&e.size.length>0?e.size:null;return{src:e.src,name:t??void 0,size:n??void 0}},serialize:I4},{name:`HtmlDetailsAccordion`,surface:`compat`,hasChildren:!0,props:y4,icon:`ChevronRight`,category:`content`,displayName:`HTML5 Details`,description:"HTML5 `<details><summary>` collapsible — read-only compat. Preserves `<details>` syntax on round-trip; insert a fresh Accordion block for icon / description / group-name props.",rendersAs:`Accordion`,translateProps:e=>e,serialize:(e,t)=>{let n=e.attrs.props,r=n?.defaultOpen?` open`:``,i=n?.name?` name="${P4(n.name)}"`:``,a=n?.id?` id="${P4(n.id)}"`:``,o=n?.title?.trim(),s=o?`<summary>${F4(o)}</summary>`:``;return{type:`mdxJsxFlowElement`,name:`HtmlDetailsAccordion`,attributes:[],children:t.all(e),data:{htmlBoundary:{opener:`<details${r}${i}${a}>\n${s}`,closer:`</details>`}}}}},{name:`DollarMath`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:E4,icon:`Sigma`,category:`content`,displayName:`Dollar Math`,description:"Block math via `$$…$$` syntax — read-only compat. Preserves `$$…$$` form on round-trip; insert a fresh Math block for the full prop surface (id, language).",rendersAs:`Math`,translateProps:e=>e,serialize:e=>({type:`math`,value:e.attrs.props?.formula??``})},{name:`MathFence`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:D4,icon:`Sigma`,category:`content`,displayName:`Math Fence`,description:"Block math via ` ```math ` fenced code syntax — read-only compat. Preserves the fence form on round-trip; insert a fresh Math block for the full prop surface (id, language).",rendersAs:`Math`,translateProps:e=>e,serialize:e=>({type:`code`,lang:`math`,meta:null,value:e.attrs.props?.formula??``})}],R4={name:`*`,surface:`canonical`,hasChildren:!0,props:[],description:`Unregistered component — children editable as markdown`,serialize:(e,t)=>Z2(e.attrs.componentName||`*`,e,t)};function z4(){let e=new Map;e.set(`*`,R4);for(let t of L4)e.set(t.name,t);return{get(t){return e.get(t)},getOrWildcard(t){return e.get(t)??e.get(`*`)},set(t,n){e.set(t,n)},has(t){return e.has(t)},entries(){return e.entries()}}}var B4={parseFallback:{blockLevel:0,wholeDoc:0},jsxRenderFailure:{},jsxAutoConvertFailed:{},jsxAutoConvertSucceeded:{},jsxPropDropped:{},jsxMoveFailed:{},jsxStuckCopyFailed:{},jsxStuckDeleteFailed:{},jsxPopoverCloseRestoreFailed:{},jsxKeyboardDeleteFailed:{},blockGripClickSelectFailed:{},jsxArrowNodeSelectFailed:{}};function V4(){B4.parseFallback.blockLevel++}function H4(){B4.parseFallback.wholeDoc++}function U4(e){B4.jsxRenderFailure[e]=(B4.jsxRenderFailure[e]??0)+1}function W4(e){B4.jsxAutoConvertFailed[e]=(B4.jsxAutoConvertFailed[e]??0)+1}function G4(e){B4.jsxAutoConvertSucceeded[e]=(B4.jsxAutoConvertSucceeded[e]??0)+1}function K4(e){B4.jsxPropDropped[e]=(B4.jsxPropDropped[e]??0)+1}function q4(e){B4.jsxMoveFailed[e]=(B4.jsxMoveFailed[e]??0)+1}function J4(e){B4.jsxStuckCopyFailed[e]=(B4.jsxStuckCopyFailed[e]??0)+1}function Y4(e){B4.jsxStuckDeleteFailed[e]=(B4.jsxStuckDeleteFailed[e]??0)+1}function X4(e){B4.jsxPopoverCloseRestoreFailed[e]=(B4.jsxPopoverCloseRestoreFailed[e]??0)+1}function Z4(e){B4.jsxKeyboardDeleteFailed[e]=(B4.jsxKeyboardDeleteFailed[e]??0)+1}function Q4(e){B4.blockGripClickSelectFailed[e]=(B4.blockGripClickSelectFailed[e]??0)+1}function $4(e){B4.jsxArrowNodeSelectFailed[e]=(B4.jsxArrowNodeSelectFailed[e]??0)+1}var e3=/^(`{3,}|~{3,})/gm;function t3(e){let t=[],n=null;for(let r of e.matchAll(e3)){let e=r[1],i=r.index;n?e[0]===n.marker[0]&&e.length>=n.marker.length&&(t.push([n.offset,i+r[0].length]),n=null):n={marker:e,offset:i}}return n&&t.push([n.offset,e.length]),t}function n3(e,t){return t.some(([t,n])=>e>=t&&e<n)}var r3=/^[ \t]{0,3}\[([^\]]+)\]:\s*(\S+)(\s+(?:"[^"]*"|'[^']*'|\([^)]*\)))?\s*$/gm;function i3(e){let t=t3(e),n=[];for(let r of e.matchAll(r3))n3(r.index,t)||n.push(r[0].trimEnd());return n.length>0?`${n.join(`
466
466
  `)}\n\n`:``}var a3=500,o3=1e3;function s3(e,t){let n={startMs:typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),calls:0};return d3(e,t.parse,0,n)}function c3(e){return e.calls>=o3?!0:(typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now())-e.startMs>=a3}var l3=500;function u3(e){return e instanceof Error?{name:e.name,message:e.message.slice(0,l3),stack:e.stack?.split(`
467
467
  `).slice(0,4).join(`
@@ -497,4 +497,4 @@ Read more at https://docs.orama.com/docs/orama-js/plugins/plugin-secure-proxy#pl
497
497
 
498
498
  `:`
499
499
  `;return l.join(f)},table(e,t,n,r){let i=n.enter(`table`),a=[],o=[],s=e.children??[];for(let e of s){let t=e.children??[],i=[],s=[];for(let e of t){let t=n.enter(`tableCell`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,{...r,before:` `,after:` `});a(),t(),i.push(o);let c=e.data?.sourcePadding;s.push(c&&typeof c.left==`number`&&typeof c.right==`number`?{left:c.left,right:c.right}:null)}a.push(i),o.push(s)}i();let c=e.align??[],l=e.data?.sourceDashCounts,u=a[0]?.length??0,d=a.slice(1).reduce((e,t)=>Math.max(e,t.length),0),f=Math.max(u,d,c.length),p=[];for(let e=0;e<f;e++){let t=c[e],n=``,r=``;t===`center`?(n=`:`,r=`:`):t===`left`?n=`:`:t===`right`&&(r=`:`);let i=l?.[e],a=typeof i==`number`&&i>=1?i:1;p.push(n+`-`.repeat(a)+r)}let m=(e,t)=>{let n=[];for(let r=0;r<f;r++){let i=e[r]??``,a=t[r]??{left:1,right:1};n.push(` `.repeat(a.left)+i+` `.repeat(a.right))}return`|${n.join(`|`)}|`},h=Array.from({length:f},()=>null);if(a.length===0)return m(p,h);let g=[];g.push(m(a[0],o[0]??[])),g.push(m(p,h));for(let e=1;e<a.length;e++)g.push(m(a[e],o[e]??[]));return g.join(`
500
- `)},mdxJsxFlowElement(e,t,n,r){let i=e,a=i.data?.sourceRaw;if(typeof a==`string`)return a;let o=i.data?.htmlBoundary;if(o&&typeof o.opener==`string`&&typeof o.closer==`string`){let e=n.containerFlow({type:`root`,children:i.children??[]},r);return`${o.opener}\n\n${e}\n\n${o.closer}`}let s=i.name??``,c=K8(i.attributes??[]);if(!i.children||i.children.length===0)return s?c?`<${s} ${c} />`:`<${s} />`:``;let l=c?`<${s} ${c}>`:`<${s}>`,u=`</${s}>`;return`${l}\n\n${n.containerFlow({type:`root`,children:i.children},r)}\n\n${u}`},mark(e,t,n,r){let i=n.createTracker(r),a=n.enter(`mark`),o=i.move(`==`);return o+=n.containerPhrasing(e,{before:o,after:`==`,...i.current()}),o+=i.move(`==`),a(),o},comment(e,t,n,r){let i=e.data?.sourceForm,a=i===`html`?`<!-- `:`%%`,o=i===`html`?` -->`:`%%`,s=n.createTracker(r),c=n.enter(`comment`),l=s.move(a);return l+=n.containerPhrasing(e,{before:l,after:o,...s.current()}),l+=s.move(o),c(),l},commentBlock(e,t,n,r){let i=n.createTracker(r),a=n.enter(`commentBlock`),o=e.children??[],s=e.data?.sourceForm,c=e.data?.sourceLayout,l=o.length===1&&o[0]?.type===`paragraph`;if(s===`html`&&l){let e=o[0],t=n.containerPhrasing(e,{before:`<!-- `,after:` -->`,...i.current()});return a(),`<!-- ${t} -->`}if(c===`inline`&&l){let e=o[0],t=n.containerPhrasing(e,{before:`%% `,after:` %%`,...i.current()});return a(),`%% ${t} %%`}let u=n.containerFlow(e,i.current());return a(),`%%\n\n${u}\n\n%%`},mdxJsxTextElement(e){let t=e.data?.sourceRaw;if(typeof t==`string`)return t;let n=e.name??``,r=K8(e.attributes??[]);return r?`<${n} ${r} />`:`<${n}/>`},rawMdxFallback(e){return e.value??``},blockquote(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.containerFlow(e,a.current());i();let s=e.data?.sourceMarkerSpacings,c=0;return n.indentLines(o,(e,t,n)=>n?`>`:s?.[c++]===`none`?`>${e}`:`> ${e}`)}};function K8(e){let t=[];for(let n of e){if(n.type===`mdxJsxExpressionAttribute`){t.push(`{${n.value}}`);continue}let e=n.name;if(n.value===null||n.value===void 0){t.push(e);continue}if(typeof n.value==`string`){if(n.value.includes(`"`)){let r=n.value.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`);t.push(`${e}={"${r}"}`)}else t.push(`${e}="${n.value}"`);continue}t.push(`${e}={${n.value.value}}`)}return t.join(` `)}function q8(e,t,n=` `){return t===`single`?`${n}'${e.replace(/'/g,`\\'`)}'`:t===`paren`?`${n}(${e.replace(/[()]/g,`\\$&`)})`:`${n}"${e.replace(/"/g,`\\"`)}"`}function J8(e){if(!e)return``;let t=0,n=!0;for(let r of e)r===`(`?t++:r===`)`&&(t--,t<0&&(n=!1));return t!==0&&(n=!1),n?e:e.replace(/[\\()]/g,`\\$&`)}function Dre(e){return e.replace(/(?<!\\)&(?=[A-Za-z][A-Za-z0-9]*;|#[0-9]+;|#[xX][0-9A-Fa-f]+;)/g,`\\&`)}function Y8(e,t,n){let r=e.unsafe;e.unsafe=r.filter(e=>!(e.character===`&`&&e.after===`[#A-Za-z]`||e.character===`<`||e.character===`[`||e.character===`(`||e.character==="`"));let i;try{i=e.safe(t,n)}finally{e.unsafe=r}return Dre(i)}function X8(e){if(!Number.isFinite(e)||e<0)return``;if(e<1024)return`${e} B`;let t=[`KiB`,`MiB`,`GiB`,`TiB`],n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${n.toFixed(1).replace(/\.0$/,``)} ${t[r]}`}var Ore=class{schema;handlers;pmNodeHandlers;pmMarkHandlers;parseProcessor;serializeProcessor;parseCtx={current:{}};constructor(e){this.schema=yb(e.extensions),this.handlers=Pre(this.schema,this.parseCtx);let{nodeHandlers:t,markHandlers:n}=Fre(this.schema);this.pmNodeHandlers=t,this.pmMarkHandlers=n,this.parseProcessor=vre({schema:this.schema,handlers:this.handlers,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers}),this.serializeProcessor=yre({schema:this.schema,handlers:this.handlers,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers,toMarkdownHandlers:Ere})}parse(e,t){if(!e.trim())return{type:`doc`,content:[{type:`paragraph`,content:[]}]};this.parseCtx.current=t??{};try{return bre(e,this.parseProcessor).toJSON()}finally{this.parseCtx.current={}}}parseToMdast(e){return e.trim()?xre(e,this.parseProcessor):{type:`root`,children:[]}}parseWithFallback(e,t){return e.trim()?s3(e,{parse:e=>this.parse(e,t)}):{type:`doc`,content:[{type:`paragraph`,content:[]}]}}serialize(e){let t;try{t=this.schema.nodeFromJSON(e)}catch(t){let n=`MarkdownManager.serialize() failed: schema rejected JSONContent (type=${e.type}, childCount=${e.content?.length??0})`;throw Error(n,{cause:t})}return Sre(t,this.serializeProcessor,{schema:this.schema,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers})}},Z8=z4();function kre(e,t){let n=new Map;for(let e of t)n.set(e.name,e);let r={};for(let t of e){if(t.type===`mdxJsxExpressionAttribute`)continue;let e=t.name,i=n.get(e);if(t.value===null||t.value===void 0){r[e]=!0;continue}if(typeof t.value==`string`){if(i?.type===`number`){let n=Number(t.value);r[e]=Number.isNaN(n)?t.value:n}else i?.type===`boolean`?r[e]=t.value===`true`:r[e]=t.value;continue}let a=t.value.value;try{r[e]=JSON.parse(a)}catch{r[e]=a}}return r}function Are(e){let t=!1;return e.descendants(e=>t||e.type.name===`jsxInline`?!1:e.type.name===`jsxComponent`&&e.attrs.sourceDirty?(t=!0,!1):!0),t}function jre(e){return e.attrs.sourceDirty||Are(e)}function Mre(e){if(e.type!==`paragraph`)return!1;let t=e.children??[];return t.length===0?!0:t.every(e=>e.type===`text`&&e.value===``)}function Q8(e,t){if(!t)return e;let n={};return t.sourceFenceChar&&(n.sourceFenceChar=t.sourceFenceChar),typeof t.sourceFenceLength==`number`&&(n.sourceFenceLength=t.sourceFenceLength),Object.keys(n).length===0?e:{...e,data:n}}function $8(e,t){if(e.length===0)return Q8({type:`inlineCode`,value:``},t);if(e.every(e=>e.type===`text`))return Q8({type:`inlineCode`,value:e.map(e=>e.value).join(``)},t);if(e.length===1&&`children`in e[0]){let n=e[0];return{...n,children:[$8(n.children,t)]}}return Q8({type:`inlineCode`,value:e5(e)},t)}function e5(e){let t=``;for(let n of e)n.type===`text`?t+=n.value:`children`in n&&Array.isArray(n.children)?t+=e5(n.children):`value`in n&&typeof n.value==`string`&&(t+=n.value);return t}var Nre=C$;function Pre(e,t){let n=e.nodes,r=e.marks,i={};n.paragraph&&(i.paragraph=(e,t,r)=>{let i=r.all(e).flat(),a=i.some(e=>e?.isBlock&&!e?.isInline),o=i.some(e=>e?.isInline||e?.isText||e?.isTextblock);if(a&&!o)return i.length===1?i[0]:i;if(a&&o){let e=i.filter(e=>!e?.isBlock||e?.isInline),t=i.filter(e=>e?.isBlock&&!e?.isInline),r=[],a=n.paragraph.createAndFill(null,e.length>0?e:null);return a&&r.push(a),r.push(...t),r.length===1?r[0]:r}return n.paragraph.createAndFill(null,i.length>0?i:null)}),n.blockquote&&(i.blockquote=zH(n.blockquote,e=>({sourceMarkerSpacings:e.data?.sourceMarkerSpacings??null}))),n.tableCell&&(i.tableCell=(e=>(t,r,i)=>{let a=i.all(t).flat();if(a.length>0&&n.paragraph){let t=n.paragraph.create(null,a);return e.createAndFill(null,[t])}return e.createAndFill(null,null)})(n.tableCell)),n.tableRow&&(i.tableRow=zH(n.tableRow)),n.table&&n.tableRow&&n.tableCell&&(i.table=(e,t,r)=>{let i=e.align??[],a=e.children??[],o=[];for(let e=0;e<a.length;e++){let t=a[e];if(t.type!==`tableRow`)continue;let s=t.children??[],c=[];for(let t=0;t<s.length;t++){let a=s[t];if(a.type!==`tableCell`)continue;let o=r.all(a).flat(),l=o.length>0&&n.paragraph?[n.paragraph.create(null,o)]:null,u=i[t]??null,d=e===0&&n.tableHeader?n.tableHeader:n.tableCell,f=a.data?.sourcePadding??null,p=d.createAndFill({align:u,sourcePadding:f},l);p&&c.push(p)}let l=n.tableRow.createAndFill(null,c.length>0?c:null);l&&o.push(l)}let s=e.data?.sourceDashCounts??null;return n.table.createAndFill({sourceDashCounts:s},o.length>0?o:null)}),n.image&&(i.image=e=>{let r=e.url??``,i=G8(r,t.current.sourcePath);return n.image.createAndFill({src:i,alt:e.alt??null,title:e.title??null,sourceUrl:i===r?null:r})},n.imageReference?i.imageReference=e=>n.imageReference.createAndFill({alt:e.alt??``,label:e.label??e.identifier??``,identifier:e.identifier??``,referenceType:e.referenceType??`shortcut`}):i.imageReference=e=>n.image.createAndFill({src:``,alt:e.alt??null,title:null})),r.escapeMark&&(i.text=t=>{let n=t.value??``,i=typeof t.data?.sourceRaw==`string`?t.data.sourceRaw:null;if(!n&&!i)return null;if(i){let t=n.replaceAll(`\xA0`,` `);return r.sourceLiteral?e.text(t,[r.sourceLiteral.create({sourceRaw:i})]):e.text(t)}let a=t.data?.escapedChars,o=t.data?.entityRefSpans;if(!a?.length&&!o?.length)return e.text(n.replaceAll(`\xA0`,` `));let s=[...(a??[]).map(e=>({kind:`escape`,offset:e.offset,length:1})),...(o??[]).map(e=>({kind:`entity`,offset:e.offset,length:e.length,raw:e.raw}))];s.sort((e,t)=>e.offset-t.offset);let c=[],l=0;for(let t of s){if(t.offset>l){let r=n.slice(l,t.offset).replaceAll(`\xA0`,` `);r&&c.push(e.text(r))}if(t.offset<n.length){let i=n.slice(t.offset,t.offset+t.length).replaceAll(`\xA0`,` `);i&&(t.kind===`escape`?c.push(e.text(i,[r.escapeMark.create()])):r.sourceLiteral?c.push(e.text(i,[r.sourceLiteral.create({sourceRaw:t.raw})])):c.push(e.text(i))),l=t.offset+t.length}}if(l<n.length){let t=n.slice(l).replaceAll(`\xA0`,` `);t&&c.push(e.text(t))}return c.length===1?c[0]:c}),r.code&&(i.inlineCode=t=>e.text(t.value,[r.code.create({sourceFenceChar:t.data?.sourceFenceChar??"`",sourceFenceLength:typeof t.data?.sourceFenceLength==`number`?t.data.sourceFenceLength:1})]));let a=r.strike??r.delete;if(a&&(i.delete=BH(a)),r.highlight&&(i.mark=BH(r.highlight)),r.comment&&(i.comment=BH(r.comment,e=>({sourceForm:e.data?.sourceForm??`percent`}))),n.commentBlock&&(i.commentBlock=zH(n.commentBlock,e=>({sourceForm:e.data?.sourceForm??`percent`,sourceLayout:e.data?.sourceLayout??`block`}))),r.emphasis&&(i.emphasis=BH(r.emphasis,e=>({sourceDelimiter:e.data?.sourceDelimiter??`*`}))),r.strong&&(i.strong=BH(r.strong,e=>({sourceDelimiter:e.data?.sourceDelimiter??`**`}))),n.heading&&(i.heading=zH(n.heading,e=>({level:e.depth,headingStyle:e.data?.sourceStyle??`atx`,sourceTrailingHashes:e.data?.sourceTrailingHashes??null,sourceUnderlineLength:e.data?.sourceUnderlineLength??null,sourceContiguousNext:e.data?.sourceContiguousNext??!1}))),n.codeBlock&&(i.code=t=>{let r=t.value?[e.text(t.value)]:[];return n.codeBlock.createAndFill({language:t.lang??null,meta:t.meta??null,fenceDelimiter:t.data?.sourceFenceChar??"`",fenceLength:t.data?.sourceFenceLength??3,sourceStyle:t.data?.sourceStyle??`fenced`},r)}),n.thematicBreak&&(i.thematicBreak=e=>n.thematicBreak.createAndFill({sourceRaw:e.data?.sourceRaw??`---`})),n.hardBreak&&(i.break=e=>n.hardBreak.createAndFill({hardBreakStyle:e.data?.sourceStyle??`spaces`})),n.list&&(i.list=zH(n.list,e=>({ordered:!!e.ordered,start:e.start??1,spread:!!e.spread,bulletMarker:e.data?.bulletMarker??null,listMarkerDelimiter:e.data?.listMarkerDelimiter??null}))),n.listItem&&(i.listItem=zH(n.listItem,e=>({checked:e.checked??null,spread:!!e.spread}))),r.link){let t=r.sourceLiteral;i.link=(n,i,a)=>{if((n.children??[]).length===0){let r=typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:`[](${n.url??``})`;return r?t?e.text(r,[t.create({sourceRaw:r})]):e.text(r):null}let o=a.all(n).flat(),s=r.link.create({href:n.url??``,title:n.title??null,linkStyle:n.data?.sourceStyle??`inline`,refLabel:null,sourceUrlForm:n.data?.sourceUrlForm??null,sourceTitleMarker:n.data?.sourceTitleMarker??null});return o.map(e=>e.mark(s.addToSet(e.marks)))},i.linkReference=(n,i,a)=>{if((n.children??[]).length===0){let r=typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:`[${n.label??``}][${n.identifier??``}]`;return r?t?e.text(r,[t.create({sourceRaw:r})]):e.text(r):null}let o=a.all(n).flat(),s=r.link.create({href:``,title:null,linkStyle:n.referenceType??`shortcut`,refLabel:n.label??n.identifier??null});return o.map(e=>e.mark(s.addToSet(e.marks)))}}n.htmlBlock&&(i.html=e=>n.htmlBlock.createAndFill({content:e.value??``}));let o=n.linkDefinition??n.linkRefDef;if(o){let e=!!o.spec.attrs?.url,t=!!o.spec.attrs?.href,n=!!o.spec.attrs?.identifier,r=!!o.spec.attrs?.sourceLayout,a=!!o.spec.attrs?.sourceTitleMarker;i.definition=i=>{let s={title:i.title??null};return n&&(s.identifier=i.identifier??``),s.label=i.label??i.identifier??``,e?s.url=i.url??``:t&&(s.href=i.url??``),r&&(s.sourceLayout=i.data?.sourceLayout??null),a&&(s.sourceTitleMarker=i.data?.sourceTitleMarker??null),o.createAndFill(s)}}if(n.jsxComponent){let r=e=>{if(e&&typeof e==`object`&&`sourceRaw`in e){let t=e.sourceRaw;if(typeof t==`string`)return t}};i.mdxJsxFlowElement=(e,i,a)=>{let o=e.name??``,s=Z8.getOrWildcard(o),c=kre(e.attributes,s.props);if(o===`CommonMarkImage`&&typeof c.src==`string`){let e=c.src,n=G8(e,t.current.sourcePath);n!==e&&(c.src=n,c.sourceUrl=e)}let l=a.all(e).flat();return n.jsxComponent.createAndFill({componentName:o,kind:`element`,attributes:e.attributes,sourceRaw:r(e.data)??``,sourceDirty:!1,props:c},l.length?l:void 0)};let a=(e,t)=>{let n=e.attributes?.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);return n&&typeof n.value==`string`?n.value:null};i.mdxJsxTextElement=t=>{if(t.name===`InlineMath`&&n.mathInline){let e=a(t,`formula`)??``,r=a(t,`id`);return n.mathInline.create({formula:e,id:r??null})}if(t.name===`Tag`&&n.tag){let e=a(t,`value`)??``;return n.tag.create({value:e})}if(n.jsxInline){let i=r(t.data)??``;return n.jsxInline.createAndFill({},i?[e.text(i)]:null)}return n.jsxComponent.createAndFill({sourceRaw:r(t.data)??``})},i.mdxFlowExpression=e=>{let t=r(e.data)??`{${e.value??``}}`;return n.jsxComponent.createAndFill({kind:`expression`,sourceRaw:t,sourceDirty:!1})},i.mdxTextExpression=t=>{let n=r(t.data)??`{${t.value??``}}`;return e.text(n)}}return n.wikiLink&&(i.wikiLink=e=>n.wikiLink.createAndFill({target:e.data?.target??``,alias:e.data?.alias??null,anchor:e.data?.anchor??null})),n.tag&&(i.tag=e=>n.tag.createAndFill({value:e.value})),n.wikiLinkEmbed&&(i.wikiLinkEmbed=(i,a)=>{let o=i.data?.target??``,s=i.data?.alias??null,c=i.data?.anchor??null,l=V1(o),{resolveEmbed:u,sourcePath:d}=t.current,f=u&&d?u(o,d)??null:null,p=f?`/${f}`:o,m=a?.type===`paragraph`&&Array.isArray(a.children)&&a.children.length===1;if(m&&Nre.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedImage`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedImage`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,alt:s??o,target:o,anchor:c,alias:s}});if(m&&w$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedVideo`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedVideo`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,title:s??o,target:o,anchor:c,alias:s}});if(m&&E$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedAudio`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedAudio`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,title:s??o,target:o,anchor:c,alias:s}});if(m&&D$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedFile`)){let{resolveSize:e}=t.current,r=e&&d?e(o,d)??null:null,i=r===null?null:X8(r);return n.jsxComponent.createAndFill({componentName:`WikiEmbedFile`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,target:o,anchor:c,alias:s,size:i}})}let h=s||(c?`${o}#${c}`:o);if(j$.has(l)&&r.link){let t=r.link.create({href:p,title:null,linkStyle:`inline`,refLabel:null,sourceForm:`wikiembed`,target:o,anchor:c,alias:s});return e.text(h,[t])}if(r.link){let t=r.link.create({href:o,title:null,linkStyle:`inline`,refLabel:null});return e.text(h,[t])}throw Error("[wikiLinkEmbed handler] schema lacks `link` mark — cannot dispatch without violating the STOP rule against emitting PM wikiLinkEmbed server-side")}),n.mathInline&&(i.inlineMath=e=>n.mathInline.create({formula:e.value??``})),i.math||=t=>{let r=t.value==null?`«unknown:${t.type}»`:t.value;return n.rawMdxFallback?(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.type,reason:`Unhandled block mdast: ${t.type}`})),n.rawMdxFallback.createAndFill({reason:`Unhandled block mdast: ${t.type}`},r?[e.text(r)]:null)):null},i.inlineMath||=t=>(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.type,reason:`Unhandled inline mdast: ${t.type}`})),t.value==null?e.text(`«unknown:${t.type}»`):e.text(t.value)),n.footnoteReference?i.footnoteReference=e=>n.footnoteReference.create({identifier:e.identifier,label:e.label??e.identifier}):i.footnoteReference||=t=>(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:`footnoteReference`,reason:`FootnoteReference extension missing — recovering [^id] source`})),e.text(`[^${t.label??t.identifier}]`)),n.footnoteDefinition?i.footnoteDefinition=zH(n.footnoteDefinition,e=>{let t=e;return{identifier:t.identifier,label:t.label??t.identifier}}):i.footnoteDefinition||=t=>{console.warn(JSON.stringify({event:`unknown-mdast-type`,type:`footnoteDefinition`,reason:`FootnoteDefinition extension missing — recovering [^id]: marker`}));let r=`[^${t.label??t.identifier}]: `;return n.paragraph?n.paragraph.create(null,e.text(r)):null},i.rawMdxFallbackMdast=t=>{if(!n.rawMdxFallback)return null;let r=t.position?{start:t.position.start?.offset??0,end:t.position.end?.offset??0}:{start:0,end:0};return console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.originalType,reason:`Unhandled mdast: ${t.originalType}`})),n.rawMdxFallback.createAndFill({reason:`Unhandled mdast: ${t.originalType}`,originalSpan:r},t.value?[e.text(t.value)]:null)},i}function Fre(e){let t={},n={},r=e.nodes,i=e.marks;r.paragraph&&(t.paragraph=GH(`paragraph`)),r.blockquote&&(t.blockquote=GH(`blockquote`,e=>{let t=e.attrs.sourceMarkerSpacings,n={};return Array.isArray(t)&&t.length>0&&(n.sourceMarkerSpacings=t),Object.keys(n).length>0?{data:n}:{}})),r.heading&&(t.heading=GH(`heading`,e=>({depth:e.attrs.level,data:{sourceStyle:e.attrs.headingStyle,sourceTrailingHashes:e.attrs.sourceTrailingHashes??void 0,sourceUnderlineLength:e.attrs.sourceUnderlineLength??void 0,sourceContiguousNext:e.attrs.sourceContiguousNext===!0?!0:void 0}}))),r.codeBlock&&(t.codeBlock=e=>{let t=e.attrs.sourceStyle===`indented`?`indented`:`fenced`;return{type:`code`,lang:t===`indented`?null:e.attrs.language??null,meta:t===`indented`?null:e.attrs.meta??null,value:e.textContent??``,data:{sourceFenceChar:e.attrs.fenceDelimiter,sourceFenceLength:e.attrs.fenceLength,sourceStyle:t}}}),r.thematicBreak&&(t.thematicBreak=e=>({type:`thematicBreak`,data:{sourceRaw:e.attrs.sourceRaw}})),r.hardBreak&&(t.hardBreak=e=>({type:`break`,data:{sourceStyle:e.attrs.hardBreakStyle}})),r.list&&(t.list=GH(`list`,e=>({ordered:e.attrs.ordered??!1,start:e.attrs.ordered?e.attrs.start??1:null,spread:e.attrs.spread??!1,data:{bulletMarker:e.attrs.bulletMarker,listMarkerDelimiter:e.attrs.listMarkerDelimiter}}))),r.listItem&&(t.listItem=(e,t,n)=>{let r=n.all(e),i=r.length>1&&Mre(r[0])?r.slice(1):r;return{type:`listItem`,checked:e.attrs.checked??null,spread:e.attrs.spread??!1,children:i}}),r.table&&(t.table=(e,t,n)=>{let r=n.all(e),i=[],a=e.firstChild;a&&a.forEach(e=>{let t=e.attrs.align;i.push(t===`left`||t===`right`||t===`center`?t:null)});let o=r.filter(e=>e.type===`tableRow`),s=e.attrs.sourceDashCounts,c=Array.isArray(s)&&s.length>0?{sourceDashCounts:s}:void 0,l={type:`table`,align:i,children:o};return c&&(l.data=c),l}),r.tableRow&&(t.tableRow=GH(`tableRow`));let a=e=>{let t=e.attrs.sourcePadding,n={};return typeof t==`object`&&t&&typeof t.left==`number`&&typeof t.right==`number`&&(n.sourcePadding=t),Object.keys(n).length>0?{data:n}:{}};if(r.tableCell&&(t.tableCell=GH(`tableCell`,a)),r.tableHeader&&(t.tableHeader=GH(`tableCell`,a)),r.image&&(t.image=e=>({type:`image`,url:e.attrs.sourceUrl??e.attrs.src,alt:e.attrs.alt,title:e.attrs.title})),r.imageReference&&(t.imageReference=e=>{let t=e.attrs.label??``,n=e.attrs.identifier??t;return{type:`imageReference`,alt:e.attrs.alt??``,identifier:n,label:t||n,referenceType:e.attrs.referenceType??`shortcut`}}),r.htmlBlock&&(t.htmlBlock=e=>({type:`html`,value:e.attrs.content})),r.linkDefinition??r.linkRefDef){let e=r.linkDefinition?`linkDefinition`:`linkRefDef`;t[e]=e=>{let t={},n=e.attrs.sourceLayout;(n===`multiline`||n===`inline`)&&(t.sourceLayout=n);let r=e.attrs.sourceTitleMarker;(r===`single`||r===`double`||r===`paren`)&&(t.sourceTitleMarker=r);let i={type:`definition`,identifier:e.attrs.identifier??e.attrs.label??``,label:e.attrs.label??e.attrs.identifier??``,url:e.attrs.url??e.attrs.href??``,title:e.attrs.title};return Object.keys(t).length>0&&(i.data=t),i}}if(r.jsxComponent&&(t.jsxComponent=(e,t,n)=>{if(e.attrs.kind===`expression`)return{type:`html`,value:e.attrs.sourceRaw??``};let r=e.attrs.componentName||null,i=Array.isArray(e.attrs.attributes)?e.attrs.attributes:[];return!jre(e)&&e.attrs.sourceRaw?{type:`mdxJsxFlowElement`,name:r,attributes:i,children:[],data:{sourceRaw:String(e.attrs.sourceRaw)}}:Z8.getOrWildcard(r??`*`).serialize(e,{all:e=>n.all(e),registry:Z8,serializeChildren:()=>{throw Error(`SerializeContext.serializeChildren is not available in the PM→mdast handler. Compat descriptors that need markdown-byte body rendering must emit a marker mdast node and let the to-markdown handler render the body via state.containerFlow.`)}})}),r.rawMdxFallback&&(t.rawMdxFallback=e=>{let t=e.textContent??``,n=typeof e.attrs.reason==`string`?e.attrs.reason:``,r=e.attrs.originalSpan;return{type:`rawMdxFallback`,value:t,data:{reason:n,originalSpan:r&&typeof r==`object`&&`start`in r&&`end`in r?{start:Number(r.start)||0,end:Number(r.end)||0}:{start:0,end:0}}}}),r.jsxInline&&(t.jsxInline=e=>{let t=e.attrs.sourceRaw||e.textContent||``;return{type:`mdxJsxTextElement`,name:null,attributes:[],children:[],data:{sourceRaw:String(t)}}}),r.mathInline&&(t.mathInline=e=>{let t=e.attrs.formula??``,n=e.attrs.id;return typeof n==`string`&&n.length>0?{type:`mdxJsxTextElement`,name:`InlineMath`,attributes:[{type:`mdxJsxAttribute`,name:`formula`,value:t},{type:`mdxJsxAttribute`,name:`id`,value:n}],children:[]}:{type:`inlineMath`,value:t}}),r.wikiLink&&(t.wikiLink=e=>{let t=e.attrs.target??``,n=e.attrs.anchor??null,r=e.attrs.alias??null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLink`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}),r.tag&&(t.tag=e=>({type:`tag`,value:String(e.attrs.value??``)})),r.wikiLinkEmbed&&(t.wikiLinkEmbed=e=>{let t=e.attrs.target??``,n=e.attrs.anchor??null,r=e.attrs.alias??null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLinkEmbed`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}),i.emphasis&&(n.emphasis=KH(`emphasis`,e=>({data:{sourceDelimiter:e.attrs.sourceDelimiter}}))),i.strong&&(n.strong=KH(`strong`,e=>({data:{sourceDelimiter:e.attrs.sourceDelimiter}}))),i.code&&(n.code=(e,t,n)=>{let r=e.attrs.sourceFenceChar,i=e.attrs.sourceFenceLength;return $8(n,{sourceFenceChar:r,sourceFenceLength:i})}),i.strike??i.delete){let e=i.strike?`strike`:`delete`;n[e]=KH(`delete`)}return i.highlight&&(n.highlight=KH(`mark`)),i.comment&&(n.comment=KH(`comment`,e=>({data:{sourceForm:e.attrs.sourceForm===`html`?`html`:`percent`}}))),r.commentBlock&&(t.commentBlock=GH(`commentBlock`,e=>({data:{sourceForm:e.attrs.sourceForm===`html`?`html`:`percent`,sourceLayout:e.attrs.sourceLayout===`inline`?`inline`:`block`}}))),r.footnoteReference&&(t.footnoteReference=e=>{let t=String(e.attrs.identifier??``);return{type:`footnoteReference`,identifier:t,label:e.attrs.label?String(e.attrs.label):t}}),r.footnoteDefinition&&(t.footnoteDefinition=GH(`footnoteDefinition`,e=>({identifier:String(e.attrs.identifier??``),label:e.attrs.label?String(e.attrs.label):String(e.attrs.identifier??``)}))),i.link&&(n.link=(e,t,n)=>{if(e.attrs.sourceForm===`wikiembed`){let t=typeof e.attrs.target==`string`&&e.attrs.target.length>0?e.attrs.target:e.attrs.href??``,n=typeof e.attrs.anchor==`string`&&e.attrs.anchor.length>0?e.attrs.anchor:null,r=typeof e.attrs.alias==`string`&&e.attrs.alias.length>0?e.attrs.alias:null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLinkEmbed`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}let r=e.attrs.linkStyle;if(r===`autolink`)return{type:`link`,url:e.attrs.href??``,title:null,children:n,data:{sourceStyle:`autolink`}};if(r===`gfm-autolink`)return{type:`link`,url:e.attrs.href??``,title:null,children:n,data:{sourceStyle:`gfm-autolink`}};if(r===`inline`||!r){let t={};e.attrs.sourceUrlForm===`angle-bracketed`&&(t.sourceUrlForm=`angle-bracketed`);let r=e.attrs.sourceTitleMarker;return(r===`single`||r===`double`||r===`paren`)&&(t.sourceTitleMarker=r),{type:`link`,url:e.attrs.href??``,title:e.attrs.title??null,children:n,...Object.keys(t).length>0?{data:t}:{}}}return{type:`linkReference`,identifier:(e.attrs.refLabel??``).toLowerCase(),label:e.attrs.refLabel,referenceType:r,children:n}}),i.escapeMark&&(n.escapeMark=(e,t,n)=>{for(let e of n)if(e.type===`text`&&e.value){let t=e;t.data=t.data??{},t.data.escapedChars=t.data.escapedChars??[];for(let e=0;e<t.value.length;e++)t.data.escapedChars.push({offset:e,char:t.value[e]})}return n.length===1?n[0]:n}),i.sourceLiteral&&(n.sourceLiteral=(e,t,n)=>{let r=typeof e.attrs.sourceRaw==`string`?e.attrs.sourceRaw:``;if(n.length===1&&n[0]?.type===`text`){let e=n[0],t=r||e.value;return k1(t,e.value)&&(e.data=e.data??{},e.data.sourceRaw=t),e}return{type:`text`,value:n.filter(e=>e.type===`text`).map(e=>e.value??``).join(``)||r}}),{nodeHandlers:t,markHandlers:n}}var Ire=/\p{M}+/gu,Lre=/[^\p{L}\p{N}]+/gu,Rre=/^-+|-+$/g;function t5(e){return e.trim().normalize(`NFKD`).replace(Ire,``).toLowerCase().replace(Lre,`-`).replace(Rre,``)}function zre(e,t){let n=t.get(e)??0;return t.set(e,n+1),n===0?e:`${e}-${n}`}function Bre(e,t){let n=t5(e);return n?zre(n,t):``}function n5(e,t){let n=t5(e);return t?`#${n}-${t5(t)}`:`#${n}`}var Vre=new Set([`img`,`video`,`audio`,`mark`]);function r5(e){let t=e.name;if(!t||!Vre.has(t))return null;let n={};for(let t of e.attributes){if(t.type!==`mdxJsxAttribute`)return null;let e=t.name.toLowerCase();if(!(e.length>=3&&e.startsWith(`on`)))if(t.value===null)n[t.name]=!0;else if(typeof t.value==`string`)n[t.name]=t.value;else return null}return{type:`element`,tagName:t,properties:n,children:[]}}var Hre=(e,t)=>{let n=t,{target:r,anchor:i,alias:a}=n.data,o={type:`element`,tagName:`a`,properties:{className:[`wiki-link`],dataTarget:r,dataAnchor:i??``,dataAlias:a??``,href:n5(r,i)},children:n.children.length>0?e.all(n):[{type:`text`,value:n.value}]};return e.patch(t,o),e.applyData(t,o)},Ure=(e,t)=>{let n=t,{target:r,anchor:i,alias:a}=n.data,o={type:`element`,tagName:`a`,properties:{className:[`wiki-embed`],dataTarget:r,dataAnchor:i??``,dataAlias:a??``,href:n5(r,i)},children:n.children.length>0?e.all(n):[{type:`text`,value:n.value}]};return e.patch(t,o),e.applyData(t,o)},Wre=(e,t)=>{let n=t,r=r5(n);if(r)return n.children.length>0&&(r.children=e.all(n)),e.patch(t,r),e.applyData(t,r);let i={type:`element`,tagName:`pre`,properties:{className:[`mdx-component`]},children:[{type:`element`,tagName:`code`,properties:{},children:[{type:`text`,value:typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:``}]}]};return e.patch(t,i),e.applyData(t,i)},Gre=(e,t)=>{let n=t,r=r5(n);if(r)return n.children.length>0&&(r.children=e.all(n)),e.patch(t,r),e.applyData(t,r);let i={type:`element`,tagName:`span`,properties:{className:[`mdx-inline`],dataJsxInline:``},children:[{type:`text`,value:typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:``}]};return e.patch(t,i),e.applyData(t,i)},Kre=(e,t)=>{let n=t,r=n.data.reason||`unknown`,i=n.value||``,a=r.replace(/--/g,`—`),o={type:`comment`,value:` Parse error: ${a} `},s={type:`element`,tagName:`pre`,properties:{className:[`mdx-fallback`],dataRawMdxFallback:``,dataReason:a},children:[{type:`element`,tagName:`code`,properties:{},children:[{type:`text`,value:i}]}]};return e.patch(t,s),[o,e.applyData(t,s)]},qre=(e,t)=>{let n={type:`element`,tagName:`mark`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)};function i5(e){if(typeof e!=`object`||!e)return``;let t=e;return typeof t.value==`string`?t.value:Array.isArray(t.children)?t.children.map(i5).join(``):``}var a5={wikiLink:Hre,wikiLinkEmbed:Ure,mdxJsxFlowElement:Wre,mdxJsxTextElement:Gre,rawMdxFallback:Kre,mark:qre,tag:(e,t)=>{let n=t.value,r={type:`element`,tagName:`a`,properties:{className:[`tag`],dataTag:n,href:`#tag/${n}`},children:[{type:`text`,value:`#${n}`}]};return e.patch(t,r),e.applyData(t,r)},comment:(e,t)=>{let n={type:`comment`,value:i5(t).replace(/--/g,`—`)};return e.patch(t,n),e.applyData(t,n)},commentBlock:(e,t)=>{let n={type:`comment`,value:i5(t).replace(/--/g,`—`)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:(e,t)=>{let n=t.identifier,r={type:`element`,tagName:`sup`,properties:{id:`fnref-${n}`,dataFootnoteRef:``,dataFootnoteId:n,className:[`footnote-ref`]},children:[{type:`element`,tagName:`a`,properties:{href:`#fn-${n}`,className:[`footnote-ref-link`]},children:[{type:`text`,value:`[${n}]`}]}]};return e.patch(t,r),e.applyData(t,r)},footnoteDefinition:(e,t)=>{let n=t.identifier,r={type:`element`,tagName:`aside`,properties:{id:`fn-${n}`,dataFootnoteDef:``,dataFootnoteId:n,className:[`footnote-def`]},children:[{type:`element`,tagName:`div`,properties:{className:[`footnote-body`]},children:e.all(t)},{type:`element`,tagName:`a`,properties:{href:`#fnref-${n}`,className:[`footnote-backref`],ariaLabel:`Back to reference`},children:[{type:`text`,value:`↩`}]}]};return e.patch(t,r),e.applyData(t,r)}},Jre=/url\s*\(\s*['"]?\s*(?:javascript|vbscript|data)\s*:/i,Yre=/\bexpression\s*\(/i,Xre=1e4;function Zre(e){return!(e.length>Xre||Jre.test(e)||Yre.test(e))}function o5(e){for(let t of e.split(`,`)){let e=t.trim();if(e!==``&&!i1(e.split(/\s+/)[0]??``))return!1}return!0}var s5=()=>e=>{TP(e,`element`,e=>{let t=e.tagName.toLowerCase(),n=e.properties;if(!n)return;if(t===`a`||t===`area`||t===`link`||t===`base`){let e=n.href;typeof e==`string`&&!i1(e)&&delete n.href}if(t===`img`||t===`iframe`||t===`script`||t===`embed`||t===`source`||t===`audio`||t===`video`||t===`track`){let e=n.src;typeof e==`string`&&!i1(e)&&delete n.src}if(t===`form`){let e=n.action;typeof e==`string`&&!i1(e)&&delete n.action}if(t===`img`||t===`source`){let e=n.srcSet;typeof e==`string`&&!o5(e)&&delete n.srcSet;let t=n.srcset;typeof t==`string`&&!o5(t)&&delete n.srcset}if(t===`video`){let e=n.poster;typeof e==`string`&&!i1(e)&&delete n.poster}let r=n.style;typeof r==`string`&&!Zre(r)&&delete n.style})};function Qre(e){let t=gH().use(Bq,{handlers:a5}).use(s5).use($K),n=t.runSync(e);return String(t.stringify(n))}function $re(e){let t=gH().use(mW).use(pU,[`yaml`]).use(x8).use(sH).use(W8).use(Bq,{handlers:a5}).use(s5).use($K);return String(t.processSync(e))}tK(),mG(),hG(),N({docName:S0,summary:T0,content:A().optional(),...w0}).loose(),N({docName:S0,summary:T0,markdown:A(),position:P([`append`,`prepend`,`replace`]).optional(),...w0}).loose(),N({docName:S0,summary:T0,find:A().min(1),replace:A(),offset:j().int().nonnegative().optional(),...w0}).loose(),N({docName:S0,connectionId:A().min(1),scope:P([`last`,`session`,`file`]).optional(),...w0}).loose();var c5=N({value:A(),truncatedFrom:j().int().nonnegative().optional(),hint:A().optional()}).loose(),eie=N({type:F(`orphan`),parentCandidates:M(A()),message:A()}).loose();N({timestamp:A().min(1),summary:c5.optional()}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),hints:M(eie).optional(),summary:c5.optional()}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),summary:c5.optional()}).loose(),N({docName:A().min(1),scope:P([`last`,`session`]),undone:Ra()}).loose(),N({docName:S0,patch:to(A(),Ya([MZ,Ba()])),types:to(A(),P(AZ)).optional(),summary:T0,...w0}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),appliedKeys:M(A()),summary:c5.optional()}).loose(),N({entries:M(N({level:P([`info`,`warn`,`error`]),message:A().max(K0),event:A().optional(),fields:to(A(),Ha()).optional(),ts:j().optional(),sourceId:A().optional(),lineNumber:j().optional()}).loose()).max(100)}).loose(),N({accepted:j().int().min(0)}).loose();var tie=N({status:A().min(1),reason:A()}).loose();N({docName:A().min(1),content:A(),lifecycle:tie.nullable()}).loose();var l5=N({kind:P([`document`,`asset`,`folder`]).default(`document`),docName:A().min(1).optional(),docExt:A().min(1).default(`.md`),size:j().int().nonnegative(),modified:A().min(1),isSymlink:Ra().default(!1),canonicalDocName:A().nullable().default(null),targetPath:A().nullable().default(null),path:A().min(1).optional(),assetExt:A().min(1).optional(),mediaKind:P([`image`,`video`,`audio`,`pdf`,`text`]).nullable().optional(),referencedBy:M(A().min(1)).optional()}).loose().refine(e=>e.kind===`document`?e.docName!==void 0&&e.path===void 0&&e.assetExt===void 0&&e.mediaKind===void 0&&e.referencedBy===void 0:e.kind===`folder`?e.docName===void 0&&e.path!==void 0&&e.assetExt===void 0&&e.mediaKind===void 0&&e.referencedBy===void 0:e.path!==void 0&&e.assetExt!==void 0&&e.referencedBy!==void 0,{message:`document/asset/folder kind must match its required fields (document → docName; asset → path+assetExt+referencedBy; folder → path only, no docName)`}),nie=N({documents:M(l5),truncated:Ra().optional()}).loose(),rie=N({source:A().min(1),anchor:A().nullable(),title:A(),snippet:A().nullable()}).loose(),iie=N({docName:A().min(1),backlinks:M(rie)}).loose();N({counts:to(A().min(1),j().int().nonnegative())}).loose();var aie=Za(`kind`,[N({kind:F(`doc`),docName:A().min(1),anchor:A().nullable(),title:A(),snippet:A().nullable()}).loose(),N({kind:F(`external`),url:A().min(1),title:A(),snippet:A().nullable()}).loose()]),oie=N({docName:A().min(1),forwardLinks:M(aie)}).loose(),sie=Za(`kind`,[N({id:A().min(1),kind:F(`doc`),docName:A().min(1),anchor:A().nullable(),label:A(),cluster:A().nullable(),category:A().nullable(),tags:M(A()).nullable()}).loose(),N({id:A().min(1),kind:F(`external`),url:A().min(1),label:A()}).loose()]),cie=N({source:A().min(1),target:A().min(1)}).loose(),lie=N({nodes:M(sie),links:M(cie)}).loose();N({writers:M(N({id:A().min(1),name:A().optional(),email:A().optional()}).loose()).optional(),...w0}).loose(),N({checkpointRef:A().min(1)}).loose();var uie=N({v:j().int().optional(),id:A().min(1),name:A().min(1),colorSeed:A().optional(),docs:M(A()),summaries:M(A()).optional()}).loose();N({entries:M(N({sha:A().min(1),timestamp:A().min(1),author:A(),authorEmail:A(),type:P([`checkpoint`,`wip`,`upstream`,`park`]),message:A(),contributors:M(uie),checkpoint:Ha().nullable()}).loose()),total:j().int().nonnegative().optional(),truncated:Ra().optional()}).loose(),N({sha:A().regex(/^[0-9a-f]{40}$/i),content:A(),timestamp:A(),author:A()}).loose(),N({lines:M(N({type:P([`added`,`removed`,`unchanged`]),text:A()}).loose()),additions:j().int().nonnegative(),deletions:j().int().nonnegative()}).loose();var die=N({contentDir:A().min(1),pathSeparator:P([`/`,`\\`]),symlinkResolved:Ra()}).loose();M(Za(`source`,[N({docName:A().min(1),timestamp:A().min(1),size:j().int().nonnegative(),source:F(`flat`)}).loose(),N({docName:A().min(1),timestamp:A().min(1),source:F(`timeline`),sha:A().min(1)}).loose()])).meta({description:"Flat array of rescue buffer entries; discriminated via `source`."});var fie=N({orphans:M(N({docName:A().min(1),title:A()}).loose())}).loose(),pie=N({hubs:M(N({docName:A().min(1),title:A(),count:j().int().nonnegative()}).loose())}).loose(),mie=N({source:A().min(1),title:A(),snippet:A().nullable()}).loose();N({deadLinks:M(N({target:A().min(1),sources:M(mie)}).loose())}).loose(),N({target:N({docName:A().min(1),title:A(),aliases:M(A())}).loose(),mentions:M(N({source:A().min(1),excerpt:A(),offset:j().int().nonnegative()}).loose()),truncated:Ra()}).loose(),N({dir:A().min(1),port:j().int().min(1).max(65535).optional()}).loose(),N({port:j().int().positive()}).loose(),N({projectPath:A().min(1)}).loose();var hie=P([`not-a-git-worktree`,`init-failed`]);Za(`ok`,[N({ok:F(!0),projectPath:A().min(1)}).loose(),N({ok:F(!1),reason:hie,message:A().min(1)}).loose()]),N({host:A().min(1).optional()}).loose(),N({pat:A().min(1),host:A().min(1).optional()}).loose(),N({name:A().refine(e=>e.trim().length>0,{message:`name must be non-empty`}),email:A().refine(e=>e.trim().length>0,{message:`email must be non-empty`})}).loose(),N({identity:N({name:A().min(1),email:A().min(1)}).loose().nullable()}).loose(),N({authenticated:Ra()}).loose(),N({type:F(`complete`).optional(),login:A().min(1).optional()}).loose(),N({}).loose();var gie=N({stackIndex:j().int().min(0),ts:j().int().min(0),additions:j().int().min(0),deletions:j().int().min(0)}).loose(),_ie=N({docName:A().min(1),additionsTotal:j().int().min(0),deletionsTotal:j().int().min(0),lastTs:j().int().min(0),bursts:M(gie)}).loose(),vie=N({displayName:A().min(1),color:A().min(1),icon:A().optional(),connectionId:A().min(1)}).loose(),yie=N({sessionAlive:Ra(),agent:vie.nullable(),files:M(_ie)}).loose(),bie=N({diff:A(),generatedAt:j().int().min(0)}).loose();N({}).loose(),N({}).loose(),N({}).loose(),N({}).loose(),N({}).loose();var xie=N({displayName:A().min(1),icon:A(),color:A().min(1),currentDoc:A().nullable(),mode:P([`idle`,`writing`]),ts:j().int().min(0)}).loose();N({presence:to(A().min(1),xie)}).loose(),to(A().min(1),Ra()).meta({description:`Flat boolean record keyed by agent-scheme name (claude / codex / cursor). True = installed.`}),N({path:A().min(1,`path must be non-empty`)}).loose(),N({}).loose();var u5=N({fromDocName:A().min(1),toDocName:A().min(1)}).loose(),Sie=N({fromPath:A().min(1),toPath:A().min(1)}).loose();N({}).loose(),N({path:A().min(1),...w0,summary:T0}).loose();var Cie=N({docName:A().min(1)}).loose();N({path:A().min(1),...w0,summary:T0}).loose();var wie=N({path:A().min(1)}).loose();N({kind:P([`file`,`folder`]),path:A().min(1),...w0,summary:T0}).loose();var Tie=N({kind:P([`file`,`folder`]),path:A().min(1),duplicatedDocNames:M(A().min(1))}).loose(),Eie=N({pages:M(N({docName:A().min(1),title:A(),docExt:A().min(1),size:j().int().nonnegative(),modified:A().min(1),icon:A().min(1).max(2048).optional()}).loose())}).loose(),Die=N({level:j().int().min(1).max(6),text:A(),slug:A()}).loose(),Oie=N({docName:A().min(1),headings:M(Die)}).loose();N({docName:C0,newDocName:C0,summary:T0,...w0}).loose();var d5=N({docName:A().min(1),rewrites:j().int().nonnegative()}).loose();N({renamed:M(u5),rewrittenDocs:M(d5),summary:c5.optional()}).loose(),N({kind:P([`file`,`folder`,`asset`]),fromPath:A().min(1),toPath:A().min(1),...w0,summary:T0}).loose();var kie=N({renamed:M(u5),renamedAssets:M(Sie),rewrittenDocs:M(d5).optional(),summary:c5.optional()}).loose();N({kind:P([`file`,`folder`,`asset`]),path:A().min(1),...w0}).loose();var Aie=N({deletedDocNames:M(A().min(1))}).loose();N({kind:P([`file`,`folder`,`asset`]),path:A().min(1),...w0,summary:T0}).loose();var jie=N({deletedDocNames:M(A().min(1))}).loose();N({docName:A().min(1),commitSha:A().regex(/^[0-9a-f]{40}$/i,{message:`commitSha must be a 40-char git SHA`}),summary:T0,...w0}).loose(),N({restoredFrom:A().min(1),timestamp:A().min(1),summary:c5.optional()}).loose();var Mie=P([`dormant`,`idle`,`fetching`,`pulling`,`pushing`,`conflict`,`offline`,`auth-error`,`disabled`]),Nie=N({label:A().min(1),webUrl:va().nullable()}).loose(),Pie=Za(`checkStatus`,[N({checkStatus:F(`allowed`)}).loose(),N({checkStatus:F(`denied`),deniedReason:P([`no-collaborator`,`private-no-access`,`repo-not-found`])}).loose(),N({checkStatus:F(`unknown`),unknownError:P([`network`,`timeout`,`rate-limit`,`token-invalid`,`malformed-response`]).optional()}).loose()]);N({state:Mie,lastSyncUtc:A().nullable(),lastFetchUtc:A().nullable(),lastPushedSha:A().nullable(),ahead:j().int().min(0),behind:j().int().min(0),consecutiveFailures:j().int().min(0),conflictCount:j().int().min(0),hasRemote:Ra(),syncEnabled:Ra(),identityUnresolved:Ra(),remote:Nie.nullable().optional(),error:A().optional(),errorCode:P([`auth-403`,`auth-401`,`auth-scope-mismatch`,`semantic-protected-branch`]).optional(),pausedReason:A().optional(),pushPermission:Pie.optional()}).loose(),N({op:P([`sync`,`push`,`pull`]).optional()}).loose(),N({op:P([`sync`,`push`,`pull`])}).loose(),N({conflicts:M(N({file:A().min(1),detectedAt:A().min(1),oursSha:A().optional(),theirsSha:A().optional(),baseSha:A().optional()}).loose())}).loose(),N({file:A().min(1),strategy:P([`mine`,`theirs`,`content`,`delete`]),content:A().optional()}).loose().refine(e=>e.strategy!==`content`||e.content!==void 0&&e.content!==``,{message:`content must be a non-empty string when strategy is 'content'`,path:[`content`]}),N({}).loose(),N({file:A().min(1),base:A(),ours:A(),theirs:A(),kind:P([`both-modified`,`delete-modify`,`modify-delete`]),lifecycleStatus:A().nullable()}).loose(),N({}).loose(),N({plan:Eo(e=>e!==void 0,{message:`plan is required`})}).loose(),N({plan:Eo(e=>e!==void 0,{message:`plan is required`})}).loose(),N({result:Eo(e=>e!==void 0,{message:`result is required`})}).loose();var Fie=N({path:A().min(1),summary:A().min(1)}).loose(),Iie=N({files:j().int().nonnegative(),folders:j().int().nonnegative()}).loose();N({packs:M(N({id:A().min(1),name:A().min(1),description:A().min(1),defaultSubfolder:A().optional(),folders:M(Fie),entryCounts:Iie}).loose())}).loose(),N({noOpen:Ra().optional(),out:A().min(1).optional()}).loose();var Lie=N({reason:P([`unsupported-platform`,`spawn-error`]),message:A()}).loose();Za(`status`,[N({status:F(`installed`),outputPath:A(),size:j().int().nonnegative(),sha256:A(),skillVersion:A()}).loose(),N({status:F(`built`),outputPath:A(),size:j().int().nonnegative(),sha256:A(),skillVersion:A(),handoffError:Lie.optional()}).loose(),N({status:F(`failed`),buildError:A()}).loose(),N({status:F(`skip-current`),skillVersion:A(),recordedAt:A().optional()}).loose()]),N({tags:M(N({name:A().min(1),count:j().int().nonnegative(),isLeaf:Ra()}).loose())}).loose();var Rie=N({docName:A().min(1),title:A(),matchingTags:M(A().min(1)),snippet:A().nullable()}).loose();N({name:A().min(1),docs:M(Rie)}).loose(),N({folder:Ha(),frontmatter_local:to(A(),Ha()).nullable(),frontmatter_sources:to(A(),A()).optional(),schema_declarations:to(A(),Ha()).optional(),schema_sources:to(A(),A()).optional(),schema_local:to(A(),Ha()).nullable()}).loose(),N({path:A(),frontmatter:to(A(),Ha()).optional(),declarations:to(A(),Ha()).optional()}).loose(),N({applied:Ha()}).loose();var f5=to(A(),Ha()).meta({description:`Free-form frontmatter map embedded in template payloads.`});N({template:N({name:A().min(1),folder:A(),scope:P([`local`,`inherited`]),path:A().min(1),frontmatter:f5,body:A()}).strict()}).strict(),N({folder:A(),name:A(),body:A().optional(),frontmatter:f5.optional()}).strict(),N({path:A().min(1),created:Ra(),warnings:M(A())}).strict(),N({existed:Ra(),path:A().min(1)}).strict(),N({query:A().optional(),intent:P([`autocomplete`,`full_text`,`omnibar`]).optional(),scopes:M(P([`page`,`folder`,`content`])).optional(),scope:A().optional(),limit:j().int().nonnegative().optional()}).loose();var zie=N({kind:P([`page`,`folder`,`content`]),path:A().min(1),title:A(),score:j(),signals:to(A(),Ha()),snippet:A().optional()}).loose();N({query:A(),intent:P([`autocomplete`,`full_text`,`omnibar`]),results:M(zie),elapsedMs:j().nonnegative()}).loose();var Bie=N({version:A().min(1),recordedAt:A().min(1)}).loose();N({currentVersion:A().min(1),targets:to(A(),Bie.nullable())}).loose();var Vie=`server-info`,Hie=`branch-switched`,Uie=`disk-ack`,Wie=`config-validation-rejected`,Gie=`config-ignore-nested-error`,p5=P([`files`,`backlinks`,`graph`,`sync-status`,`session-activity`,`tags`]),Kie=N({v:F(1),ch:F(Vie),seq:j(),serverInstanceId:A().min(1),currentBranch:A().min(1).optional()}).loose(),qie=N({v:F(1),ch:F(Hie),seq:j(),branch:A().min(1)}).loose(),Jie=N({v:F(1),ch:p5,seq:j()}).loose(),Yie=N({v:F(1),ch:F(Uie),seq:j(),docName:A().min(1),sv:A().min(1)}).loose(),Xie=N({v:F(1),ch:F(Wie),seq:j(),docName:A().min(1),error:qQ}).loose(),Zie=N({v:F(1),ch:F(Gie),seq:j(),path:A().min(1),error:A().min(1)}).loose(),Qie={id:`string`,kind:`enum`,path:`string`,title:`string`,name:`string`,pathSegments:`string`,content:`string`,modifiedTs:`number`},m5=new WeakMap;function $ie(e){return e===void 0||!Number.isFinite(e)?20:Math.max(1,Math.min(100,Math.trunc(e)))}function h5(e){return e.trim().toLowerCase()}function g5(e){let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function eae(e){return e.split(`/`).filter(Boolean).join(` `)}function tae(e){let t=g5(e.path),n=e.title?.trim()||t,r=e.modifiedTs??0;return{id:`${e.kind}:${e.path}`,kind:e.kind,path:e.path,title:n,name:t,pathSegments:eae(e.path),content:e.content??``,modifiedTs:Number.isFinite(r)?r:0}}function _5(e){let t=IX({schema:Qie});return e.length>0&&qX(t,e),t}function nae(e){let t={documents:e};return m5.set(t,_5(e)),t}function rae(e){let t=m5.get(e);if(t)return t;let n=_5(e.documents);return m5.set(e,n),n}function iae(e){return e===`autocomplete`?[`page`]:e===`full_text`?[`page`,`content`]:[`page`,`folder`]}function v5(e,t){return t.has(e.kind)?!0:e.kind===`page`&&t.has(`content`)}function y5(e,t){let n=h5(t);if(!n)return 0;let r=h5(e.title),i=h5(e.name),a=h5(e.path),o=a.split(`/`);return r===n||i===n?700:a===n?650:r.startsWith(n)||i.startsWith(n)?600:o.some(e=>e.startsWith(n))?550:r.includes(n)||i.includes(n)?500:a.includes(n)?450:-1}function aae(e){let t=e.map(e=>e.modifiedTs).filter(e=>Number.isFinite(e)&&e>0);if(t.length===0)return new Map;let n=1/0,r=-1/0;for(let e of t)e<n&&(n=e),e>r&&(r=e);let i=Math.max(1,r-n);return new Map(e.map(e=>[e.id,e.modifiedTs>0?(e.modifiedTs-n)/i*50:0]))}function oae(e){return e===`full_text`?[`title`,`name`,`path`,`pathSegments`,`content`]:[`title`,`name`,`path`,`pathSegments`]}function sae(e){return e===`full_text`?{title:8,name:7,path:5,pathSegments:4,content:1}:e===`autocomplete`?{title:10,name:9,path:5,pathSegments:4}:{title:8,name:7,path:5,pathSegments:4}}function cae(e,t){return h5(t).length<4?0:+(e===`full_text`)}function lae(e,t,n={}){let r=n.intent??`omnibar`,i=$ie(n.limit),a=new Set(n.scopes??iae(r)),o=e.documents.filter(e=>v5(e,a)),s=h5(t);if(!s)return o.slice().sort((e,t)=>e.path.localeCompare(t.path)).slice(0,i).map(e=>({document:e,score:0,signals:{lexical:0,fullText:0,recency:0}}));let c=CZ(rae(e),{term:s,properties:oae(r),boost:sae(r),tolerance:cae(r,s),limit:Math.max(i*4,40)}),l=new Map(c.hits.filter(e=>v5(e.document,a)).map(e=>[e.document.id,e.score])),u=aae(o),d=new Map;for(let e of o)y5(e,s)>=0&&d.set(e.id,e);for(let e of c.hits)v5(e.document,a)&&d.set(e.document.id,e.document);return[...d.values()].map(e=>{let t=Math.max(0,y5(e,s)),n=l.get(e.id)??0,r=u.get(e.id)??0;return{document:e,score:t+n*20+r,signals:{lexical:t,fullText:n,recency:r}}}).sort((e,t)=>e.score===t.score?e.document.path.localeCompare(t.document.path):t.score-e.score).slice(0,i)}var b5=Symbol.for(`@inkeep/open-knowledge/skill-state-field-registry`),x5=globalThis;x5[b5]===void 0&&(x5[b5]=Wr());var S5=x5[b5],C5=qa({version:A().regex(/^\d+\.\d+\.\d+(?:[-+][\w.-]+)?$/,`version must match /^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.-]+)?$/`).register(S5,{description:`Recorded skill version for this target.`}),recordedAt:Ui().register(S5,{description:`ISO 8601 timestamp of the most recent successful write. Updated on every write, including reinstalls of the same version.`}),surface:P([`server-build-and-open`,`electron-build-and-open`,`cli-npx-skills-add`,`desktop-direct`,`cli-start`]).register(S5,{description:`Install-source surface that recorded this entry.`}).optional()});qa({schema:F(1).register(S5,{description:`Schema major version. Bumped only on breaking shape changes.`}),targets:qa({"claude-cowork":C5.optional(),"cli-hosts":C5.optional()}).register(S5,{description:`Per-target install-state entries. Absent target = no recorded install.`}).default({})});var w5=class extends Error{chunksCompleted;totalChunks;bytesWritten;bytesRemaining;cause;constructor(e,t){let n=e instanceof Error?e.message:typeof e==`string`?e:`unknown error`;super(`chunked insert failed after ${t.chunksCompleted}/${t.totalChunks} chunks (${t.bytesWritten} bytes written, ${t.bytesRemaining} bytes lost): ${n}`),this.name=`ChunkedInsertError`,this.chunksCompleted=t.chunksCompleted,this.totalChunks=t.totalChunks,this.bytesWritten=t.bytesWritten,this.bytesRemaining=t.bytesRemaining,this.cause=e}};async function uae(e,t,n,r,i={}){let a=i.thresholdBytes??512e3,o=i.chunkSizeBytes??51200,s=i.origin,c=i.yieldFn??dae,l=i.resolveOffset??(e=>e);if(r.length<=a){e.transact(()=>{t.insert(n,r)},s);return}let u=Math.ceil(r.length/o),d=0,f=n,p=0,m=0;for(;d<r.length;){let n=Math.min(d+o,r.length),i=r.slice(d,n);try{let n=l(f);e.transact(()=>{t.insert(n,i)},s)}catch(e){throw new w5(e,{chunksCompleted:p,totalChunks:u,bytesWritten:m,bytesRemaining:r.length-d})}p++,m+=i.length,f+=i.length,d=n,d<r.length&&await c()}}function dae(){return new Promise(e=>{let t=globalThis;t.document?.hidden!==!0&&typeof t.requestAnimationFrame==`function`?t.requestAnimationFrame(()=>e()):setTimeout(()=>e(),0)})}function fae(){let e=!1,t=``,n=0;return r=>{let i=pae(r);return e?(i&&i.char===t&&i.len>=n&&!i.hasInfo&&(e=!1,t=``,n=0),!0):i?(e=!0,t=i.char,n=i.len,!0):!1}}function pae(e){let t=(e.endsWith(`\r`)?e.slice(0,-1):e).match(/^ {0,3}([`~])(\1{2,})(.*)$/);return t?{char:t[1],len:1+t[2].length,hasInfo:t[3].trim()!==``}:null}var mae=[`#D97757`,`#1B1912`,`#F9F3E9`,`#7A9DFF`,`#8534F3`,`#9663F0`,`#727CF3`],hae={claude:`#D97757`,cursor:`#1B1912`,windsurf:`#0B100F`,openai:`#7A9DFF`,github:`#8534F3`,cline:`#9663F0`,bot:`#727CF3`},gae={cursor:`#FFFFFF`,windsurf:`#FFFFFF`},T5=[`#f0ece3`,`#fff5e1`,`#f9e1db`,`#f5def7`,`#ece2fb`,`#dce8fa`,`#DBF3FB`];function _ae(e,t=mae){let n=0;for(let t of e)n=(n<<5)-n+t.charCodeAt(0)|0;return t[Math.abs(n)%t.length]}function vae(e){let t=e.trim();if(!t)return`?`;let n=t.split(/[-\s]+/).filter(Boolean);if(!n.length)return`?`;if(n.length>=2)return n.slice(0,2).map(e=>e[0]??``).join(``).toUpperCase();let r=n[0],i=[r[0]];for(let e=1;e<r.length&&i.length<2;e++){let t=r[e-1],n=r[e];t===t.toLowerCase()&&n===n.toUpperCase()&&n!==n.toLowerCase()&&i.push(n)}return i.length>=2?i.join(``).toUpperCase():r.slice(0,2).toUpperCase()}function yae(e){let t=e.trim();if(!t)return e;if(t.includes(` `)||!/[-_]/.test(t))return t;let n=t.split(/[-_]+/).filter(Boolean);return n.length?n.map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `):t}var bae={"claude-code":`claude`,"claude-ai":`claude`,cursor:`cursor`,"cursor-vscode":`cursor`,cascade:`windsurf`,codex:`openai`,"codex-mcp-client":`openai`,copilot:`github`,cline:`cline`};function xae(e){return e?bae[e]||(e.startsWith(`local-agent-mode-`)?`claude`:`bot`):`bot`}function Sae(e){let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return[0,0,o*100];let s=i-a,c=o>.5?s/(2-i-a):s/(i+a),l;return l=i===t?((n-r)/s+(n<r?6:0))/6:i===n?((r-t)/s+2)/6:((t-n)/s+4)/6,[l*360,c*100,o*100]}function Cae(e,t,n){let r=t/100,i=n/100,a=r*Math.min(i,1-i),o=t=>{let n=(t+e/30)%12,r=i-a*Math.max(Math.min(n-3,9-n,1),-1);return Math.round(255*r).toString(16).padStart(2,`0`)};return`#${o(0)}${o(8)}${o(4)}`}function wae(e){let[t]=Sae(e);return Cae(t,45,32)}var Tae=[`Curious`,`Brave`,`Clever`,`Swift`,`Gentle`,`Bright`,`Wise`,`Bold`,`Calm`,`Keen`],Eae=[`Bird`,`Cat`,`Dog`,`Fish`,`Mouse`,`Rabbit`,`Shrimp`,`Snail`,`Squirrel`,`Turtle`],E5=`ok-user-name-v3`,D5=`ok-user-color-v3`;function O5(e){return e[Math.floor(Math.random()*e.length)]}function Dae(){return`${O5(Tae)} ${O5(Eae)}`}function Oae(){return O5(T5)}function k5(e){try{return localStorage.getItem(e)}catch{return null}}function A5(e,t){try{localStorage.setItem(e,t)}catch{}}function kae(){let e=new URLSearchParams(window.location.search).get(`coeditor`)||`standalone`,t=crypto.randomUUID(),n=k5(E5),r=k5(D5);return n||(n=Dae(),A5(E5,n)),r||(r=Oae(),A5(D5,r)),{name:n,color:r,coeditor:e,tabId:t}}function Aae(e,t){let n=e.trim();if(!n||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),i=r>=0?n.slice(0,r):n,a=r>=0?n.slice(r+1):null,o=(i.split(`?`)[0]??``).trim();if(!o)return null;let s=(o.split(`/`).pop()??``).match(/\.([a-z0-9]+)$/i);if(s){let e=(s[1]??``).toLowerCase();if(e!==`md`&&e!==`mdx`)return null}let c=o.toLowerCase(),l=c.endsWith(`.mdx`)?o.slice(0,-4):c.endsWith(`.md`)?o.slice(0,-3):o,u=l.startsWith(`/`),d=u?l.slice(1):l,f=u?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of d.split(`/`))if(e===`..`){if(f.length===0)return null;f.pop()}else e!==`.`&&e!==``&&f.push(e);return f.length===0?null:{docName:f.join(`/`),anchor:a||null}}function jae(e){throw Error(`Unhandled ClassifiedLinkTarget variant: ${JSON.stringify(e)}`)}var j5=/^[a-zA-Z][a-zA-Z\d+\-.]*:/;function M5(e){let t=(e.split(/[?#]/)[0]??e).match(/\.([a-z0-9]+)$/i);return t?(t[1]??``).toLowerCase():null}function N5(e){return e.split(`/`).filter(Boolean)}function P5(e){let t=e.trim();return j5.test(t)||t.startsWith(`//`)}function Mae(e,t){let n=e.trim();if(!n)return null;if(n.startsWith(`#`)){let e=n.slice(1).trim();return e?{kind:`anchor`,anchor:e}:null}if(P5(n))return{kind:`external`,url:n};let r=Aae(n,t);if(r)return{kind:`doc`,docName:r.docName,anchor:r.anchor};let i=M5(n);return i&&i!==`md`&&i!==`mdx`?{kind:`asset`,url:n,ext:i}:null}function Nae(e,t){let n=e.trim();if(!n)return null;if(P5(n))return{kind:`external`,url:t?`${n}#${t}`:n};let r=M5(n);return r&&r!==`md`&&r!==`mdx`?{kind:`asset`,url:n,ext:r}:{kind:`doc`,docName:n,anchor:t?.trim()||null}}function Pae(e,t){let n=e.trim();if(!n||j5.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),i=((r>=0?n.slice(0,r):n).split(`?`)[0]??``).trim();if(!i)return null;let a=i.startsWith(`/`),o=a?i.slice(1):i,s=a?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of o.split(`/`))if(e===`..`){if(s.length===0)return null;s.pop()}else e!==`.`&&e!==``&&s.push(e);return s.length===0?null:s.join(`/`)}function Fae(e,t,n=null){let r=N5(e);r.pop();let i=N5(t),a=0;for(;a<r.length&&a<i.length&&r[a]===i[a];)a+=1;let o=r.slice(a).map(()=>`..`),s=i.slice(a),c=[...o,...s].join(`/`);return c||=i.at(-1)??t,!c.startsWith(`./`)&&!c.startsWith(`../`)&&(c=`./${c}`),`${c}.md${n?`#${n}`:``}`}function Iae(e){if(!e)return{height:null,viewerFragment:``};let t=e.split(`&`).filter(e=>e.length>0),n=null,r=[];for(let e of t){let t=e.indexOf(`=`);if(t===-1){r.push(e);continue}let i=e.slice(0,t),a=e.slice(t+1);if(i===`height`){let e=Number.parseInt(a,10);!Number.isNaN(e)&&e>0&&(n=e);continue}r.push(e)}return{height:n,viewerFragment:r.join(`&`)}}function Lae(e){return e.replace(/[/\\:*?"<>|\0]/g,`-`).replace(/\s+/g,` `).replace(/-+/g,`-`).trim().replace(/^[-.\s]+|[-.\s]+$/g,``)}var F5=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Rae=`VisuallyHidden`,I5=E.forwardRef((e,t)=>(0,ko.jsx)(m.span,{...e,ref:t,style:{...F5,...e.style}}));I5.displayName=Rae;var zae=I5,L5=[`top`,`right`,`bottom`,`left`],R5=[`start`,`end`],z5=L5.reduce((e,t)=>e.concat(t,t+`-`+R5[0],t+`-`+R5[1]),[]),B5=Math.min,V5=Math.max,H5=Math.round,U5=Math.floor,W5=e=>({x:e,y:e}),Bae={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function G5(e,t,n){return V5(e,B5(t,n))}function K5(e,t){return typeof e==`function`?e(t):e}function q5(e){return e.split(`-`)[0]}function J5(e){return e.split(`-`)[1]}function Y5(e){return e===`x`?`y`:`x`}function X5(e){return e===`y`?`height`:`width`}function Z5(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Q5(e){return Y5(Z5(e))}function $5(e,t,n){n===void 0&&(n=!1);let r=J5(e),i=Q5(e),a=X5(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=r7(o)),[o,r7(o)]}function Vae(e){let t=r7(e);return[e7(e),t,e7(t)]}function e7(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var t7=[`left`,`right`],n7=[`right`,`left`],Hae=[`top`,`bottom`],Uae=[`bottom`,`top`];function Wae(e,t,n){switch(e){case`top`:case`bottom`:return n?t?n7:t7:t?t7:n7;case`left`:case`right`:return t?Hae:Uae;default:return[]}}function Gae(e,t,n,r){let i=J5(e),a=Wae(q5(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(e7)))),a}function r7(e){let t=q5(e);return Bae[t]+e.slice(t.length)}function Kae(e){return{top:0,right:0,bottom:0,left:0,...e}}function i7(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Kae(e)}function a7(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function o7(e,t,n){let{reference:r,floating:i}=e,a=Z5(t),o=Q5(t),s=X5(o),c=q5(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(J5(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function qae(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=K5(t,e),p=i7(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=a7(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=a7(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Jae=50,Yae=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:qae},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=o7(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Jae&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=o7(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Xae=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=K5(e,t)||{};if(l==null)return{};let d=i7(u),f={x:n,y:r},p=Q5(i),m=X5(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=B5(d[_],T),ee=B5(d[v],T),te=E,ne=C-h[m]-ee,re=C/2-h[m]/2+w,ie=G5(te,re,ne),ae=!c.arrow&&J5(i)!=null&&re!==ie&&a.reference[m]/2-(re<te?E:ee)-h[m]/2<0,D=ae?re<te?re-te:re-ne:0;return{[p]:f[p]+D,data:{[p]:ie,centerOffset:re-ie-D,...ae&&{alignmentOffset:D}},reset:ae}}});function Zae(e,t,n){return(e?[...n.filter(t=>J5(t)===e),...n.filter(t=>J5(t)!==e)]:n.filter(e=>q5(e)===e)).filter(n=>e?J5(n)===e||(t?e7(n)!==n:!1):!0)}var Qae=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=z5,autoAlignment:u=!0,...d}=K5(e,t),f=c!==void 0||l===z5?Zae(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=$5(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[q5(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=J5(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,J5(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},$ae=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=K5(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q5(r),_=Z5(o),v=q5(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[r7(o)]:Vae(o)),x=p!==`none`;!d&&x&&b.push(...Gae(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=$5(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Z5(t))||T.every(e=>Z5(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Z5(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function s7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c7(e){return L5.some(t=>e[t]>=0)}var eoe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=K5(e,t);switch(i){case`referenceHidden`:{let e=s7(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c7(e)}}}case`escaped`:{let e=s7(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:c7(e)}}}default:return{}}}}};function l7(e){let t=B5(...e.map(e=>e.left)),n=B5(...e.map(e=>e.top)),r=V5(...e.map(e=>e.right)),i=V5(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function toe(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>a7(l7(e)))}var noe=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=K5(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=toe(u),f=a7(l7(u)),p=i7(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Z5(n)===`y`){let e=d[0],t=d[d.length-1],r=q5(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=q5(n)===`left`,t=V5(...d.map(e=>e.right)),r=B5(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},u7=new Set([`left`,`top`]);async function roe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q5(n),s=J5(n),c=Z5(n)===`y`,l=u7.has(o)?-1:1,u=a&&c?-1:1,d=K5(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ioe=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await roe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},aoe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=K5(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Z5(q5(i)),p=Y5(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=G5(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=G5(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ooe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=K5(e,t),u={x:n,y:r},d=Z5(i),f=Y5(d),p=u[f],m=u[d],h=K5(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=u7.has(q5(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},soe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=K5(e,t),u=await o.detectOverflow(t,l),d=q5(i),f=J5(i),p=Z5(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=B5(h-u[g],v),x=B5(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=V5(u.left,0),t=V5(u.right,0),n=V5(u.top,0),r=V5(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:V5(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:V5(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function d7(){return typeof window<`u`}function f7(e){return h7(e)?(e.nodeName||``).toLowerCase():`#document`}function p7(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function m7(e){return((h7(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function h7(e){return d7()?e instanceof Node||e instanceof p7(e).Node:!1}function g7(e){return d7()?e instanceof Element||e instanceof p7(e).Element:!1}function _7(e){return d7()?e instanceof HTMLElement||e instanceof p7(e).HTMLElement:!1}function v7(e){return!d7()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof p7(e).ShadowRoot}function y7(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=E7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function coe(e){return/^(table|td|th)$/.test(f7(e))}function b7(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var loe=/transform|translate|scale|rotate|perspective|filter/,uoe=/paint|layout|strict|content/,x7=e=>!!e&&e!==`none`,S7;function C7(e){let t=g7(e)?E7(e):e;return x7(t.transform)||x7(t.translate)||x7(t.scale)||x7(t.rotate)||x7(t.perspective)||!w7()&&(x7(t.backdropFilter)||x7(t.filter))||loe.test(t.willChange||``)||uoe.test(t.contain||``)}function doe(e){let t=O7(e);for(;_7(t)&&!T7(t);){if(C7(t))return t;if(b7(t))return null;t=O7(t)}return null}function w7(){return S7??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),S7}function T7(e){return/^(html|body|#document)$/.test(f7(e))}function E7(e){return p7(e).getComputedStyle(e)}function D7(e){return g7(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O7(e){if(f7(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||v7(e)&&e.host||m7(e);return v7(t)?t.host:t}function k7(e){let t=O7(e);return T7(t)?e.ownerDocument?e.ownerDocument.body:e.body:_7(t)&&y7(t)?t:k7(t)}function A7(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=k7(e),i=r===e.ownerDocument?.body,a=p7(r);if(i){let e=j7(a);return t.concat(a,a.visualViewport||[],y7(r)?r:[],e&&n?A7(e):[])}else return t.concat(r,A7(r,[],n))}function j7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M7(e){let t=E7(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=_7(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=H5(n)!==a||H5(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function N7(e){return g7(e)?e:e.contextElement}function P7(e){let t=N7(e);if(!_7(t))return W5(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=M7(t),o=(a?H5(n.width):n.width)/r,s=(a?H5(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var foe=W5(0);function F7(e){let t=p7(e);return!w7()||!t.visualViewport?foe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function poe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==p7(e)?!1:t}function I7(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=N7(e),o=W5(1);t&&(r?g7(r)&&(o=P7(r)):o=P7(e));let s=poe(a,n,r)?F7(a):W5(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=p7(a),t=r&&g7(r)?p7(r):r,n=e,i=j7(n);for(;i&&r&&t!==n;){let e=P7(i),t=i.getBoundingClientRect(),r=E7(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=p7(i),i=j7(n)}}return a7({width:u,height:d,x:c,y:l})}function L7(e,t){let n=D7(e).scrollLeft;return t?t.left+n:I7(m7(e)).left+n}function R7(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-L7(e,n),y:n.top+t.scrollTop}}function moe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=m7(r),s=t?b7(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W5(1),u=W5(0),d=_7(r);if((d||!d&&!a)&&((f7(r)!==`body`||y7(o))&&(c=D7(r)),d)){let e=I7(r);l=P7(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?R7(o,c):W5(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hoe(e){return Array.from(e.getClientRects())}function goe(e){let t=m7(e),n=D7(e),r=e.ownerDocument.body,i=V5(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=V5(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+L7(e),s=-n.scrollTop;return E7(r).direction===`rtl`&&(o+=V5(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var z7=25;function _oe(e,t){let n=p7(e),r=m7(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=w7();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=L7(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=z7&&(a-=o)}else l<=z7&&(a+=l);return{width:a,height:o,x:s,y:c}}function voe(e,t){let n=I7(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=_7(e)?P7(e):W5(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function B7(e,t,n){let r;if(t===`viewport`)r=_oe(e,n);else if(t===`document`)r=goe(m7(e));else if(g7(t))r=voe(t,n);else{let n=F7(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return a7(r)}function V7(e,t){let n=O7(e);return n===t||!g7(n)||T7(n)?!1:E7(n).position===`fixed`||V7(n,t)}function yoe(e,t){let n=t.get(e);if(n)return n;let r=A7(e,[],!1).filter(e=>g7(e)&&f7(e)!==`body`),i=null,a=E7(e).position===`fixed`,o=a?O7(e):e;for(;g7(o)&&!T7(o);){let t=E7(o),n=C7(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||y7(o)&&!n&&V7(e,o))?r=r.filter(e=>e!==o):i=t,o=O7(o)}return t.set(e,r),r}function boe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?b7(t)?[]:yoe(t,this._c):[].concat(n),r],o=B7(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=B7(t,a[e],i);s=V5(n.top,s),c=B5(n.right,c),l=B5(n.bottom,l),u=V5(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function xoe(e){let{width:t,height:n}=M7(e);return{width:t,height:n}}function Soe(e,t,n){let r=_7(t),i=m7(t),a=n===`fixed`,o=I7(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W5(0);function l(){c.x=L7(i)}if(r||!r&&!a)if((f7(t)!==`body`||y7(i))&&(s=D7(t)),r){let e=I7(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?R7(i,s):W5(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function H7(e){return E7(e).position===`static`}function U7(e,t){if(!_7(e)||E7(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return m7(e)===n&&(n=n.ownerDocument.body),n}function W7(e,t){let n=p7(e);if(b7(e))return n;if(!_7(e)){let t=O7(e);for(;t&&!T7(t);){if(g7(t)&&!H7(t))return t;t=O7(t)}return n}let r=U7(e,t);for(;r&&coe(r)&&H7(r);)r=U7(r,t);return r&&T7(r)&&H7(r)&&!C7(r)?n:r||doe(e)||n}var Coe=async function(e){let t=this.getOffsetParent||W7,n=this.getDimensions,r=await n(e.floating);return{reference:Soe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function woe(e){return E7(e).direction===`rtl`}var Toe={convertOffsetParentRelativeRectToViewportRelativeRect:moe,getDocumentElement:m7,getClippingRect:boe,getOffsetParent:W7,getElementRects:Coe,getClientRects:hoe,getDimensions:xoe,getScale:P7,isElement:g7,isRTL:woe};function G7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Eoe(e,t){let n=null,r,i=m7(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=U5(d),h=U5(i.clientWidth-(u+f)),g=U5(i.clientHeight-(d+p)),_=U5(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:V5(0,B5(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!G7(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function K7(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=N7(e),u=i||a?[...l?A7(l):[],...t?A7(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Eoe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?I7(e):null;c&&g();function g(){let t=I7(e);h&&!G7(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var q7=ioe,Doe=Qae,J7=aoe,Y7=$ae,X7=soe,Z7=eoe,Q7=Xae,Ooe=noe,koe=ooe,$7=(e,t,n)=>{let r=new Map,i={platform:Toe,...n},a={...i.platform,_c:r};return Yae(e,t,{...i,platform:a})},e9=typeof document<`u`?E.useLayoutEffect:function(){};function t9(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!t9(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!t9(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function n9(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r9(e,t){let n=n9(e);return Math.round(t*n)/n}function i9(e){let t=E.useRef(e);return e9(()=>{t.current=e}),t}function Aoe(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=E.useState(r);t9(f,r)||p(r);let[m,h]=E.useState(null),[g,_]=E.useState(null),v=E.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=E.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=E.useRef(null),C=E.useRef(null),w=E.useRef(u),T=c!=null,ee=i9(c),te=i9(i),ne=i9(l),re=E.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),$7(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ne.current!==!1};ie.current&&!t9(w.current,t)&&(w.current=t,Ao.flushSync(()=>{d(t)}))})},[f,t,n,te,ne]);e9(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ie=E.useRef(!1);e9(()=>(ie.current=!0,()=>{ie.current=!1}),[]),e9(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,re);re()}},[b,x,re,ee,T]);let ae=E.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=E.useMemo(()=>({reference:b,floating:x}),[b,x]),oe=E.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=r9(D.floating,u.x),r=r9(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...n9(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:re,refs:ae,elements:D,floatingStyles:oe}),[u,re,ae,D,oe])}var joe=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Q7({element:r.current,padding:i}).fn(n):r?Q7({element:r,padding:i}).fn(n):{}}}},Moe=(e,t)=>{let n=q7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Noe=(e,t)=>{let n=J7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Poe=(e,t)=>({fn:koe(e).fn,options:[e,t]}),Foe=(e,t)=>{let n=Y7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ioe=(e,t)=>{let n=X7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Loe=(e,t)=>{let n=Z7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Roe=(e,t)=>{let n=joe(e);return{name:n.name,fn:n.fn,options:[e,t]}},zoe=`Arrow`,a9=E.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,ko.jsx)(m.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,ko.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});a9.displayName=zoe;var Boe=a9,o9=`Popper`,[s9,c9]=g(o9),[Voe,l9]=s9(o9),u9=e=>{let{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return(0,ko.jsx)(Voe,{scope:t,anchor:r,onAnchorChange:i,children:n})};u9.displayName=o9;var d9=`PopperAnchor`,f9=E.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=l9(d9,n),o=E.useRef(null),s=l(t,o),c=E.useRef(null);return E.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,ko.jsx)(m.div,{...i,ref:s})});f9.displayName=d9;var p9=`PopperContent`,[Hoe,Uoe]=s9(p9),m9=E.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:g=`optimized`,onPlaced:v,...b}=e,x=l9(p9,n),[S,C]=E.useState(null),w=l(t,e=>C(e)),[T,ee]=E.useState(null),te=_(T),ne=te?.width??0,re=te?.height??0,ie=r+(a===`center`?``:`-`+a),ae=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],oe=D.length>0,se={padding:ae,boundary:D.filter(Goe),altBoundary:oe},{refs:ce,floatingStyles:le,placement:ue,isPositioned:de,middlewareData:fe}=Aoe({strategy:`fixed`,placement:ie,whileElementsMounted:(...e)=>K7(...e,{animationFrame:g===`always`}),elements:{reference:x.anchor},middleware:[Moe({mainAxis:i+re,alignmentAxis:o}),c&&Noe({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Poe():void 0,...se}),c&&Foe({...se}),Ioe({...se,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),T&&Roe({element:T,padding:s}),Koe({arrowWidth:ne,arrowHeight:re}),p&&Loe({strategy:`referenceHidden`,...se})]}),[pe,me]=_9(ue),he=h(v);y(()=>{de&&he?.()},[de,he]);let ge=fe.arrow?.x,_e=fe.arrow?.y,ve=fe.arrow?.centerOffset!==0,[ye,be]=E.useState();return y(()=>{S&&be(window.getComputedStyle(S).zIndex)},[S]),(0,ko.jsx)(`div`,{ref:ce.setFloating,"data-radix-popper-content-wrapper":``,style:{...le,transform:de?le.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ye,"--radix-popper-transform-origin":[fe.transformOrigin?.x,fe.transformOrigin?.y].join(` `),...fe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,ko.jsx)(Hoe,{scope:n,placedSide:pe,onArrowChange:ee,arrowX:ge,arrowY:_e,shouldHideArrow:ve,children:(0,ko.jsx)(m.div,{"data-side":pe,"data-align":me,...b,ref:w,style:{...b.style,animation:de?void 0:`none`}})})})});m9.displayName=p9;var h9=`PopperArrow`,Woe={top:`bottom`,right:`left`,bottom:`top`,left:`right`},g9=E.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Uoe(h9,n),a=Woe[i.placedSide];return(0,ko.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,ko.jsx)(Boe,{...r,ref:t,style:{...r.style,display:`block`}})})});g9.displayName=h9;function Goe(e){return e!==null}var Koe=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=_9(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function _9(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var v9=u9,y9=f9,b9=m9,x9=g9,[S9,qoe]=g(`Tooltip`,[c9]),C9=c9(),w9=`TooltipProvider`,Joe=700,T9=`tooltip.open`,[Yoe,E9]=S9(w9),D9=e=>{let{__scopeTooltip:t,delayDuration:n=Joe,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=E.useRef(!0),s=E.useRef(!1),c=E.useRef(0);return E.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,ko.jsx)(Yoe,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:E.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};D9.displayName=w9;var O9=`Tooltip`,[Xoe,k9]=S9(O9),A9=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=E9(O9,e.__scopeTooltip),l=C9(t),[u,d]=E.useState(null),f=v(),m=E.useRef(0),h=o??c.disableHoverableContent,g=s??c.delayDuration,_=E.useRef(!1),[y,b]=p({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(T9))):c.onClose(),a?.(e)},caller:O9}),x=E.useMemo(()=>y?_.current?`delayed-open`:`instant-open`:`closed`,[y]),S=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,b(!0)},[b]),C=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),w=E.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,b(!0),m.current=0},g)},[g,b]);return E.useEffect(()=>()=>{m.current&&=(window.clearTimeout(m.current),0)},[]),(0,ko.jsx)(v9,{...l,children:(0,ko.jsx)(Xoe,{scope:t,contentId:f,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:E.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:E.useCallback(()=>{h?C():(window.clearTimeout(m.current),m.current=0)},[C,h]),onOpen:S,onClose:C,disableHoverableContent:h,children:n})})};A9.displayName=O9;var j9=`TooltipTrigger`,M9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=k9(j9,n),a=E9(j9,n),o=C9(n),s=l(t,E.useRef(null),i.onTriggerChange),c=E.useRef(!1),u=E.useRef(!1),f=E.useCallback(()=>c.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,ko.jsx)(y9,{asChild:!0,...o,children:(0,ko.jsx)(m.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:d(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:d(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:d(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:d(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:d(e.onBlur,i.onClose),onClick:d(e.onClick,i.onClose)})})});M9.displayName=j9;var N9=`TooltipPortal`,[Zoe,Qoe]=S9(N9,{forceMount:void 0}),P9=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=k9(N9,t);return(0,ko.jsx)(Zoe,{scope:t,forceMount:n,children:(0,ko.jsx)(u,{present:n||a.open,children:(0,ko.jsx)(f,{asChild:!0,container:i,children:r})})})};P9.displayName=N9;var F9=`TooltipContent`,I9=E.forwardRef((e,t)=>{let n=Qoe(F9,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=k9(F9,e.__scopeTooltip);return(0,ko.jsx)(u,{present:r||o.open,children:o.disableHoverableContent?(0,ko.jsx)(L9,{side:i,...a,ref:t}):(0,ko.jsx)($oe,{side:i,...a,ref:t})})}),$oe=E.forwardRef((e,t)=>{let n=k9(F9,e.__scopeTooltip),r=E9(F9,e.__scopeTooltip),i=E.useRef(null),a=l(t,i),[o,s]=E.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=E.useCallback(()=>{s(null),f(!1)},[f]),m=E.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ise(r,rse(r,n.getBoundingClientRect())),a=ase(t.getBoundingClientRect());s(sse([...i,...a])),f(!0)},[f]);return E.useEffect(()=>()=>p(),[p]),E.useEffect(()=>{if(c&&d){let e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[c,d,m,p]),E.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),i=!ose(n,o);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,d,o,u,p]),(0,ko.jsx)(L9,{...e,ref:a})}),[ese,tse]=S9(O9,{isInside:!1}),nse=b(`TooltipContent`),L9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=k9(F9,n),u=C9(n),{onClose:d}=l;return E.useEffect(()=>(document.addEventListener(T9,d),()=>document.removeEventListener(T9,d)),[d]),E.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,ko.jsx)(c,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,ko.jsxs)(b9,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,ko.jsx)(nse,{children:r}),(0,ko.jsx)(ese,{scope:n,isInside:!0,children:(0,ko.jsx)(zae,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});I9.displayName=F9;var R9=`TooltipArrow`,z9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=C9(n);return tse(R9,n).isInside?null:(0,ko.jsx)(x9,{...i,...r,ref:t})});z9.displayName=R9;function rse(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ise(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ase(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ose(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function sse(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),cse(t)}function cse(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var lse=D9,use=A9,dse=M9,fse=P9,pse=I9,mse=z9;function hse(e){let t=(0,jo.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,ko.jsx)(lse,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function gse(e){let t=(0,jo.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,ko.jsx)(use,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function _se(e){let t=(0,jo.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,ko.jsx)(dse,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function vse(e){let t=(0,jo.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?0:a,c;t[5]===r?c=t[6]:(c=s(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[5]=r,t[6]=c);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,ko.jsx)(mse,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==c?(u=(0,ko.jsx)(fse,{children:(0,ko.jsxs)(pse,{"data-slot":`tooltip-content`,sideOffset:o,className:c,...i,children:[n,l]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=c,t[12]=u):u=t[12],u}function B9(e){if(typeof e!=`object`||!e)return;let t=e;if(typeof t.title==`string`&&t.title.length>0)return t.title}function yse(e){return e.kind===`asset`}function bse(e){return e.kind===`document`}function xse(e){return e.kind===`folder`}function Sse(e){if(!e)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=1;e<t.length;e++)n.push(t.slice(0,e).join(`/`));return n}function Cse(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):``}function wse(e,t=!1){return e.filter(e=>{let n=e.docName??e.path??``;return n===``?!1:t?!0:!n.split(`/`).some(e=>e.startsWith(`.`))})}var V9=null,H9=new Set;function U9(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Tse(e,t){return e===null?!1:e===t?!0:U9(e.pages,t.pages)&&U9(e.folderPaths,t.folderPaths)&&U9(e.assetPaths??new Set,t.assetPaths??new Set)&&Ese(e.pageIcons,t.pageIcons)}function Ese(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function Dse(e,t){let n=new Map;for(let r of e){let e=t(r);e&&!n.has(e)&&n.set(e,r)}return n}function Ose(e,t){let n=new Map,r=[...e].sort((e,t)=>e.localeCompare(t));for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function kse(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function Ase(){return V9}function jse(e){if(!Tse(V9,e)){V9=e;for(let t of Array.from(H9))try{t(e)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function Mse(e){if(H9.add(e),V9!==null)try{e(V9)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{H9.delete(e)}}var W9=`open-knowledge:documents-changed`,Nse=new Set(p5.options);function G9(e){return e===void 0||!Array.isArray(e)?[`files`]:[...new Set(e.filter(e=>Nse.has(e)))]}function Pse(e=[`files`]){window.dispatchEvent(new CustomEvent(W9,{detail:{channels:G9(e)}}))}function K9(e){let t=t=>{e(G9(t instanceof CustomEvent?t.detail?.channels:void 0))};return window.addEventListener(W9,t),()=>window.removeEventListener(W9,t)}var q9=`open-knowledge:templates-changed`;function J9(){window.dispatchEvent(new CustomEvent(q9))}function Fse(e){let t=()=>e();return window.addEventListener(q9,t),()=>window.removeEventListener(q9,t)}function Y9(e){return e.trim().replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\.mdx?$/i,``)}function Ise(e){let t=Y9(e);return t?`${t}.md`:`untitled.md`}function Lse(e){let t=Y9(e),n=t.lastIndexOf(`/`);return{initialDir:n>0?t.slice(0,n):``,suggestedName:`${n>=0?t.slice(n+1):t||`untitled`}.md`}}function Rse(e){let t=e.trim();return{normalizedTarget:Y9(t).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function X9(e){let t=new Set;for(let n of e)for(let e of Sse(n))t.add(e);return t}function zse(e,t){if(!t)return;let n=t5(e);if(n)return t.get(n)}function Bse(e,t){if(!t||e.includes(`/`))return;let n=t5(e);if(n)return t.get(n)}function Vse(e,t){let{normalizedTarget:n,expectsFolder:r}=Rse(e);if(!n)return{kind:`missing`,target:n};if(!r&&t.pages.has(n))return{kind:`doc`,target:n,docName:n};if(!r){let e=zse(n,t.pagesBySlug);if(e)return{kind:`doc`,target:e,docName:e}}let i=`${n}/index`;if(t.pages.has(i))return{kind:`folder-index`,target:n,folderPath:n,docName:i,noteKind:`canonical-index`};let a=n.split(`/`).pop(),o=a?`${n}/${a}`:null;if(o&&t.pages.has(o))return{kind:`folder-index`,target:n,folderPath:n,docName:o,noteKind:`legacy-folder-note`};if(!r){let e=Bse(n,t.pagesByBasename);if(e)return{kind:`doc`,target:e,docName:e}}return(t.folderPaths??X9(t.pages)).has(n)?{kind:`folder`,target:n,folderPath:n}:{kind:`missing`,target:n}}function Hse(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function Z9(e,t,n=l$){return typeof t!=`number`||!u$(t,n)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:n}}function Use(e,t,n=l$){return e.kind!==`doc`&&e.kind!==`folder-index`?e:Z9(e.docName,t.get(e.docName)?.size,n)??e}function Wse(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`folder`:return null}}var Q9=(0,E.createContext)(null);function Gse(e,t){if(t.size===0)return new Set(e);let n=new Set(e);for(let e of t)n.add(e);return n}function Kse(e,t){if(e.size===0)return new Set;let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}function qse(e,t){let n=new Map(e);for(let e of t)n.has(e)||n.set(e,e);return n}async function Jse(){let e=await fetch(`/api/pages`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(B9(t)??`/api/pages responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.pages)?t.pages:[]}async function Yse(){let e=await fetch(`/api/documents`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(B9(t)??`/api/documents responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.documents)?{assetPaths:t.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),folderPaths:t.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path)}:{assetPaths:[],folderPaths:[]}}function Xse(e){console.error(`[PageListContext] Failed to load pages:`,e)}function Zse(e){console.warn(`[PageListContext] Failed to load referenced assets:`,e)}function Qse(e){let t=(0,jo.c)(49),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,E.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,t[1]=o):o=t[1];let[s,c]=(0,E.useState)(o),l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=new Map,t[2]=l):l=t[2];let[u,d]=(0,E.useState)(l),f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Set,t[3]=f):f=t[3];let[p,m]=(0,E.useState)(f),h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=new Set,t[4]=h):h=t[4];let[g,_]=(0,E.useState)(h),v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=new Set,t[5]=v):v=t[5];let[y,b]=(0,E.useState)(v),[x,S]=(0,E.useState)(!0),[C,w]=(0,E.useState)(null),T=(0,E.useRef)(0),ee;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ee=function(){let e=T.current+=1;Promise.all([Jse(),Yse().catch(nce)]).then(t=>{let[n,r]=t;if(e!==T.current)return;let i=new Set(n.map(tce));a(i),c(new Map(n.map(ece))),d(new Map(n.map($se))),m(new Set(r.assetPaths)),_(new Set(r.folderPaths)),b(e=>Kse(e,i)),w(null)}).catch(t=>{e===T.current&&(Xse(t),w(t instanceof Error?t.message:`Failed to load pages`))}).finally(()=>{e===T.current&&S(!1)})},t[6]=ee):ee=t[6];let te=ee,ne;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(ne=function(e){b(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n}),w(null)},t[7]=ne):ne=t[7];let re=ne,ie,ae;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>{te();let e=()=>{document.visibilityState===`visible`&&te()};window.addEventListener(`focus`,e),window.addEventListener(`visibilitychange`,e);let t=K9(e=>{e.includes(`files`)&&te()});return()=>{window.removeEventListener(`focus`,e),window.removeEventListener(`visibilitychange`,e),t()}},ie=[],t[8]=ie,t[9]=ae):(ie=t[8],ae=t[9]),(0,E.useEffect)(ae,ie);let D,oe,se,ce,le,ue,de;if(t[10]!==y||t[11]!==p||t[12]!==g||t[13]!==u||t[14]!==s||t[15]!==i){le=Gse(i,y);let e;t[23]!==y||t[24]!==s?(e=qse(s,y),t[23]=y,t[24]=s,t[25]=e):e=t[25],ce=e,se=u,D=p,oe=new Set([...X9(le),...g]),ue=Dse(le,t5),de=Ose(le,t5),t[10]=y,t[11]=p,t[12]=g,t[13]=u,t[14]=s,t[15]=i,t[16]=D,t[17]=oe,t[18]=se,t[19]=ce,t[20]=le,t[21]=ue,t[22]=de}else D=t[16],oe=t[17],se=t[18],ce=t[19],le=t[20],ue=t[21],de=t[22];let fe=de,pe;t[26]===u?pe=t[27]:(pe=kse(u),t[26]=u,t[27]=pe);let me=pe,he,ge;t[28]!==D||t[29]!==oe||t[30]!==me||t[31]!==le||t[32]!==fe||t[33]!==ue?(he=()=>{jse({pages:le,folderPaths:oe,pagesBySlug:ue,pagesByBasename:fe,assetPaths:D,pageIcons:me})},ge=[le,oe,ue,fe,D,me],t[28]=D,t[29]=oe,t[30]=me,t[31]=le,t[32]=fe,t[33]=ue,t[34]=he,t[35]=ge):(he=t[34],ge=t[35]),(0,E.useEffect)(he,ge);let _e;t[36]!==D||t[37]!==C||t[38]!==oe||t[39]!==x||t[40]!==se||t[41]!==ce||t[42]!==le||t[43]!==fe||t[44]!==ue?(_e={pages:le,pagesBySlug:ue,pagesByBasename:fe,pageTitles:ce,pageMeta:se,folderPaths:oe,assetPaths:D,loading:x,error:C,refetch:te,addPage:re},t[36]=D,t[37]=C,t[38]=oe,t[39]=x,t[40]=se,t[41]=ce,t[42]=le,t[43]=fe,t[44]=ue,t[45]=_e):_e=t[45];let ve;return t[46]!==n||t[47]!==_e?(ve=(0,ko.jsx)(Q9,{value:_e,children:n}),t[46]=n,t[47]=_e,t[48]=ve):ve=t[48],ve}function $se(e){return[e.docName,{size:e.size,modified:e.modified,docExt:e.docExt,icon:e.icon}]}function ece(e){return[e.docName,e.title]}function tce(e){return e.docName}function nce(e){return Zse(e),{assetPaths:[],folderPaths:[]}}function rce(){let e=(0,E.use)(Q9);if(!e)throw Error(`usePageList must be used within <PageListProvider />`);return e}function ice(e){if(e.startsWith($9)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=lce(t),r=n>=0?t.slice(0,n):t;if(!r)return null;try{return r.split(`/`).map(decodeURIComponent).join(`/`)}catch{return r}}function ace(e){if(e.startsWith($9)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=t.indexOf(`?`),r=t.indexOf(`#`);if(n>=0&&(r<0||n<r)){let e=r>=0?r:t.length,i=new URLSearchParams(t.slice(n+1,e)).get(`anchor`);if(i)return i}if(r<0)return null;let i=t.slice(r+1);if(!i)return null;try{return decodeURIComponent(i)}catch{return i}}function oce(e,t){let n=`#/${e}`;return t?`${n}?anchor=${encodeURIComponent(t)}`:n}function sce(e){return e.endsWith(`.mdx`)?e.slice(0,-4):e.endsWith(`.md`)?e.slice(0,-3):e}function cce(e,t){let n=e.replace(/^\/+|\/+$/g,``),r=n?`#/${n}/`:`#/`;return t?`${r}?anchor=${encodeURIComponent(t)}`:r}var $9=`#/__asset__/`;function lce(e){let t=e.indexOf(`?`),n=e.indexOf(`#`);return t<0?n:n<0?t:Math.min(t,n)}function uce(e){if(!e.startsWith($9))return null;let t=e.slice(12);if(!t)return null;try{return t.split(`/`).map(decodeURIComponent).join(`/`)}catch{return t}}function dce(e){return`${$9}${e.split(`/`).map(encodeURIComponent).join(`/`)}`}var fce=n(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),pce=n(((e,t)=>{var n=fce();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),mce=n(((e,t)=>{t.exports=pce()()}));export{y$ as $,q2 as $n,VT as $r,b1 as $t,B9 as A,Qd as Ai,OQ as An,R1 as Ar,q1 as At,Q7 as B,Ie as Bi,tae as Bn,W1 as Br,lie as Bt,Ase as C,B as Ci,Y1 as Cn,a4 as Cr,Aie as Ct,yse as D,bp as Di,Mae as Dn,U$ as Dr,f$ as Dt,wse as E,R as Ei,uae as En,J2 as Er,Tie as Et,y9 as F,pu as Fi,v0 as Fn,XZ as Fr,pie as Ft,Z7 as G,D as Gi,M5 as Gn,n5 as Gr,_$ as Gt,K7 as H,me as Hi,m$ as Hn,Z$ as Hr,y1 as Ht,x9 as I,wu as Ii,vae as In,YZ as Ir,C$ as It,J7 as J,yae as Jn,Sne as Jr,Eie as Jt,Ooe as K,kZ as Kn,g5 as Kr,v$ as Kt,b9 as L,F as Li,fae as Ln,Pae as Lr,Q$ as Lt,vse as M,sd as Mi,i0 as Mn,Iae as Mr,oie as Mt,hse as N,L as Ni,n0 as Nn,Y0 as Nr,T5 as Nt,bse as O,z as Oi,Nae as On,XQ as Or,D$ as Ot,_se as P,yu as Pi,r0 as Pn,u4 as Pr,W2 as Pt,gae as Q,n$ as Qn,XT as Qr,K0 as Qt,v9 as R,N as Ri,z4 as Rn,Lae as Rr,$$ as Rt,Fse as S,Tp as Si,J1 as Sn,K1 as Sr,k$ as St,Cse as T,Hp as Ti,Fae as Tn,Qre as Tr,nie as Tt,$7 as U,pe as Ui,t$ as Un,t5 as Ur,h$ as Ut,Doe as V,he as Vi,wae as Vn,VZ as Vr,Ore as Vt,Y7 as W,oe as Wi,V1 as Wn,X0 as Wr,fie as Wt,F5 as X,kae as Xn,fT as Xr,U0 as Xt,X7 as Y,Bre as Yn,jT as Yr,H0 as Yt,hae as Z,z1 as Zn,WT as Zr,q0 as Zt,Ise as _,hS as _i,jae as _n,JQ as _r,w5 as _t,sce as a,rS as ai,O0 as an,G4 as ar,qie as at,J9 as b,I_ as bi,BQ as bn,a1 as br,Cie as bt,cce as c,yb as ci,I0 as cn,X4 as cr,Jie as ct,Wse as d,Hb as di,W0 as dn,J4 as dr,TQ as dt,Yx as ei,kie as en,YQ as er,d$ as et,Hse as f,iS as fi,w$ as fn,Y4 as fr,s$ as ft,Lse as g,Wb as gi,die as gn,RZ as gr,c$ as gt,Use as h,lb as hi,U1 as hn,P5 as hr,a$ as ht,ice as i,gS as ii,V0 as in,W4 as ir,iie as it,gse as j,I as ji,_ae as jn,n4 as jr,G1 as jt,xse as k,_f as ki,DQ as kn,G8 as kr,e$ as kt,Qse as l,xb as li,P1 as ln,K4 as lr,Yie as lt,Vse as m,iy as mi,B1 as mn,u$ as mr,o$ as mt,ace as n,Vb as ni,r1 as nn,Q4 as nr,yie as nt,dce as o,Xy as oi,N0 as on,Z4 as or,Zie as ot,Z9 as p,Dy as pi,j$ as pn,FZ as pr,i$ as pt,q7 as q,X8 as qn,Ene as qr,Oie as qt,uce as r,yS as ri,r$ as rn,$4 as rr,bie as rt,oce as s,ub as si,M0 as sn,q4 as sr,Xie as st,mce as t,Px as ti,t1 as tn,xae as tr,E$ as tt,rce as u,Sb as ui,jie as un,U4 as ur,Kie as ut,Y9 as v,Qx as vi,PQ as vn,r4 as vr,W$ as vt,Mse as w,zp as wi,Z1 as wn,$re as wr,l5 as wt,K9 as x,gv as xi,G0 as xn,i1 as xr,A$ as xt,Pse as y,N_ as yi,SQ as yn,g$ as yr,wie as yt,c9 as z,A as zi,nae as zn,lae as zr,l1 as zt};
500
+ `)},mdxJsxFlowElement(e,t,n,r){let i=e,a=i.data?.sourceRaw;if(typeof a==`string`)return a;let o=i.data?.htmlBoundary;if(o&&typeof o.opener==`string`&&typeof o.closer==`string`){let e=n.containerFlow({type:`root`,children:i.children??[]},r);return`${o.opener}\n\n${e}\n\n${o.closer}`}let s=i.name??``,c=K8(i.attributes??[]);if(!i.children||i.children.length===0)return s?c?`<${s} ${c} />`:`<${s} />`:``;let l=c?`<${s} ${c}>`:`<${s}>`,u=`</${s}>`;return`${l}\n\n${n.containerFlow({type:`root`,children:i.children},r)}\n\n${u}`},mark(e,t,n,r){let i=n.createTracker(r),a=n.enter(`mark`),o=i.move(`==`);return o+=n.containerPhrasing(e,{before:o,after:`==`,...i.current()}),o+=i.move(`==`),a(),o},comment(e,t,n,r){let i=e.data?.sourceForm,a=i===`html`?`<!-- `:`%%`,o=i===`html`?` -->`:`%%`,s=n.createTracker(r),c=n.enter(`comment`),l=s.move(a);return l+=n.containerPhrasing(e,{before:l,after:o,...s.current()}),l+=s.move(o),c(),l},commentBlock(e,t,n,r){let i=n.createTracker(r),a=n.enter(`commentBlock`),o=e.children??[],s=e.data?.sourceForm,c=e.data?.sourceLayout,l=o.length===1&&o[0]?.type===`paragraph`;if(s===`html`&&l){let e=o[0],t=n.containerPhrasing(e,{before:`<!-- `,after:` -->`,...i.current()});return a(),`<!-- ${t} -->`}if(c===`inline`&&l){let e=o[0],t=n.containerPhrasing(e,{before:`%% `,after:` %%`,...i.current()});return a(),`%% ${t} %%`}let u=n.containerFlow(e,i.current());return a(),`%%\n\n${u}\n\n%%`},mdxJsxTextElement(e){let t=e.data?.sourceRaw;if(typeof t==`string`)return t;let n=e.name??``,r=K8(e.attributes??[]);return r?`<${n} ${r} />`:`<${n}/>`},rawMdxFallback(e){return e.value??``},blockquote(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.containerFlow(e,a.current());i();let s=e.data?.sourceMarkerSpacings,c=0;return n.indentLines(o,(e,t,n)=>n?`>`:s?.[c++]===`none`?`>${e}`:`> ${e}`)}};function K8(e){let t=[];for(let n of e){if(n.type===`mdxJsxExpressionAttribute`){t.push(`{${n.value}}`);continue}let e=n.name;if(n.value===null||n.value===void 0){t.push(e);continue}if(typeof n.value==`string`){if(n.value.includes(`"`)){let r=n.value.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`);t.push(`${e}={"${r}"}`)}else t.push(`${e}="${n.value}"`);continue}t.push(`${e}={${n.value.value}}`)}return t.join(` `)}function q8(e,t,n=` `){return t===`single`?`${n}'${e.replace(/'/g,`\\'`)}'`:t===`paren`?`${n}(${e.replace(/[()]/g,`\\$&`)})`:`${n}"${e.replace(/"/g,`\\"`)}"`}function J8(e){if(!e)return``;let t=0,n=!0;for(let r of e)r===`(`?t++:r===`)`&&(t--,t<0&&(n=!1));return t!==0&&(n=!1),n?e:e.replace(/[\\()]/g,`\\$&`)}function Dre(e){return e.replace(/(?<!\\)&(?=[A-Za-z][A-Za-z0-9]*;|#[0-9]+;|#[xX][0-9A-Fa-f]+;)/g,`\\&`)}function Y8(e,t,n){let r=e.unsafe;e.unsafe=r.filter(e=>!(e.character===`&`&&e.after===`[#A-Za-z]`||e.character===`<`||e.character===`[`||e.character===`(`||e.character==="`"));let i;try{i=e.safe(t,n)}finally{e.unsafe=r}return Dre(i)}function X8(e){if(!Number.isFinite(e)||e<0)return``;if(e<1024)return`${e} B`;let t=[`KiB`,`MiB`,`GiB`,`TiB`],n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${n.toFixed(1).replace(/\.0$/,``)} ${t[r]}`}var Ore=class{schema;handlers;pmNodeHandlers;pmMarkHandlers;parseProcessor;serializeProcessor;parseCtx={current:{}};constructor(e){this.schema=yb(e.extensions),this.handlers=Pre(this.schema,this.parseCtx);let{nodeHandlers:t,markHandlers:n}=Fre(this.schema);this.pmNodeHandlers=t,this.pmMarkHandlers=n,this.parseProcessor=vre({schema:this.schema,handlers:this.handlers,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers}),this.serializeProcessor=yre({schema:this.schema,handlers:this.handlers,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers,toMarkdownHandlers:Ere})}parse(e,t){if(!e.trim())return{type:`doc`,content:[{type:`paragraph`,content:[]}]};this.parseCtx.current=t??{};try{return bre(e,this.parseProcessor).toJSON()}finally{this.parseCtx.current={}}}parseToMdast(e){return e.trim()?xre(e,this.parseProcessor):{type:`root`,children:[]}}parseWithFallback(e,t){return e.trim()?s3(e,{parse:e=>this.parse(e,t)}):{type:`doc`,content:[{type:`paragraph`,content:[]}]}}serialize(e){let t;try{t=this.schema.nodeFromJSON(e)}catch(t){let n=`MarkdownManager.serialize() failed: schema rejected JSONContent (type=${e.type}, childCount=${e.content?.length??0})`;throw Error(n,{cause:t})}return Sre(t,this.serializeProcessor,{schema:this.schema,pmNodeHandlers:this.pmNodeHandlers,pmMarkHandlers:this.pmMarkHandlers})}},Z8=z4();function kre(e,t){let n=new Map;for(let e of t)n.set(e.name,e);let r={};for(let t of e){if(t.type===`mdxJsxExpressionAttribute`)continue;let e=t.name,i=n.get(e);if(t.value===null||t.value===void 0){r[e]=!0;continue}if(typeof t.value==`string`){if(i?.type===`number`){let n=Number(t.value);r[e]=Number.isNaN(n)?t.value:n}else i?.type===`boolean`?r[e]=t.value===`true`:r[e]=t.value;continue}let a=t.value.value;try{r[e]=JSON.parse(a)}catch{r[e]=a}}return r}function Are(e){let t=!1;return e.descendants(e=>t||e.type.name===`jsxInline`?!1:e.type.name===`jsxComponent`&&e.attrs.sourceDirty?(t=!0,!1):!0),t}function jre(e){return e.attrs.sourceDirty||Are(e)}function Mre(e){if(e.type!==`paragraph`)return!1;let t=e.children??[];return t.length===0?!0:t.every(e=>e.type===`text`&&e.value===``)}function Q8(e,t){if(!t)return e;let n={};return t.sourceFenceChar&&(n.sourceFenceChar=t.sourceFenceChar),typeof t.sourceFenceLength==`number`&&(n.sourceFenceLength=t.sourceFenceLength),Object.keys(n).length===0?e:{...e,data:n}}function $8(e,t){if(e.length===0)return Q8({type:`inlineCode`,value:``},t);if(e.every(e=>e.type===`text`))return Q8({type:`inlineCode`,value:e.map(e=>e.value).join(``)},t);if(e.length===1&&`children`in e[0]){let n=e[0];return{...n,children:[$8(n.children,t)]}}return Q8({type:`inlineCode`,value:e5(e)},t)}function e5(e){let t=``;for(let n of e)n.type===`text`?t+=n.value:`children`in n&&Array.isArray(n.children)?t+=e5(n.children):`value`in n&&typeof n.value==`string`&&(t+=n.value);return t}var Nre=C$;function Pre(e,t){let n=e.nodes,r=e.marks,i={};n.paragraph&&(i.paragraph=(e,t,r)=>{let i=r.all(e).flat(),a=i.some(e=>e?.isBlock&&!e?.isInline),o=i.some(e=>e?.isInline||e?.isText||e?.isTextblock);if(a&&!o)return i.length===1?i[0]:i;if(a&&o){let e=i.filter(e=>!e?.isBlock||e?.isInline),t=i.filter(e=>e?.isBlock&&!e?.isInline),r=[],a=n.paragraph.createAndFill(null,e.length>0?e:null);return a&&r.push(a),r.push(...t),r.length===1?r[0]:r}return n.paragraph.createAndFill(null,i.length>0?i:null)}),n.blockquote&&(i.blockquote=zH(n.blockquote,e=>({sourceMarkerSpacings:e.data?.sourceMarkerSpacings??null}))),n.tableCell&&(i.tableCell=(e=>(t,r,i)=>{let a=i.all(t).flat();if(a.length>0&&n.paragraph){let t=n.paragraph.create(null,a);return e.createAndFill(null,[t])}return e.createAndFill(null,null)})(n.tableCell)),n.tableRow&&(i.tableRow=zH(n.tableRow)),n.table&&n.tableRow&&n.tableCell&&(i.table=(e,t,r)=>{let i=e.align??[],a=e.children??[],o=[];for(let e=0;e<a.length;e++){let t=a[e];if(t.type!==`tableRow`)continue;let s=t.children??[],c=[];for(let t=0;t<s.length;t++){let a=s[t];if(a.type!==`tableCell`)continue;let o=r.all(a).flat(),l=o.length>0&&n.paragraph?[n.paragraph.create(null,o)]:null,u=i[t]??null,d=e===0&&n.tableHeader?n.tableHeader:n.tableCell,f=a.data?.sourcePadding??null,p=d.createAndFill({align:u,sourcePadding:f},l);p&&c.push(p)}let l=n.tableRow.createAndFill(null,c.length>0?c:null);l&&o.push(l)}let s=e.data?.sourceDashCounts??null;return n.table.createAndFill({sourceDashCounts:s},o.length>0?o:null)}),n.image&&(i.image=e=>{let r=e.url??``,i=G8(r,t.current.sourcePath);return n.image.createAndFill({src:i,alt:e.alt??null,title:e.title??null,sourceUrl:i===r?null:r})},n.imageReference?i.imageReference=e=>n.imageReference.createAndFill({alt:e.alt??``,label:e.label??e.identifier??``,identifier:e.identifier??``,referenceType:e.referenceType??`shortcut`}):i.imageReference=e=>n.image.createAndFill({src:``,alt:e.alt??null,title:null})),r.escapeMark&&(i.text=t=>{let n=t.value??``,i=typeof t.data?.sourceRaw==`string`?t.data.sourceRaw:null;if(!n&&!i)return null;if(i){let t=n.replaceAll(`\xA0`,` `);return r.sourceLiteral?e.text(t,[r.sourceLiteral.create({sourceRaw:i})]):e.text(t)}let a=t.data?.escapedChars,o=t.data?.entityRefSpans;if(!a?.length&&!o?.length)return e.text(n.replaceAll(`\xA0`,` `));let s=[...(a??[]).map(e=>({kind:`escape`,offset:e.offset,length:1})),...(o??[]).map(e=>({kind:`entity`,offset:e.offset,length:e.length,raw:e.raw}))];s.sort((e,t)=>e.offset-t.offset);let c=[],l=0;for(let t of s){if(t.offset>l){let r=n.slice(l,t.offset).replaceAll(`\xA0`,` `);r&&c.push(e.text(r))}if(t.offset<n.length){let i=n.slice(t.offset,t.offset+t.length).replaceAll(`\xA0`,` `);i&&(t.kind===`escape`?c.push(e.text(i,[r.escapeMark.create()])):r.sourceLiteral?c.push(e.text(i,[r.sourceLiteral.create({sourceRaw:t.raw})])):c.push(e.text(i))),l=t.offset+t.length}}if(l<n.length){let t=n.slice(l).replaceAll(`\xA0`,` `);t&&c.push(e.text(t))}return c.length===1?c[0]:c}),r.code&&(i.inlineCode=t=>e.text(t.value,[r.code.create({sourceFenceChar:t.data?.sourceFenceChar??"`",sourceFenceLength:typeof t.data?.sourceFenceLength==`number`?t.data.sourceFenceLength:1})]));let a=r.strike??r.delete;if(a&&(i.delete=BH(a)),r.highlight&&(i.mark=BH(r.highlight)),r.comment&&(i.comment=BH(r.comment,e=>({sourceForm:e.data?.sourceForm??`percent`}))),n.commentBlock&&(i.commentBlock=zH(n.commentBlock,e=>({sourceForm:e.data?.sourceForm??`percent`,sourceLayout:e.data?.sourceLayout??`block`}))),r.emphasis&&(i.emphasis=BH(r.emphasis,e=>({sourceDelimiter:e.data?.sourceDelimiter??`*`}))),r.strong&&(i.strong=BH(r.strong,e=>({sourceDelimiter:e.data?.sourceDelimiter??`**`}))),n.heading&&(i.heading=zH(n.heading,e=>({level:e.depth,headingStyle:e.data?.sourceStyle??`atx`,sourceTrailingHashes:e.data?.sourceTrailingHashes??null,sourceUnderlineLength:e.data?.sourceUnderlineLength??null,sourceContiguousNext:e.data?.sourceContiguousNext??!1}))),n.codeBlock&&(i.code=t=>{let r=t.value?[e.text(t.value)]:[];return n.codeBlock.createAndFill({language:t.lang??null,meta:t.meta??null,fenceDelimiter:t.data?.sourceFenceChar??"`",fenceLength:t.data?.sourceFenceLength??3,sourceStyle:t.data?.sourceStyle??`fenced`},r)}),n.thematicBreak&&(i.thematicBreak=e=>n.thematicBreak.createAndFill({sourceRaw:e.data?.sourceRaw??`---`})),n.hardBreak&&(i.break=e=>n.hardBreak.createAndFill({hardBreakStyle:e.data?.sourceStyle??`spaces`})),n.list&&(i.list=zH(n.list,e=>({ordered:!!e.ordered,start:e.start??1,spread:!!e.spread,bulletMarker:e.data?.bulletMarker??null,listMarkerDelimiter:e.data?.listMarkerDelimiter??null}))),n.listItem&&(i.listItem=zH(n.listItem,e=>({checked:e.checked??null,spread:!!e.spread}))),r.link){let t=r.sourceLiteral;i.link=(n,i,a)=>{if((n.children??[]).length===0){let r=typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:`[](${n.url??``})`;return r?t?e.text(r,[t.create({sourceRaw:r})]):e.text(r):null}let o=a.all(n).flat(),s=r.link.create({href:n.url??``,title:n.title??null,linkStyle:n.data?.sourceStyle??`inline`,refLabel:null,sourceUrlForm:n.data?.sourceUrlForm??null,sourceTitleMarker:n.data?.sourceTitleMarker??null});return o.map(e=>e.mark(s.addToSet(e.marks)))},i.linkReference=(n,i,a)=>{if((n.children??[]).length===0){let r=typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:`[${n.label??``}][${n.identifier??``}]`;return r?t?e.text(r,[t.create({sourceRaw:r})]):e.text(r):null}let o=a.all(n).flat(),s=r.link.create({href:``,title:null,linkStyle:n.referenceType??`shortcut`,refLabel:n.label??n.identifier??null});return o.map(e=>e.mark(s.addToSet(e.marks)))}}n.htmlBlock&&(i.html=e=>n.htmlBlock.createAndFill({content:e.value??``}));let o=n.linkDefinition??n.linkRefDef;if(o){let e=!!o.spec.attrs?.url,t=!!o.spec.attrs?.href,n=!!o.spec.attrs?.identifier,r=!!o.spec.attrs?.sourceLayout,a=!!o.spec.attrs?.sourceTitleMarker;i.definition=i=>{let s={title:i.title??null};return n&&(s.identifier=i.identifier??``),s.label=i.label??i.identifier??``,e?s.url=i.url??``:t&&(s.href=i.url??``),r&&(s.sourceLayout=i.data?.sourceLayout??null),a&&(s.sourceTitleMarker=i.data?.sourceTitleMarker??null),o.createAndFill(s)}}if(n.jsxComponent){let r=e=>{if(e&&typeof e==`object`&&`sourceRaw`in e){let t=e.sourceRaw;if(typeof t==`string`)return t}};i.mdxJsxFlowElement=(e,i,a)=>{let o=e.name??``,s=Z8.getOrWildcard(o),c=kre(e.attributes,s.props);if(o===`CommonMarkImage`&&typeof c.src==`string`){let e=c.src,n=G8(e,t.current.sourcePath);n!==e&&(c.src=n,c.sourceUrl=e)}let l=a.all(e).flat();return n.jsxComponent.createAndFill({componentName:o,kind:`element`,attributes:e.attributes,sourceRaw:r(e.data)??``,sourceDirty:!1,props:c},l.length?l:void 0)};let a=(e,t)=>{let n=e.attributes?.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);return n&&typeof n.value==`string`?n.value:null};i.mdxJsxTextElement=t=>{if(t.name===`InlineMath`&&n.mathInline){let e=a(t,`formula`)??``,r=a(t,`id`);return n.mathInline.create({formula:e,id:r??null})}if(t.name===`Tag`&&n.tag){let e=a(t,`value`)??``;return n.tag.create({value:e})}if(n.jsxInline){let i=r(t.data)??``;return n.jsxInline.createAndFill({},i?[e.text(i)]:null)}return n.jsxComponent.createAndFill({sourceRaw:r(t.data)??``})},i.mdxFlowExpression=e=>{let t=r(e.data)??`{${e.value??``}}`;return n.jsxComponent.createAndFill({kind:`expression`,sourceRaw:t,sourceDirty:!1})},i.mdxTextExpression=t=>{let n=r(t.data)??`{${t.value??``}}`;return e.text(n)}}return n.wikiLink&&(i.wikiLink=e=>n.wikiLink.createAndFill({target:e.data?.target??``,alias:e.data?.alias??null,anchor:e.data?.anchor??null})),n.tag&&(i.tag=e=>n.tag.createAndFill({value:e.value})),n.wikiLinkEmbed&&(i.wikiLinkEmbed=(i,a)=>{let o=i.data?.target??``,s=i.data?.alias??null,c=i.data?.anchor??null,l=V1(o),{resolveEmbed:u,sourcePath:d}=t.current,f=u&&d?u(o,d)??null:null,p=f?`/${f}`:o,m=a?.type===`paragraph`&&Array.isArray(a.children)&&a.children.length===1;if(m&&Nre.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedImage`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedImage`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,alt:s??o,target:o,anchor:c,alias:s}});if(m&&w$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedVideo`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedVideo`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,title:s??o,target:o,anchor:c,alias:s}});if(m&&E$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedAudio`))return n.jsxComponent.createAndFill({componentName:`WikiEmbedAudio`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,title:s??o,target:o,anchor:c,alias:s}});if(m&&D$.has(l)&&n.jsxComponent&&Z8.has(`WikiEmbedFile`)){let{resolveSize:e}=t.current,r=e&&d?e(o,d)??null:null,i=r===null?null:X8(r);return n.jsxComponent.createAndFill({componentName:`WikiEmbedFile`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!1,props:{src:p,target:o,anchor:c,alias:s,size:i}})}let h=s||(c?`${o}#${c}`:o);if(j$.has(l)&&r.link){let t=r.link.create({href:p,title:null,linkStyle:`inline`,refLabel:null,sourceForm:`wikiembed`,target:o,anchor:c,alias:s});return e.text(h,[t])}if(r.link){let t=r.link.create({href:o,title:null,linkStyle:`inline`,refLabel:null});return e.text(h,[t])}throw Error("[wikiLinkEmbed handler] schema lacks `link` mark — cannot dispatch without violating the STOP rule against emitting PM wikiLinkEmbed server-side")}),n.mathInline&&(i.inlineMath=e=>n.mathInline.create({formula:e.value??``})),i.math||=t=>{let r=t.value==null?`«unknown:${t.type}»`:t.value;return n.rawMdxFallback?(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.type,reason:`Unhandled block mdast: ${t.type}`})),n.rawMdxFallback.createAndFill({reason:`Unhandled block mdast: ${t.type}`},r?[e.text(r)]:null)):null},i.inlineMath||=t=>(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.type,reason:`Unhandled inline mdast: ${t.type}`})),t.value==null?e.text(`«unknown:${t.type}»`):e.text(t.value)),n.footnoteReference?i.footnoteReference=e=>n.footnoteReference.create({identifier:e.identifier,label:e.label??e.identifier}):i.footnoteReference||=t=>(console.warn(JSON.stringify({event:`unknown-mdast-type`,type:`footnoteReference`,reason:`FootnoteReference extension missing — recovering [^id] source`})),e.text(`[^${t.label??t.identifier}]`)),n.footnoteDefinition?i.footnoteDefinition=zH(n.footnoteDefinition,e=>{let t=e;return{identifier:t.identifier,label:t.label??t.identifier}}):i.footnoteDefinition||=t=>{console.warn(JSON.stringify({event:`unknown-mdast-type`,type:`footnoteDefinition`,reason:`FootnoteDefinition extension missing — recovering [^id]: marker`}));let r=`[^${t.label??t.identifier}]: `;return n.paragraph?n.paragraph.create(null,e.text(r)):null},i.rawMdxFallbackMdast=t=>{if(!n.rawMdxFallback)return null;let r=t.position?{start:t.position.start?.offset??0,end:t.position.end?.offset??0}:{start:0,end:0};return console.warn(JSON.stringify({event:`unknown-mdast-type`,type:t.originalType,reason:`Unhandled mdast: ${t.originalType}`})),n.rawMdxFallback.createAndFill({reason:`Unhandled mdast: ${t.originalType}`,originalSpan:r},t.value?[e.text(t.value)]:null)},i}function Fre(e){let t={},n={},r=e.nodes,i=e.marks;r.paragraph&&(t.paragraph=GH(`paragraph`)),r.blockquote&&(t.blockquote=GH(`blockquote`,e=>{let t=e.attrs.sourceMarkerSpacings,n={};return Array.isArray(t)&&t.length>0&&(n.sourceMarkerSpacings=t),Object.keys(n).length>0?{data:n}:{}})),r.heading&&(t.heading=GH(`heading`,e=>({depth:e.attrs.level,data:{sourceStyle:e.attrs.headingStyle,sourceTrailingHashes:e.attrs.sourceTrailingHashes??void 0,sourceUnderlineLength:e.attrs.sourceUnderlineLength??void 0,sourceContiguousNext:e.attrs.sourceContiguousNext===!0?!0:void 0}}))),r.codeBlock&&(t.codeBlock=e=>{let t=e.attrs.sourceStyle===`indented`?`indented`:`fenced`;return{type:`code`,lang:t===`indented`?null:e.attrs.language??null,meta:t===`indented`?null:e.attrs.meta??null,value:e.textContent??``,data:{sourceFenceChar:e.attrs.fenceDelimiter,sourceFenceLength:e.attrs.fenceLength,sourceStyle:t}}}),r.thematicBreak&&(t.thematicBreak=e=>({type:`thematicBreak`,data:{sourceRaw:e.attrs.sourceRaw}})),r.hardBreak&&(t.hardBreak=e=>({type:`break`,data:{sourceStyle:e.attrs.hardBreakStyle}})),r.list&&(t.list=GH(`list`,e=>({ordered:e.attrs.ordered??!1,start:e.attrs.ordered?e.attrs.start??1:null,spread:e.attrs.spread??!1,data:{bulletMarker:e.attrs.bulletMarker,listMarkerDelimiter:e.attrs.listMarkerDelimiter}}))),r.listItem&&(t.listItem=(e,t,n)=>{let r=n.all(e),i=r.length>1&&Mre(r[0])?r.slice(1):r;return{type:`listItem`,checked:e.attrs.checked??null,spread:e.attrs.spread??!1,children:i}}),r.table&&(t.table=(e,t,n)=>{let r=n.all(e),i=[],a=e.firstChild;a&&a.forEach(e=>{let t=e.attrs.align;i.push(t===`left`||t===`right`||t===`center`?t:null)});let o=r.filter(e=>e.type===`tableRow`),s=e.attrs.sourceDashCounts,c=Array.isArray(s)&&s.length>0?{sourceDashCounts:s}:void 0,l={type:`table`,align:i,children:o};return c&&(l.data=c),l}),r.tableRow&&(t.tableRow=GH(`tableRow`));let a=e=>{let t=e.attrs.sourcePadding,n={};return typeof t==`object`&&t&&typeof t.left==`number`&&typeof t.right==`number`&&(n.sourcePadding=t),Object.keys(n).length>0?{data:n}:{}};if(r.tableCell&&(t.tableCell=GH(`tableCell`,a)),r.tableHeader&&(t.tableHeader=GH(`tableCell`,a)),r.image&&(t.image=e=>({type:`image`,url:e.attrs.sourceUrl??e.attrs.src,alt:e.attrs.alt,title:e.attrs.title})),r.imageReference&&(t.imageReference=e=>{let t=e.attrs.label??``,n=e.attrs.identifier??t;return{type:`imageReference`,alt:e.attrs.alt??``,identifier:n,label:t||n,referenceType:e.attrs.referenceType??`shortcut`}}),r.htmlBlock&&(t.htmlBlock=e=>({type:`html`,value:e.attrs.content})),r.linkDefinition??r.linkRefDef){let e=r.linkDefinition?`linkDefinition`:`linkRefDef`;t[e]=e=>{let t={},n=e.attrs.sourceLayout;(n===`multiline`||n===`inline`)&&(t.sourceLayout=n);let r=e.attrs.sourceTitleMarker;(r===`single`||r===`double`||r===`paren`)&&(t.sourceTitleMarker=r);let i={type:`definition`,identifier:e.attrs.identifier??e.attrs.label??``,label:e.attrs.label??e.attrs.identifier??``,url:e.attrs.url??e.attrs.href??``,title:e.attrs.title};return Object.keys(t).length>0&&(i.data=t),i}}if(r.jsxComponent&&(t.jsxComponent=(e,t,n)=>{if(e.attrs.kind===`expression`)return{type:`html`,value:e.attrs.sourceRaw??``};let r=e.attrs.componentName||null,i=Array.isArray(e.attrs.attributes)?e.attrs.attributes:[];return!jre(e)&&e.attrs.sourceRaw?{type:`mdxJsxFlowElement`,name:r,attributes:i,children:[],data:{sourceRaw:String(e.attrs.sourceRaw)}}:Z8.getOrWildcard(r??`*`).serialize(e,{all:e=>n.all(e),registry:Z8,serializeChildren:()=>{throw Error(`SerializeContext.serializeChildren is not available in the PM→mdast handler. Compat descriptors that need markdown-byte body rendering must emit a marker mdast node and let the to-markdown handler render the body via state.containerFlow.`)}})}),r.rawMdxFallback&&(t.rawMdxFallback=e=>{let t=e.textContent??``,n=typeof e.attrs.reason==`string`?e.attrs.reason:``,r=e.attrs.originalSpan;return{type:`rawMdxFallback`,value:t,data:{reason:n,originalSpan:r&&typeof r==`object`&&`start`in r&&`end`in r?{start:Number(r.start)||0,end:Number(r.end)||0}:{start:0,end:0}}}}),r.jsxInline&&(t.jsxInline=e=>{let t=e.attrs.sourceRaw||e.textContent||``;return{type:`mdxJsxTextElement`,name:null,attributes:[],children:[],data:{sourceRaw:String(t)}}}),r.mathInline&&(t.mathInline=e=>{let t=e.attrs.formula??``,n=e.attrs.id;return typeof n==`string`&&n.length>0?{type:`mdxJsxTextElement`,name:`InlineMath`,attributes:[{type:`mdxJsxAttribute`,name:`formula`,value:t},{type:`mdxJsxAttribute`,name:`id`,value:n}],children:[]}:{type:`inlineMath`,value:t}}),r.wikiLink&&(t.wikiLink=e=>{let t=e.attrs.target??``,n=e.attrs.anchor??null,r=e.attrs.alias??null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLink`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}),r.tag&&(t.tag=e=>({type:`tag`,value:String(e.attrs.value??``)})),r.wikiLinkEmbed&&(t.wikiLinkEmbed=e=>{let t=e.attrs.target??``,n=e.attrs.anchor??null,r=e.attrs.alias??null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLinkEmbed`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}),i.emphasis&&(n.emphasis=KH(`emphasis`,e=>({data:{sourceDelimiter:e.attrs.sourceDelimiter}}))),i.strong&&(n.strong=KH(`strong`,e=>({data:{sourceDelimiter:e.attrs.sourceDelimiter}}))),i.code&&(n.code=(e,t,n)=>{let r=e.attrs.sourceFenceChar,i=e.attrs.sourceFenceLength;return $8(n,{sourceFenceChar:r,sourceFenceLength:i})}),i.strike??i.delete){let e=i.strike?`strike`:`delete`;n[e]=KH(`delete`)}return i.highlight&&(n.highlight=KH(`mark`)),i.comment&&(n.comment=KH(`comment`,e=>({data:{sourceForm:e.attrs.sourceForm===`html`?`html`:`percent`}}))),r.commentBlock&&(t.commentBlock=GH(`commentBlock`,e=>({data:{sourceForm:e.attrs.sourceForm===`html`?`html`:`percent`,sourceLayout:e.attrs.sourceLayout===`inline`?`inline`:`block`}}))),r.footnoteReference&&(t.footnoteReference=e=>{let t=String(e.attrs.identifier??``);return{type:`footnoteReference`,identifier:t,label:e.attrs.label?String(e.attrs.label):t}}),r.footnoteDefinition&&(t.footnoteDefinition=GH(`footnoteDefinition`,e=>({identifier:String(e.attrs.identifier??``),label:e.attrs.label?String(e.attrs.label):String(e.attrs.identifier??``)}))),i.link&&(n.link=(e,t,n)=>{if(e.attrs.sourceForm===`wikiembed`){let t=typeof e.attrs.target==`string`&&e.attrs.target.length>0?e.attrs.target:e.attrs.href??``,n=typeof e.attrs.anchor==`string`&&e.attrs.anchor.length>0?e.attrs.anchor:null,r=typeof e.attrs.alias==`string`&&e.attrs.alias.length>0?e.attrs.alias:null,i=r||(n?`${t}#${n}`:t);return{type:`wikiLinkEmbed`,value:i,data:{target:t,anchor:n,alias:r},children:[{type:`text`,value:i}]}}let r=e.attrs.linkStyle;if(r===`autolink`)return{type:`link`,url:e.attrs.href??``,title:null,children:n,data:{sourceStyle:`autolink`}};if(r===`gfm-autolink`)return{type:`link`,url:e.attrs.href??``,title:null,children:n,data:{sourceStyle:`gfm-autolink`}};if(r===`inline`||!r){let t={};e.attrs.sourceUrlForm===`angle-bracketed`&&(t.sourceUrlForm=`angle-bracketed`);let r=e.attrs.sourceTitleMarker;return(r===`single`||r===`double`||r===`paren`)&&(t.sourceTitleMarker=r),{type:`link`,url:e.attrs.href??``,title:e.attrs.title??null,children:n,...Object.keys(t).length>0?{data:t}:{}}}return{type:`linkReference`,identifier:(e.attrs.refLabel??``).toLowerCase(),label:e.attrs.refLabel,referenceType:r,children:n}}),i.escapeMark&&(n.escapeMark=(e,t,n)=>{for(let e of n)if(e.type===`text`&&e.value){let t=e;t.data=t.data??{},t.data.escapedChars=t.data.escapedChars??[];for(let e=0;e<t.value.length;e++)t.data.escapedChars.push({offset:e,char:t.value[e]})}return n.length===1?n[0]:n}),i.sourceLiteral&&(n.sourceLiteral=(e,t,n)=>{let r=typeof e.attrs.sourceRaw==`string`?e.attrs.sourceRaw:``;if(n.length===1&&n[0]?.type===`text`){let e=n[0],t=r||e.value;return k1(t,e.value)&&(e.data=e.data??{},e.data.sourceRaw=t),e}return{type:`text`,value:n.filter(e=>e.type===`text`).map(e=>e.value??``).join(``)||r}}),{nodeHandlers:t,markHandlers:n}}var Ire=/\p{M}+/gu,Lre=/[^\p{L}\p{N}]+/gu,Rre=/^-+|-+$/g;function t5(e){return e.trim().normalize(`NFKD`).replace(Ire,``).toLowerCase().replace(Lre,`-`).replace(Rre,``)}function zre(e,t){let n=t.get(e)??0;return t.set(e,n+1),n===0?e:`${e}-${n}`}function Bre(e,t){let n=t5(e);return n?zre(n,t):``}function n5(e,t){let n=t5(e);return t?`#${n}-${t5(t)}`:`#${n}`}var Vre=new Set([`img`,`video`,`audio`,`mark`]);function r5(e){let t=e.name;if(!t||!Vre.has(t))return null;let n={};for(let t of e.attributes){if(t.type!==`mdxJsxAttribute`)return null;let e=t.name.toLowerCase();if(!(e.length>=3&&e.startsWith(`on`)))if(t.value===null)n[t.name]=!0;else if(typeof t.value==`string`)n[t.name]=t.value;else return null}return{type:`element`,tagName:t,properties:n,children:[]}}var Hre=(e,t)=>{let n=t,{target:r,anchor:i,alias:a}=n.data,o={type:`element`,tagName:`a`,properties:{className:[`wiki-link`],dataTarget:r,dataAnchor:i??``,dataAlias:a??``,href:n5(r,i)},children:n.children.length>0?e.all(n):[{type:`text`,value:n.value}]};return e.patch(t,o),e.applyData(t,o)},Ure=(e,t)=>{let n=t,{target:r,anchor:i,alias:a}=n.data,o={type:`element`,tagName:`a`,properties:{className:[`wiki-embed`],dataTarget:r,dataAnchor:i??``,dataAlias:a??``,href:n5(r,i)},children:n.children.length>0?e.all(n):[{type:`text`,value:n.value}]};return e.patch(t,o),e.applyData(t,o)},Wre=(e,t)=>{let n=t,r=r5(n);if(r)return n.children.length>0&&(r.children=e.all(n)),e.patch(t,r),e.applyData(t,r);let i={type:`element`,tagName:`pre`,properties:{className:[`mdx-component`]},children:[{type:`element`,tagName:`code`,properties:{},children:[{type:`text`,value:typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:``}]}]};return e.patch(t,i),e.applyData(t,i)},Gre=(e,t)=>{let n=t,r=r5(n);if(r)return n.children.length>0&&(r.children=e.all(n)),e.patch(t,r),e.applyData(t,r);let i={type:`element`,tagName:`span`,properties:{className:[`mdx-inline`],dataJsxInline:``},children:[{type:`text`,value:typeof n.data?.sourceRaw==`string`?n.data.sourceRaw:``}]};return e.patch(t,i),e.applyData(t,i)},Kre=(e,t)=>{let n=t,r=n.data.reason||`unknown`,i=n.value||``,a=r.replace(/--/g,`—`),o={type:`comment`,value:` Parse error: ${a} `},s={type:`element`,tagName:`pre`,properties:{className:[`mdx-fallback`],dataRawMdxFallback:``,dataReason:a},children:[{type:`element`,tagName:`code`,properties:{},children:[{type:`text`,value:i}]}]};return e.patch(t,s),[o,e.applyData(t,s)]},qre=(e,t)=>{let n={type:`element`,tagName:`mark`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)};function i5(e){if(typeof e!=`object`||!e)return``;let t=e;return typeof t.value==`string`?t.value:Array.isArray(t.children)?t.children.map(i5).join(``):``}var a5={wikiLink:Hre,wikiLinkEmbed:Ure,mdxJsxFlowElement:Wre,mdxJsxTextElement:Gre,rawMdxFallback:Kre,mark:qre,tag:(e,t)=>{let n=t.value,r={type:`element`,tagName:`a`,properties:{className:[`tag`],dataTag:n,href:`#tag/${n}`},children:[{type:`text`,value:`#${n}`}]};return e.patch(t,r),e.applyData(t,r)},comment:(e,t)=>{let n={type:`comment`,value:i5(t).replace(/--/g,`—`)};return e.patch(t,n),e.applyData(t,n)},commentBlock:(e,t)=>{let n={type:`comment`,value:i5(t).replace(/--/g,`—`)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:(e,t)=>{let n=t.identifier,r={type:`element`,tagName:`sup`,properties:{id:`fnref-${n}`,dataFootnoteRef:``,dataFootnoteId:n,className:[`footnote-ref`]},children:[{type:`element`,tagName:`a`,properties:{href:`#fn-${n}`,className:[`footnote-ref-link`]},children:[{type:`text`,value:`[${n}]`}]}]};return e.patch(t,r),e.applyData(t,r)},footnoteDefinition:(e,t)=>{let n=t.identifier,r={type:`element`,tagName:`aside`,properties:{id:`fn-${n}`,dataFootnoteDef:``,dataFootnoteId:n,className:[`footnote-def`]},children:[{type:`element`,tagName:`div`,properties:{className:[`footnote-body`]},children:e.all(t)},{type:`element`,tagName:`a`,properties:{href:`#fnref-${n}`,className:[`footnote-backref`],ariaLabel:`Back to reference`},children:[{type:`text`,value:`↩`}]}]};return e.patch(t,r),e.applyData(t,r)}},Jre=/url\s*\(\s*['"]?\s*(?:javascript|vbscript|data)\s*:/i,Yre=/\bexpression\s*\(/i,Xre=1e4;function Zre(e){return!(e.length>Xre||Jre.test(e)||Yre.test(e))}function o5(e){for(let t of e.split(`,`)){let e=t.trim();if(e!==``&&!i1(e.split(/\s+/)[0]??``))return!1}return!0}var s5=()=>e=>{TP(e,`element`,e=>{let t=e.tagName.toLowerCase(),n=e.properties;if(!n)return;if(t===`a`||t===`area`||t===`link`||t===`base`){let e=n.href;typeof e==`string`&&!i1(e)&&delete n.href}if(t===`img`||t===`iframe`||t===`script`||t===`embed`||t===`source`||t===`audio`||t===`video`||t===`track`){let e=n.src;typeof e==`string`&&!i1(e)&&delete n.src}if(t===`form`){let e=n.action;typeof e==`string`&&!i1(e)&&delete n.action}if(t===`img`||t===`source`){let e=n.srcSet;typeof e==`string`&&!o5(e)&&delete n.srcSet;let t=n.srcset;typeof t==`string`&&!o5(t)&&delete n.srcset}if(t===`video`){let e=n.poster;typeof e==`string`&&!i1(e)&&delete n.poster}let r=n.style;typeof r==`string`&&!Zre(r)&&delete n.style})};function Qre(e){let t=gH().use(Bq,{handlers:a5}).use(s5).use($K),n=t.runSync(e);return String(t.stringify(n))}function $re(e){let t=gH().use(mW).use(pU,[`yaml`]).use(x8).use(sH).use(W8).use(Bq,{handlers:a5}).use(s5).use($K);return String(t.processSync(e))}tK(),mG(),hG(),N({docName:S0,summary:T0,content:A().optional(),...w0}).loose(),N({docName:S0,summary:T0,markdown:A(),position:P([`append`,`prepend`,`replace`]).optional(),...w0}).loose(),N({docName:S0,summary:T0,find:A().min(1),replace:A(),offset:j().int().nonnegative().optional(),...w0}).loose(),N({docName:S0,connectionId:A().min(1),scope:P([`last`,`session`,`file`]).optional(),...w0}).loose();var c5=N({value:A(),truncatedFrom:j().int().nonnegative().optional(),hint:A().optional()}).loose(),eie=N({type:F(`orphan`),parentCandidates:M(A()),message:A()}).loose();N({timestamp:A().min(1),summary:c5.optional()}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),hints:M(eie).optional(),summary:c5.optional()}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),summary:c5.optional()}).loose(),N({docName:A().min(1),scope:P([`last`,`session`]),undone:Ra()}).loose(),N({docName:S0,patch:to(A(),Ya([MZ,Ba()])),types:to(A(),P(AZ)).optional(),summary:T0,...w0}).loose(),N({timestamp:A().min(1),subscriberCount:j().int().nonnegative(),systemSubscriberCount:j().int().nonnegative(),appliedKeys:M(A()),summary:c5.optional()}).loose(),N({entries:M(N({level:P([`info`,`warn`,`error`]),message:A().max(K0),event:A().optional(),fields:to(A(),Ha()).optional(),ts:j().optional(),sourceId:A().optional(),lineNumber:j().optional()}).loose()).max(100)}).loose(),N({accepted:j().int().min(0)}).loose();var tie=N({status:A().min(1),reason:A()}).loose();N({docName:A().min(1),content:A(),lifecycle:tie.nullable()}).loose();var l5=N({kind:P([`document`,`asset`,`folder`]).default(`document`),docName:A().min(1).optional(),docExt:A().min(1).default(`.md`),size:j().int().nonnegative(),modified:A().min(1),isSymlink:Ra().default(!1),canonicalDocName:A().nullable().default(null),targetPath:A().nullable().default(null),path:A().min(1).optional(),assetExt:A().min(1).optional(),mediaKind:P([`image`,`video`,`audio`,`pdf`,`text`]).nullable().optional(),referencedBy:M(A().min(1)).optional(),hasChildren:Ra().optional()}).loose().refine(e=>e.kind===`document`?e.docName!==void 0&&e.path===void 0&&e.assetExt===void 0&&e.mediaKind===void 0&&e.referencedBy===void 0&&e.hasChildren===void 0:e.kind===`folder`?e.docName===void 0&&e.path!==void 0&&e.assetExt===void 0&&e.mediaKind===void 0&&e.referencedBy===void 0:e.path!==void 0&&e.assetExt!==void 0&&e.referencedBy!==void 0&&e.hasChildren===void 0,{message:`document/asset/folder kind must match its required fields (document → docName; asset → path+assetExt+referencedBy; folder → path only, no docName)`}),nie=N({documents:M(l5),truncated:Ra().optional()}).loose(),rie=N({source:A().min(1),anchor:A().nullable(),title:A(),snippet:A().nullable()}).loose(),iie=N({docName:A().min(1),backlinks:M(rie)}).loose();N({counts:to(A().min(1),j().int().nonnegative())}).loose();var aie=Za(`kind`,[N({kind:F(`doc`),docName:A().min(1),anchor:A().nullable(),title:A(),snippet:A().nullable()}).loose(),N({kind:F(`external`),url:A().min(1),title:A(),snippet:A().nullable()}).loose()]),oie=N({docName:A().min(1),forwardLinks:M(aie)}).loose(),sie=Za(`kind`,[N({id:A().min(1),kind:F(`doc`),docName:A().min(1),anchor:A().nullable(),label:A(),cluster:A().nullable(),category:A().nullable(),tags:M(A()).nullable()}).loose(),N({id:A().min(1),kind:F(`external`),url:A().min(1),label:A()}).loose()]),cie=N({source:A().min(1),target:A().min(1)}).loose(),lie=N({nodes:M(sie),links:M(cie)}).loose();N({writers:M(N({id:A().min(1),name:A().optional(),email:A().optional()}).loose()).optional(),...w0}).loose(),N({checkpointRef:A().min(1)}).loose();var uie=N({v:j().int().optional(),id:A().min(1),name:A().min(1),colorSeed:A().optional(),docs:M(A()),summaries:M(A()).optional()}).loose();N({entries:M(N({sha:A().min(1),timestamp:A().min(1),author:A(),authorEmail:A(),type:P([`checkpoint`,`wip`,`upstream`,`park`]),message:A(),contributors:M(uie),checkpoint:Ha().nullable()}).loose()),total:j().int().nonnegative().optional(),truncated:Ra().optional()}).loose(),N({sha:A().regex(/^[0-9a-f]{40}$/i),content:A(),timestamp:A(),author:A()}).loose(),N({lines:M(N({type:P([`added`,`removed`,`unchanged`]),text:A()}).loose()),additions:j().int().nonnegative(),deletions:j().int().nonnegative()}).loose();var die=N({contentDir:A().min(1),pathSeparator:P([`/`,`\\`]),symlinkResolved:Ra()}).loose();M(Za(`source`,[N({docName:A().min(1),timestamp:A().min(1),size:j().int().nonnegative(),source:F(`flat`)}).loose(),N({docName:A().min(1),timestamp:A().min(1),source:F(`timeline`),sha:A().min(1)}).loose()])).meta({description:"Flat array of rescue buffer entries; discriminated via `source`."});var fie=N({orphans:M(N({docName:A().min(1),title:A()}).loose())}).loose(),pie=N({hubs:M(N({docName:A().min(1),title:A(),count:j().int().nonnegative()}).loose())}).loose(),mie=N({source:A().min(1),title:A(),snippet:A().nullable()}).loose();N({deadLinks:M(N({target:A().min(1),sources:M(mie)}).loose())}).loose(),N({target:N({docName:A().min(1),title:A(),aliases:M(A())}).loose(),mentions:M(N({source:A().min(1),excerpt:A(),offset:j().int().nonnegative()}).loose()),truncated:Ra()}).loose(),N({dir:A().min(1),port:j().int().min(1).max(65535).optional()}).loose(),N({port:j().int().positive()}).loose(),N({projectPath:A().min(1)}).loose();var hie=P([`not-a-git-worktree`,`init-failed`]);Za(`ok`,[N({ok:F(!0),projectPath:A().min(1)}).loose(),N({ok:F(!1),reason:hie,message:A().min(1)}).loose()]),N({host:A().min(1).optional()}).loose(),N({pat:A().min(1),host:A().min(1).optional()}).loose(),N({name:A().refine(e=>e.trim().length>0,{message:`name must be non-empty`}),email:A().refine(e=>e.trim().length>0,{message:`email must be non-empty`})}).loose(),N({identity:N({name:A().min(1),email:A().min(1)}).loose().nullable()}).loose(),N({authenticated:Ra()}).loose(),N({type:F(`complete`).optional(),login:A().min(1).optional()}).loose(),N({}).loose();var gie=N({stackIndex:j().int().min(0),ts:j().int().min(0),additions:j().int().min(0),deletions:j().int().min(0)}).loose(),_ie=N({docName:A().min(1),additionsTotal:j().int().min(0),deletionsTotal:j().int().min(0),lastTs:j().int().min(0),bursts:M(gie)}).loose(),vie=N({displayName:A().min(1),color:A().min(1),icon:A().optional(),connectionId:A().min(1)}).loose(),yie=N({sessionAlive:Ra(),agent:vie.nullable(),files:M(_ie)}).loose(),bie=N({diff:A(),generatedAt:j().int().min(0)}).loose();N({}).loose(),N({}).loose(),N({}).loose(),N({}).loose(),N({}).loose();var xie=N({displayName:A().min(1),icon:A(),color:A().min(1),currentDoc:A().nullable(),mode:P([`idle`,`writing`]),ts:j().int().min(0)}).loose();N({presence:to(A().min(1),xie)}).loose(),to(A().min(1),Ra()).meta({description:`Flat boolean record keyed by agent-scheme name (claude / codex / cursor). True = installed.`}),N({path:A().min(1,`path must be non-empty`)}).loose(),N({}).loose();var u5=N({fromDocName:A().min(1),toDocName:A().min(1)}).loose(),Sie=N({fromPath:A().min(1),toPath:A().min(1)}).loose();N({}).loose(),N({path:A().min(1),...w0,summary:T0}).loose();var Cie=N({docName:A().min(1)}).loose();N({path:A().min(1),...w0,summary:T0}).loose();var wie=N({path:A().min(1)}).loose();N({kind:P([`file`,`folder`]),path:A().min(1),...w0,summary:T0}).loose();var Tie=N({kind:P([`file`,`folder`]),path:A().min(1),duplicatedDocNames:M(A().min(1))}).loose(),Eie=N({pages:M(N({docName:A().min(1),title:A(),docExt:A().min(1),size:j().int().nonnegative(),modified:A().min(1),icon:A().min(1).max(2048).optional()}).loose())}).loose(),Die=N({level:j().int().min(1).max(6),text:A(),slug:A()}).loose(),Oie=N({docName:A().min(1),headings:M(Die)}).loose();N({docName:C0,newDocName:C0,summary:T0,...w0}).loose();var d5=N({docName:A().min(1),rewrites:j().int().nonnegative()}).loose();N({renamed:M(u5),rewrittenDocs:M(d5),summary:c5.optional()}).loose(),N({kind:P([`file`,`folder`,`asset`]),fromPath:A().min(1),toPath:A().min(1),...w0,summary:T0}).loose();var kie=N({renamed:M(u5),renamedAssets:M(Sie),rewrittenDocs:M(d5).optional(),summary:c5.optional()}).loose();N({kind:P([`file`,`folder`,`asset`]),path:A().min(1),...w0}).loose();var Aie=N({deletedDocNames:M(A().min(1))}).loose();N({kind:P([`file`,`folder`,`asset`]),path:A().min(1),...w0,summary:T0}).loose();var jie=N({deletedDocNames:M(A().min(1))}).loose();N({docName:A().min(1),commitSha:A().regex(/^[0-9a-f]{40}$/i,{message:`commitSha must be a 40-char git SHA`}),summary:T0,...w0}).loose(),N({restoredFrom:A().min(1),timestamp:A().min(1),summary:c5.optional()}).loose();var Mie=P([`dormant`,`idle`,`fetching`,`pulling`,`pushing`,`conflict`,`offline`,`auth-error`,`disabled`]),Nie=N({label:A().min(1),webUrl:va().nullable()}).loose(),Pie=Za(`checkStatus`,[N({checkStatus:F(`allowed`)}).loose(),N({checkStatus:F(`denied`),deniedReason:P([`no-collaborator`,`private-no-access`,`repo-not-found`])}).loose(),N({checkStatus:F(`unknown`),unknownError:P([`network`,`timeout`,`rate-limit`,`token-invalid`,`malformed-response`]).optional()}).loose()]);N({state:Mie,lastSyncUtc:A().nullable(),lastFetchUtc:A().nullable(),lastPushedSha:A().nullable(),ahead:j().int().min(0),behind:j().int().min(0),consecutiveFailures:j().int().min(0),conflictCount:j().int().min(0),hasRemote:Ra(),syncEnabled:Ra(),identityUnresolved:Ra(),remote:Nie.nullable().optional(),error:A().optional(),errorCode:P([`auth-403`,`auth-401`,`auth-scope-mismatch`,`semantic-protected-branch`]).optional(),pausedReason:A().optional(),pushPermission:Pie.optional()}).loose(),N({op:P([`sync`,`push`,`pull`]).optional()}).loose(),N({op:P([`sync`,`push`,`pull`])}).loose(),N({conflicts:M(N({file:A().min(1),detectedAt:A().min(1),oursSha:A().optional(),theirsSha:A().optional(),baseSha:A().optional()}).loose())}).loose(),N({file:A().min(1),strategy:P([`mine`,`theirs`,`content`,`delete`]),content:A().optional()}).loose().refine(e=>e.strategy!==`content`||e.content!==void 0&&e.content!==``,{message:`content must be a non-empty string when strategy is 'content'`,path:[`content`]}),N({}).loose(),N({file:A().min(1),base:A(),ours:A(),theirs:A(),kind:P([`both-modified`,`delete-modify`,`modify-delete`]),lifecycleStatus:A().nullable()}).loose(),N({}).loose(),N({plan:Eo(e=>e!==void 0,{message:`plan is required`})}).loose(),N({plan:Eo(e=>e!==void 0,{message:`plan is required`})}).loose(),N({result:Eo(e=>e!==void 0,{message:`result is required`})}).loose();var Fie=N({path:A().min(1),summary:A().min(1)}).loose(),Iie=N({files:j().int().nonnegative(),folders:j().int().nonnegative()}).loose();N({packs:M(N({id:A().min(1),name:A().min(1),description:A().min(1),defaultSubfolder:A().optional(),folders:M(Fie),entryCounts:Iie}).loose())}).loose(),N({noOpen:Ra().optional(),out:A().min(1).optional()}).loose();var Lie=N({reason:P([`unsupported-platform`,`spawn-error`]),message:A()}).loose();Za(`status`,[N({status:F(`installed`),outputPath:A(),size:j().int().nonnegative(),sha256:A(),skillVersion:A()}).loose(),N({status:F(`built`),outputPath:A(),size:j().int().nonnegative(),sha256:A(),skillVersion:A(),handoffError:Lie.optional()}).loose(),N({status:F(`failed`),buildError:A()}).loose(),N({status:F(`skip-current`),skillVersion:A(),recordedAt:A().optional()}).loose()]),N({tags:M(N({name:A().min(1),count:j().int().nonnegative(),isLeaf:Ra()}).loose())}).loose();var Rie=N({docName:A().min(1),title:A(),matchingTags:M(A().min(1)),snippet:A().nullable()}).loose();N({name:A().min(1),docs:M(Rie)}).loose(),N({folder:Ha(),frontmatter_local:to(A(),Ha()).nullable(),frontmatter_sources:to(A(),A()).optional(),schema_declarations:to(A(),Ha()).optional(),schema_sources:to(A(),A()).optional(),schema_local:to(A(),Ha()).nullable()}).loose(),N({path:A(),frontmatter:to(A(),Ha()).optional(),declarations:to(A(),Ha()).optional()}).loose(),N({applied:Ha()}).loose();var f5=to(A(),Ha()).meta({description:`Free-form frontmatter map embedded in template payloads.`});N({template:N({name:A().min(1),folder:A(),scope:P([`local`,`inherited`]),path:A().min(1),frontmatter:f5,body:A()}).strict()}).strict(),N({folder:A(),name:A(),body:A().optional(),frontmatter:f5.optional()}).strict(),N({path:A().min(1),created:Ra(),warnings:M(A())}).strict(),N({existed:Ra(),path:A().min(1)}).strict(),N({query:A().optional(),intent:P([`autocomplete`,`full_text`,`omnibar`]).optional(),scopes:M(P([`page`,`folder`,`content`])).optional(),scope:A().optional(),limit:j().int().nonnegative().optional()}).loose();var zie=N({kind:P([`page`,`folder`,`content`]),path:A().min(1),title:A(),score:j(),signals:to(A(),Ha()),snippet:A().optional()}).loose();N({query:A(),intent:P([`autocomplete`,`full_text`,`omnibar`]),results:M(zie),elapsedMs:j().nonnegative()}).loose();var Bie=N({version:A().min(1),recordedAt:A().min(1)}).loose();N({currentVersion:A().min(1),targets:to(A(),Bie.nullable())}).loose();var Vie=`server-info`,Hie=`branch-switched`,Uie=`disk-ack`,Wie=`config-validation-rejected`,Gie=`config-ignore-nested-error`,p5=P([`files`,`backlinks`,`graph`,`sync-status`,`session-activity`,`tags`]),Kie=N({v:F(1),ch:F(Vie),seq:j(),serverInstanceId:A().min(1),currentBranch:A().min(1).optional()}).loose(),qie=N({v:F(1),ch:F(Hie),seq:j(),branch:A().min(1)}).loose(),Jie=N({v:F(1),ch:p5,seq:j()}).loose(),Yie=N({v:F(1),ch:F(Uie),seq:j(),docName:A().min(1),sv:A().min(1)}).loose(),Xie=N({v:F(1),ch:F(Wie),seq:j(),docName:A().min(1),error:qQ}).loose(),Zie=N({v:F(1),ch:F(Gie),seq:j(),path:A().min(1),error:A().min(1)}).loose(),Qie={id:`string`,kind:`enum`,path:`string`,title:`string`,name:`string`,pathSegments:`string`,content:`string`,modifiedTs:`number`},m5=new WeakMap;function $ie(e){return e===void 0||!Number.isFinite(e)?20:Math.max(1,Math.min(100,Math.trunc(e)))}function h5(e){return e.trim().toLowerCase()}function g5(e){let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function eae(e){return e.split(`/`).filter(Boolean).join(` `)}function tae(e){let t=g5(e.path),n=e.title?.trim()||t,r=e.modifiedTs??0;return{id:`${e.kind}:${e.path}`,kind:e.kind,path:e.path,title:n,name:t,pathSegments:eae(e.path),content:e.content??``,modifiedTs:Number.isFinite(r)?r:0}}function _5(e){let t=IX({schema:Qie});return e.length>0&&qX(t,e),t}function nae(e){let t={documents:e};return m5.set(t,_5(e)),t}function rae(e){let t=m5.get(e);if(t)return t;let n=_5(e.documents);return m5.set(e,n),n}function iae(e){return e===`autocomplete`?[`page`]:e===`full_text`?[`page`,`content`]:[`page`,`folder`]}function v5(e,t){return t.has(e.kind)?!0:e.kind===`page`&&t.has(`content`)}function y5(e,t){let n=h5(t);if(!n)return 0;let r=h5(e.title),i=h5(e.name),a=h5(e.path),o=a.split(`/`);return r===n||i===n?700:a===n?650:r.startsWith(n)||i.startsWith(n)?600:o.some(e=>e.startsWith(n))?550:r.includes(n)||i.includes(n)?500:a.includes(n)?450:-1}function aae(e){let t=e.map(e=>e.modifiedTs).filter(e=>Number.isFinite(e)&&e>0);if(t.length===0)return new Map;let n=1/0,r=-1/0;for(let e of t)e<n&&(n=e),e>r&&(r=e);let i=Math.max(1,r-n);return new Map(e.map(e=>[e.id,e.modifiedTs>0?(e.modifiedTs-n)/i*50:0]))}function oae(e){return e===`full_text`?[`title`,`name`,`path`,`pathSegments`,`content`]:[`title`,`name`,`path`,`pathSegments`]}function sae(e){return e===`full_text`?{title:8,name:7,path:5,pathSegments:4,content:1}:e===`autocomplete`?{title:10,name:9,path:5,pathSegments:4}:{title:8,name:7,path:5,pathSegments:4}}function cae(e,t){return h5(t).length<4?0:+(e===`full_text`)}function lae(e,t,n={}){let r=n.intent??`omnibar`,i=$ie(n.limit),a=new Set(n.scopes??iae(r)),o=e.documents.filter(e=>v5(e,a)),s=h5(t);if(!s)return o.slice().sort((e,t)=>e.path.localeCompare(t.path)).slice(0,i).map(e=>({document:e,score:0,signals:{lexical:0,fullText:0,recency:0}}));let c=CZ(rae(e),{term:s,properties:oae(r),boost:sae(r),tolerance:cae(r,s),limit:Math.max(i*4,40)}),l=new Map(c.hits.filter(e=>v5(e.document,a)).map(e=>[e.document.id,e.score])),u=aae(o),d=new Map;for(let e of o)y5(e,s)>=0&&d.set(e.id,e);for(let e of c.hits)v5(e.document,a)&&d.set(e.document.id,e.document);return[...d.values()].map(e=>{let t=Math.max(0,y5(e,s)),n=l.get(e.id)??0,r=u.get(e.id)??0;return{document:e,score:t+n*20+r,signals:{lexical:t,fullText:n,recency:r}}}).sort((e,t)=>e.score===t.score?e.document.path.localeCompare(t.document.path):t.score-e.score).slice(0,i)}function uae(e){return`https://github.com/${e.owner}/${e.repo}.git`}var b5=Symbol.for(`@inkeep/open-knowledge/skill-state-field-registry`),x5=globalThis;x5[b5]===void 0&&(x5[b5]=Wr());var S5=x5[b5],C5=qa({version:A().regex(/^\d+\.\d+\.\d+(?:[-+][\w.-]+)?$/,`version must match /^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.-]+)?$/`).register(S5,{description:`Recorded skill version for this target.`}),recordedAt:Ui().register(S5,{description:`ISO 8601 timestamp of the most recent successful write. Updated on every write, including reinstalls of the same version.`}),surface:P([`server-build-and-open`,`electron-build-and-open`,`cli-npx-skills-add`,`desktop-direct`,`cli-start`]).register(S5,{description:`Install-source surface that recorded this entry.`}).optional()});qa({schema:F(1).register(S5,{description:`Schema major version. Bumped only on breaking shape changes.`}),targets:qa({"claude-cowork":C5.optional(),"cli-hosts":C5.optional()}).register(S5,{description:`Per-target install-state entries. Absent target = no recorded install.`}).default({})});var w5=class extends Error{chunksCompleted;totalChunks;bytesWritten;bytesRemaining;cause;constructor(e,t){let n=e instanceof Error?e.message:typeof e==`string`?e:`unknown error`;super(`chunked insert failed after ${t.chunksCompleted}/${t.totalChunks} chunks (${t.bytesWritten} bytes written, ${t.bytesRemaining} bytes lost): ${n}`),this.name=`ChunkedInsertError`,this.chunksCompleted=t.chunksCompleted,this.totalChunks=t.totalChunks,this.bytesWritten=t.bytesWritten,this.bytesRemaining=t.bytesRemaining,this.cause=e}};async function dae(e,t,n,r,i={}){let a=i.thresholdBytes??512e3,o=i.chunkSizeBytes??51200,s=i.origin,c=i.yieldFn??fae,l=i.resolveOffset??(e=>e);if(r.length<=a){e.transact(()=>{t.insert(n,r)},s);return}let u=Math.ceil(r.length/o),d=0,f=n,p=0,m=0;for(;d<r.length;){let n=Math.min(d+o,r.length),i=r.slice(d,n);try{let n=l(f);e.transact(()=>{t.insert(n,i)},s)}catch(e){throw new w5(e,{chunksCompleted:p,totalChunks:u,bytesWritten:m,bytesRemaining:r.length-d})}p++,m+=i.length,f+=i.length,d=n,d<r.length&&await c()}}function fae(){return new Promise(e=>{let t=globalThis;t.document?.hidden!==!0&&typeof t.requestAnimationFrame==`function`?t.requestAnimationFrame(()=>e()):setTimeout(()=>e(),0)})}function pae(){let e=!1,t=``,n=0;return r=>{let i=mae(r);return e?(i&&i.char===t&&i.len>=n&&!i.hasInfo&&(e=!1,t=``,n=0),!0):i?(e=!0,t=i.char,n=i.len,!0):!1}}function mae(e){let t=(e.endsWith(`\r`)?e.slice(0,-1):e).match(/^ {0,3}([`~])(\1{2,})(.*)$/);return t?{char:t[1],len:1+t[2].length,hasInfo:t[3].trim()!==``}:null}var hae=[`#D97757`,`#1B1912`,`#F9F3E9`,`#7A9DFF`,`#8534F3`,`#9663F0`,`#727CF3`],gae={claude:`#D97757`,cursor:`#1B1912`,windsurf:`#0B100F`,openai:`#7A9DFF`,github:`#8534F3`,cline:`#9663F0`,bot:`#727CF3`},_ae={cursor:`#FFFFFF`,windsurf:`#FFFFFF`},T5=[`#f0ece3`,`#fff5e1`,`#f9e1db`,`#f5def7`,`#ece2fb`,`#dce8fa`,`#DBF3FB`];function vae(e,t=hae){let n=0;for(let t of e)n=(n<<5)-n+t.charCodeAt(0)|0;return t[Math.abs(n)%t.length]}function yae(e){let t=e.trim();if(!t)return`?`;let n=t.split(/[-\s]+/).filter(Boolean);if(!n.length)return`?`;if(n.length>=2)return n.slice(0,2).map(e=>e[0]??``).join(``).toUpperCase();let r=n[0],i=[r[0]];for(let e=1;e<r.length&&i.length<2;e++){let t=r[e-1],n=r[e];t===t.toLowerCase()&&n===n.toUpperCase()&&n!==n.toLowerCase()&&i.push(n)}return i.length>=2?i.join(``).toUpperCase():r.slice(0,2).toUpperCase()}function bae(e){let t=e.trim();if(!t)return e;if(t.includes(` `)||!/[-_]/.test(t))return t;let n=t.split(/[-_]+/).filter(Boolean);return n.length?n.map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `):t}var xae={"claude-code":`claude`,"claude-ai":`claude`,cursor:`cursor`,"cursor-vscode":`cursor`,cascade:`windsurf`,codex:`openai`,"codex-mcp-client":`openai`,copilot:`github`,cline:`cline`};function Sae(e){return e?xae[e]||(e.startsWith(`local-agent-mode-`)?`claude`:`bot`):`bot`}function Cae(e){let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return[0,0,o*100];let s=i-a,c=o>.5?s/(2-i-a):s/(i+a),l;return l=i===t?((n-r)/s+(n<r?6:0))/6:i===n?((r-t)/s+2)/6:((t-n)/s+4)/6,[l*360,c*100,o*100]}function wae(e,t,n){let r=t/100,i=n/100,a=r*Math.min(i,1-i),o=t=>{let n=(t+e/30)%12,r=i-a*Math.max(Math.min(n-3,9-n,1),-1);return Math.round(255*r).toString(16).padStart(2,`0`)};return`#${o(0)}${o(8)}${o(4)}`}function Tae(e){let[t]=Cae(e);return wae(t,45,32)}var Eae=[`Curious`,`Brave`,`Clever`,`Swift`,`Gentle`,`Bright`,`Wise`,`Bold`,`Calm`,`Keen`],Dae=[`Bird`,`Cat`,`Dog`,`Fish`,`Mouse`,`Rabbit`,`Shrimp`,`Snail`,`Squirrel`,`Turtle`],E5=`ok-user-name-v3`,D5=`ok-user-color-v3`;function O5(e){return e[Math.floor(Math.random()*e.length)]}function Oae(){return`${O5(Eae)} ${O5(Dae)}`}function kae(){return O5(T5)}function k5(e){try{return localStorage.getItem(e)}catch{return null}}function A5(e,t){try{localStorage.setItem(e,t)}catch{}}function Aae(){let e=new URLSearchParams(window.location.search).get(`coeditor`)||`standalone`,t=crypto.randomUUID(),n=k5(E5),r=k5(D5);return n||(n=Oae(),A5(E5,n)),r||(r=kae(),A5(D5,r)),{name:n,color:r,coeditor:e,tabId:t}}function jae(e,t){let n=e.trim();if(!n||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),i=r>=0?n.slice(0,r):n,a=r>=0?n.slice(r+1):null,o=(i.split(`?`)[0]??``).trim();if(!o)return null;let s=(o.split(`/`).pop()??``).match(/\.([a-z0-9]+)$/i);if(s){let e=(s[1]??``).toLowerCase();if(e!==`md`&&e!==`mdx`)return null}let c=o.toLowerCase(),l=c.endsWith(`.mdx`)?o.slice(0,-4):c.endsWith(`.md`)?o.slice(0,-3):o,u=l.startsWith(`/`),d=u?l.slice(1):l,f=u?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of d.split(`/`))if(e===`..`){if(f.length===0)return null;f.pop()}else e!==`.`&&e!==``&&f.push(e);return f.length===0?null:{docName:f.join(`/`),anchor:a||null}}function Mae(e){throw Error(`Unhandled ClassifiedLinkTarget variant: ${JSON.stringify(e)}`)}var j5=/^[a-zA-Z][a-zA-Z\d+\-.]*:/;function M5(e){let t=(e.split(/[?#]/)[0]??e).match(/\.([a-z0-9]+)$/i);return t?(t[1]??``).toLowerCase():null}function N5(e){return e.split(`/`).filter(Boolean)}function P5(e){let t=e.trim();return j5.test(t)||t.startsWith(`//`)}function Nae(e,t){let n=e.trim();if(!n)return null;if(n.startsWith(`#`)){let e=n.slice(1).trim();return e?{kind:`anchor`,anchor:e}:null}if(P5(n))return{kind:`external`,url:n};let r=jae(n,t);if(r)return{kind:`doc`,docName:r.docName,anchor:r.anchor};let i=M5(n);return i&&i!==`md`&&i!==`mdx`?{kind:`asset`,url:n,ext:i}:null}function Pae(e,t){let n=e.trim();if(!n)return null;if(P5(n))return{kind:`external`,url:t?`${n}#${t}`:n};let r=M5(n);return r&&r!==`md`&&r!==`mdx`?{kind:`asset`,url:n,ext:r}:{kind:`doc`,docName:n,anchor:t?.trim()||null}}function Fae(e,t){let n=e.trim();if(!n||j5.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),i=((r>=0?n.slice(0,r):n).split(`?`)[0]??``).trim();if(!i)return null;let a=i.startsWith(`/`),o=a?i.slice(1):i,s=a?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of o.split(`/`))if(e===`..`){if(s.length===0)return null;s.pop()}else e!==`.`&&e!==``&&s.push(e);return s.length===0?null:s.join(`/`)}function Iae(e,t,n=null){let r=N5(e);r.pop();let i=N5(t),a=0;for(;a<r.length&&a<i.length&&r[a]===i[a];)a+=1;let o=r.slice(a).map(()=>`..`),s=i.slice(a),c=[...o,...s].join(`/`);return c||=i.at(-1)??t,!c.startsWith(`./`)&&!c.startsWith(`../`)&&(c=`./${c}`),`${c}.md${n?`#${n}`:``}`}function Lae(e){if(!e)return{height:null,viewerFragment:``};let t=e.split(`&`).filter(e=>e.length>0),n=null,r=[];for(let e of t){let t=e.indexOf(`=`);if(t===-1){r.push(e);continue}let i=e.slice(0,t),a=e.slice(t+1);if(i===`height`){let e=Number.parseInt(a,10);!Number.isNaN(e)&&e>0&&(n=e);continue}r.push(e)}return{height:n,viewerFragment:r.join(`&`)}}function Rae(e){return e.replace(/[/\\:*?"<>|\0]/g,`-`).replace(/\s+/g,` `).replace(/-+/g,`-`).trim().replace(/^[-.\s]+|[-.\s]+$/g,``)}var F5=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),zae=`VisuallyHidden`,I5=E.forwardRef((e,t)=>(0,ko.jsx)(m.span,{...e,ref:t,style:{...F5,...e.style}}));I5.displayName=zae;var Bae=I5,L5=[`top`,`right`,`bottom`,`left`],R5=[`start`,`end`],z5=L5.reduce((e,t)=>e.concat(t,t+`-`+R5[0],t+`-`+R5[1]),[]),B5=Math.min,V5=Math.max,H5=Math.round,U5=Math.floor,W5=e=>({x:e,y:e}),Vae={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function G5(e,t,n){return V5(e,B5(t,n))}function K5(e,t){return typeof e==`function`?e(t):e}function q5(e){return e.split(`-`)[0]}function J5(e){return e.split(`-`)[1]}function Y5(e){return e===`x`?`y`:`x`}function X5(e){return e===`y`?`height`:`width`}function Z5(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Q5(e){return Y5(Z5(e))}function $5(e,t,n){n===void 0&&(n=!1);let r=J5(e),i=Q5(e),a=X5(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=r7(o)),[o,r7(o)]}function Hae(e){let t=r7(e);return[e7(e),t,e7(t)]}function e7(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var t7=[`left`,`right`],n7=[`right`,`left`],Uae=[`top`,`bottom`],Wae=[`bottom`,`top`];function Gae(e,t,n){switch(e){case`top`:case`bottom`:return n?t?n7:t7:t?t7:n7;case`left`:case`right`:return t?Uae:Wae;default:return[]}}function Kae(e,t,n,r){let i=J5(e),a=Gae(q5(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(e7)))),a}function r7(e){let t=q5(e);return Vae[t]+e.slice(t.length)}function qae(e){return{top:0,right:0,bottom:0,left:0,...e}}function i7(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:qae(e)}function a7(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function o7(e,t,n){let{reference:r,floating:i}=e,a=Z5(t),o=Q5(t),s=X5(o),c=q5(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(J5(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Jae(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=K5(t,e),p=i7(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=a7(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=a7(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Yae=50,Xae=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Jae},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=o7(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Yae&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=o7(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Zae=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=K5(e,t)||{};if(l==null)return{};let d=i7(u),f={x:n,y:r},p=Q5(i),m=X5(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=B5(d[_],T),ee=B5(d[v],T),te=E,ne=C-h[m]-ee,re=C/2-h[m]/2+w,ie=G5(te,re,ne),ae=!c.arrow&&J5(i)!=null&&re!==ie&&a.reference[m]/2-(re<te?E:ee)-h[m]/2<0,D=ae?re<te?re-te:re-ne:0;return{[p]:f[p]+D,data:{[p]:ie,centerOffset:re-ie-D,...ae&&{alignmentOffset:D}},reset:ae}}});function Qae(e,t,n){return(e?[...n.filter(t=>J5(t)===e),...n.filter(t=>J5(t)!==e)]:n.filter(e=>q5(e)===e)).filter(n=>e?J5(n)===e||(t?e7(n)!==n:!1):!0)}var $ae=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=z5,autoAlignment:u=!0,...d}=K5(e,t),f=c!==void 0||l===z5?Qae(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=$5(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[q5(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=J5(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,J5(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},eoe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=K5(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q5(r),_=Z5(o),v=q5(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[r7(o)]:Hae(o)),x=p!==`none`;!d&&x&&b.push(...Kae(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=$5(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Z5(t))||T.every(e=>Z5(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Z5(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function s7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c7(e){return L5.some(t=>e[t]>=0)}var toe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=K5(e,t);switch(i){case`referenceHidden`:{let e=s7(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c7(e)}}}case`escaped`:{let e=s7(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:c7(e)}}}default:return{}}}}};function l7(e){let t=B5(...e.map(e=>e.left)),n=B5(...e.map(e=>e.top)),r=V5(...e.map(e=>e.right)),i=V5(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function noe(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>a7(l7(e)))}var roe=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=K5(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=noe(u),f=a7(l7(u)),p=i7(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Z5(n)===`y`){let e=d[0],t=d[d.length-1],r=q5(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=q5(n)===`left`,t=V5(...d.map(e=>e.right)),r=B5(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},u7=new Set([`left`,`top`]);async function ioe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q5(n),s=J5(n),c=Z5(n)===`y`,l=u7.has(o)?-1:1,u=a&&c?-1:1,d=K5(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var aoe=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ioe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ooe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=K5(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Z5(q5(i)),p=Y5(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=G5(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=G5(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},soe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=K5(e,t),u={x:n,y:r},d=Z5(i),f=Y5(d),p=u[f],m=u[d],h=K5(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=u7.has(q5(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},coe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=K5(e,t),u=await o.detectOverflow(t,l),d=q5(i),f=J5(i),p=Z5(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=B5(h-u[g],v),x=B5(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=V5(u.left,0),t=V5(u.right,0),n=V5(u.top,0),r=V5(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:V5(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:V5(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function d7(){return typeof window<`u`}function f7(e){return h7(e)?(e.nodeName||``).toLowerCase():`#document`}function p7(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function m7(e){return((h7(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function h7(e){return d7()?e instanceof Node||e instanceof p7(e).Node:!1}function g7(e){return d7()?e instanceof Element||e instanceof p7(e).Element:!1}function _7(e){return d7()?e instanceof HTMLElement||e instanceof p7(e).HTMLElement:!1}function v7(e){return!d7()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof p7(e).ShadowRoot}function y7(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=E7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function loe(e){return/^(table|td|th)$/.test(f7(e))}function b7(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var uoe=/transform|translate|scale|rotate|perspective|filter/,doe=/paint|layout|strict|content/,x7=e=>!!e&&e!==`none`,S7;function C7(e){let t=g7(e)?E7(e):e;return x7(t.transform)||x7(t.translate)||x7(t.scale)||x7(t.rotate)||x7(t.perspective)||!w7()&&(x7(t.backdropFilter)||x7(t.filter))||uoe.test(t.willChange||``)||doe.test(t.contain||``)}function foe(e){let t=O7(e);for(;_7(t)&&!T7(t);){if(C7(t))return t;if(b7(t))return null;t=O7(t)}return null}function w7(){return S7??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),S7}function T7(e){return/^(html|body|#document)$/.test(f7(e))}function E7(e){return p7(e).getComputedStyle(e)}function D7(e){return g7(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O7(e){if(f7(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||v7(e)&&e.host||m7(e);return v7(t)?t.host:t}function k7(e){let t=O7(e);return T7(t)?e.ownerDocument?e.ownerDocument.body:e.body:_7(t)&&y7(t)?t:k7(t)}function A7(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=k7(e),i=r===e.ownerDocument?.body,a=p7(r);if(i){let e=j7(a);return t.concat(a,a.visualViewport||[],y7(r)?r:[],e&&n?A7(e):[])}else return t.concat(r,A7(r,[],n))}function j7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M7(e){let t=E7(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=_7(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=H5(n)!==a||H5(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function N7(e){return g7(e)?e:e.contextElement}function P7(e){let t=N7(e);if(!_7(t))return W5(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=M7(t),o=(a?H5(n.width):n.width)/r,s=(a?H5(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var poe=W5(0);function F7(e){let t=p7(e);return!w7()||!t.visualViewport?poe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function moe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==p7(e)?!1:t}function I7(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=N7(e),o=W5(1);t&&(r?g7(r)&&(o=P7(r)):o=P7(e));let s=moe(a,n,r)?F7(a):W5(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=p7(a),t=r&&g7(r)?p7(r):r,n=e,i=j7(n);for(;i&&r&&t!==n;){let e=P7(i),t=i.getBoundingClientRect(),r=E7(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=p7(i),i=j7(n)}}return a7({width:u,height:d,x:c,y:l})}function L7(e,t){let n=D7(e).scrollLeft;return t?t.left+n:I7(m7(e)).left+n}function R7(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-L7(e,n),y:n.top+t.scrollTop}}function hoe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=m7(r),s=t?b7(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W5(1),u=W5(0),d=_7(r);if((d||!d&&!a)&&((f7(r)!==`body`||y7(o))&&(c=D7(r)),d)){let e=I7(r);l=P7(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?R7(o,c):W5(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function goe(e){return Array.from(e.getClientRects())}function _oe(e){let t=m7(e),n=D7(e),r=e.ownerDocument.body,i=V5(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=V5(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+L7(e),s=-n.scrollTop;return E7(r).direction===`rtl`&&(o+=V5(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var z7=25;function voe(e,t){let n=p7(e),r=m7(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=w7();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=L7(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=z7&&(a-=o)}else l<=z7&&(a+=l);return{width:a,height:o,x:s,y:c}}function yoe(e,t){let n=I7(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=_7(e)?P7(e):W5(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function B7(e,t,n){let r;if(t===`viewport`)r=voe(e,n);else if(t===`document`)r=_oe(m7(e));else if(g7(t))r=yoe(t,n);else{let n=F7(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return a7(r)}function V7(e,t){let n=O7(e);return n===t||!g7(n)||T7(n)?!1:E7(n).position===`fixed`||V7(n,t)}function boe(e,t){let n=t.get(e);if(n)return n;let r=A7(e,[],!1).filter(e=>g7(e)&&f7(e)!==`body`),i=null,a=E7(e).position===`fixed`,o=a?O7(e):e;for(;g7(o)&&!T7(o);){let t=E7(o),n=C7(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||y7(o)&&!n&&V7(e,o))?r=r.filter(e=>e!==o):i=t,o=O7(o)}return t.set(e,r),r}function xoe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?b7(t)?[]:boe(t,this._c):[].concat(n),r],o=B7(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=B7(t,a[e],i);s=V5(n.top,s),c=B5(n.right,c),l=B5(n.bottom,l),u=V5(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Soe(e){let{width:t,height:n}=M7(e);return{width:t,height:n}}function Coe(e,t,n){let r=_7(t),i=m7(t),a=n===`fixed`,o=I7(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W5(0);function l(){c.x=L7(i)}if(r||!r&&!a)if((f7(t)!==`body`||y7(i))&&(s=D7(t)),r){let e=I7(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?R7(i,s):W5(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function H7(e){return E7(e).position===`static`}function U7(e,t){if(!_7(e)||E7(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return m7(e)===n&&(n=n.ownerDocument.body),n}function W7(e,t){let n=p7(e);if(b7(e))return n;if(!_7(e)){let t=O7(e);for(;t&&!T7(t);){if(g7(t)&&!H7(t))return t;t=O7(t)}return n}let r=U7(e,t);for(;r&&loe(r)&&H7(r);)r=U7(r,t);return r&&T7(r)&&H7(r)&&!C7(r)?n:r||foe(e)||n}var woe=async function(e){let t=this.getOffsetParent||W7,n=this.getDimensions,r=await n(e.floating);return{reference:Coe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Toe(e){return E7(e).direction===`rtl`}var Eoe={convertOffsetParentRelativeRectToViewportRelativeRect:hoe,getDocumentElement:m7,getClippingRect:xoe,getOffsetParent:W7,getElementRects:woe,getClientRects:goe,getDimensions:Soe,getScale:P7,isElement:g7,isRTL:Toe};function G7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Doe(e,t){let n=null,r,i=m7(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=U5(d),h=U5(i.clientWidth-(u+f)),g=U5(i.clientHeight-(d+p)),_=U5(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:V5(0,B5(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!G7(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function K7(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=N7(e),u=i||a?[...l?A7(l):[],...t?A7(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Doe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?I7(e):null;c&&g();function g(){let t=I7(e);h&&!G7(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var q7=aoe,Ooe=$ae,J7=ooe,Y7=eoe,X7=coe,Z7=toe,Q7=Zae,koe=roe,Aoe=soe,$7=(e,t,n)=>{let r=new Map,i={platform:Eoe,...n},a={...i.platform,_c:r};return Xae(e,t,{...i,platform:a})},e9=typeof document<`u`?E.useLayoutEffect:function(){};function t9(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!t9(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!t9(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function n9(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r9(e,t){let n=n9(e);return Math.round(t*n)/n}function i9(e){let t=E.useRef(e);return e9(()=>{t.current=e}),t}function joe(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=E.useState(r);t9(f,r)||p(r);let[m,h]=E.useState(null),[g,_]=E.useState(null),v=E.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=E.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=E.useRef(null),C=E.useRef(null),w=E.useRef(u),T=c!=null,ee=i9(c),te=i9(i),ne=i9(l),re=E.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),$7(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ne.current!==!1};ie.current&&!t9(w.current,t)&&(w.current=t,Ao.flushSync(()=>{d(t)}))})},[f,t,n,te,ne]);e9(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ie=E.useRef(!1);e9(()=>(ie.current=!0,()=>{ie.current=!1}),[]),e9(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,re);re()}},[b,x,re,ee,T]);let ae=E.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=E.useMemo(()=>({reference:b,floating:x}),[b,x]),oe=E.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=r9(D.floating,u.x),r=r9(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...n9(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:re,refs:ae,elements:D,floatingStyles:oe}),[u,re,ae,D,oe])}var Moe=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Q7({element:r.current,padding:i}).fn(n):r?Q7({element:r,padding:i}).fn(n):{}}}},Noe=(e,t)=>{let n=q7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Poe=(e,t)=>{let n=J7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Foe=(e,t)=>({fn:Aoe(e).fn,options:[e,t]}),Ioe=(e,t)=>{let n=Y7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Loe=(e,t)=>{let n=X7(e);return{name:n.name,fn:n.fn,options:[e,t]}},Roe=(e,t)=>{let n=Z7(e);return{name:n.name,fn:n.fn,options:[e,t]}},zoe=(e,t)=>{let n=Moe(e);return{name:n.name,fn:n.fn,options:[e,t]}},Boe=`Arrow`,a9=E.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,ko.jsx)(m.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,ko.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});a9.displayName=Boe;var Voe=a9,o9=`Popper`,[s9,c9]=g(o9),[Hoe,l9]=s9(o9),u9=e=>{let{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return(0,ko.jsx)(Hoe,{scope:t,anchor:r,onAnchorChange:i,children:n})};u9.displayName=o9;var d9=`PopperAnchor`,f9=E.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=l9(d9,n),o=E.useRef(null),s=l(t,o),c=E.useRef(null);return E.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,ko.jsx)(m.div,{...i,ref:s})});f9.displayName=d9;var p9=`PopperContent`,[Uoe,Woe]=s9(p9),m9=E.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:g=`optimized`,onPlaced:v,...b}=e,x=l9(p9,n),[S,C]=E.useState(null),w=l(t,e=>C(e)),[T,ee]=E.useState(null),te=_(T),ne=te?.width??0,re=te?.height??0,ie=r+(a===`center`?``:`-`+a),ae=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],oe=D.length>0,se={padding:ae,boundary:D.filter(Koe),altBoundary:oe},{refs:ce,floatingStyles:le,placement:ue,isPositioned:de,middlewareData:fe}=joe({strategy:`fixed`,placement:ie,whileElementsMounted:(...e)=>K7(...e,{animationFrame:g===`always`}),elements:{reference:x.anchor},middleware:[Noe({mainAxis:i+re,alignmentAxis:o}),c&&Poe({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Foe():void 0,...se}),c&&Ioe({...se}),Loe({...se,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),T&&zoe({element:T,padding:s}),qoe({arrowWidth:ne,arrowHeight:re}),p&&Roe({strategy:`referenceHidden`,...se})]}),[pe,me]=_9(ue),he=h(v);y(()=>{de&&he?.()},[de,he]);let ge=fe.arrow?.x,_e=fe.arrow?.y,ve=fe.arrow?.centerOffset!==0,[ye,be]=E.useState();return y(()=>{S&&be(window.getComputedStyle(S).zIndex)},[S]),(0,ko.jsx)(`div`,{ref:ce.setFloating,"data-radix-popper-content-wrapper":``,style:{...le,transform:de?le.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ye,"--radix-popper-transform-origin":[fe.transformOrigin?.x,fe.transformOrigin?.y].join(` `),...fe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,ko.jsx)(Uoe,{scope:n,placedSide:pe,onArrowChange:ee,arrowX:ge,arrowY:_e,shouldHideArrow:ve,children:(0,ko.jsx)(m.div,{"data-side":pe,"data-align":me,...b,ref:w,style:{...b.style,animation:de?void 0:`none`}})})})});m9.displayName=p9;var h9=`PopperArrow`,Goe={top:`bottom`,right:`left`,bottom:`top`,left:`right`},g9=E.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Woe(h9,n),a=Goe[i.placedSide];return(0,ko.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,ko.jsx)(Voe,{...r,ref:t,style:{...r.style,display:`block`}})})});g9.displayName=h9;function Koe(e){return e!==null}var qoe=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=_9(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function _9(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var v9=u9,y9=f9,b9=m9,x9=g9,[S9,Joe]=g(`Tooltip`,[c9]),C9=c9(),w9=`TooltipProvider`,Yoe=700,T9=`tooltip.open`,[Xoe,E9]=S9(w9),D9=e=>{let{__scopeTooltip:t,delayDuration:n=Yoe,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=E.useRef(!0),s=E.useRef(!1),c=E.useRef(0);return E.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,ko.jsx)(Xoe,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:E.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};D9.displayName=w9;var O9=`Tooltip`,[Zoe,k9]=S9(O9),A9=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=E9(O9,e.__scopeTooltip),l=C9(t),[u,d]=E.useState(null),f=v(),m=E.useRef(0),h=o??c.disableHoverableContent,g=s??c.delayDuration,_=E.useRef(!1),[y,b]=p({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(T9))):c.onClose(),a?.(e)},caller:O9}),x=E.useMemo(()=>y?_.current?`delayed-open`:`instant-open`:`closed`,[y]),S=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,b(!0)},[b]),C=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),w=E.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,b(!0),m.current=0},g)},[g,b]);return E.useEffect(()=>()=>{m.current&&=(window.clearTimeout(m.current),0)},[]),(0,ko.jsx)(v9,{...l,children:(0,ko.jsx)(Zoe,{scope:t,contentId:f,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:E.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:E.useCallback(()=>{h?C():(window.clearTimeout(m.current),m.current=0)},[C,h]),onOpen:S,onClose:C,disableHoverableContent:h,children:n})})};A9.displayName=O9;var j9=`TooltipTrigger`,M9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=k9(j9,n),a=E9(j9,n),o=C9(n),s=l(t,E.useRef(null),i.onTriggerChange),c=E.useRef(!1),u=E.useRef(!1),f=E.useCallback(()=>c.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,ko.jsx)(y9,{asChild:!0,...o,children:(0,ko.jsx)(m.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:d(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:d(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:d(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:d(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:d(e.onBlur,i.onClose),onClick:d(e.onClick,i.onClose)})})});M9.displayName=j9;var N9=`TooltipPortal`,[Qoe,$oe]=S9(N9,{forceMount:void 0}),P9=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=k9(N9,t);return(0,ko.jsx)(Qoe,{scope:t,forceMount:n,children:(0,ko.jsx)(u,{present:n||a.open,children:(0,ko.jsx)(f,{asChild:!0,container:i,children:r})})})};P9.displayName=N9;var F9=`TooltipContent`,I9=E.forwardRef((e,t)=>{let n=$oe(F9,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=k9(F9,e.__scopeTooltip);return(0,ko.jsx)(u,{present:r||o.open,children:o.disableHoverableContent?(0,ko.jsx)(L9,{side:i,...a,ref:t}):(0,ko.jsx)(ese,{side:i,...a,ref:t})})}),ese=E.forwardRef((e,t)=>{let n=k9(F9,e.__scopeTooltip),r=E9(F9,e.__scopeTooltip),i=E.useRef(null),a=l(t,i),[o,s]=E.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=E.useCallback(()=>{s(null),f(!1)},[f]),m=E.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ase(r,ise(r,n.getBoundingClientRect())),a=ose(t.getBoundingClientRect());s(cse([...i,...a])),f(!0)},[f]);return E.useEffect(()=>()=>p(),[p]),E.useEffect(()=>{if(c&&d){let e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[c,d,m,p]),E.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),i=!sse(n,o);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,d,o,u,p]),(0,ko.jsx)(L9,{...e,ref:a})}),[tse,nse]=S9(O9,{isInside:!1}),rse=b(`TooltipContent`),L9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=k9(F9,n),u=C9(n),{onClose:d}=l;return E.useEffect(()=>(document.addEventListener(T9,d),()=>document.removeEventListener(T9,d)),[d]),E.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,ko.jsx)(c,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,ko.jsxs)(b9,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,ko.jsx)(rse,{children:r}),(0,ko.jsx)(tse,{scope:n,isInside:!0,children:(0,ko.jsx)(Bae,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});I9.displayName=F9;var R9=`TooltipArrow`,z9=E.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=C9(n);return nse(R9,n).isInside?null:(0,ko.jsx)(x9,{...i,...r,ref:t})});z9.displayName=R9;function ise(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ase(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ose(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function sse(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function cse(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),lse(t)}function lse(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var use=D9,dse=A9,fse=M9,pse=P9,mse=I9,hse=z9;function gse(e){let t=(0,jo.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,ko.jsx)(use,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function _se(e){let t=(0,jo.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,ko.jsx)(dse,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function vse(e){let t=(0,jo.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,ko.jsx)(fse,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function yse(e){let t=(0,jo.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?0:a,c;t[5]===r?c=t[6]:(c=s(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[5]=r,t[6]=c);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,ko.jsx)(hse,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==c?(u=(0,ko.jsx)(pse,{children:(0,ko.jsxs)(mse,{"data-slot":`tooltip-content`,sideOffset:o,className:c,...i,children:[n,l]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=c,t[12]=u):u=t[12],u}function B9(e){if(typeof e!=`object`||!e)return;let t=e;if(typeof t.title==`string`&&t.title.length>0)return t.title}function bse(e){return e.kind===`asset`}function xse(e){return e.kind===`document`}function Sse(e){return e.kind===`folder`}function Cse(e){if(!e)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=1;e<t.length;e++)n.push(t.slice(0,e).join(`/`));return n}function wse(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):``}function Tse(e,t=!1){return e.filter(e=>{let n=e.docName??e.path??``;return n===``?!1:t?!0:!n.split(`/`).some(e=>e.startsWith(`.`))})}var V9=null,H9=new Set;function U9(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ese(e,t){return e===null?!1:e===t?!0:U9(e.pages,t.pages)&&U9(e.folderPaths,t.folderPaths)&&U9(e.assetPaths??new Set,t.assetPaths??new Set)&&Dse(e.pageIcons,t.pageIcons)}function Dse(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function Ose(e,t){let n=new Map;for(let r of e){let e=t(r);e&&!n.has(e)&&n.set(e,r)}return n}function kse(e,t){let n=new Map,r=[...e].sort((e,t)=>e.localeCompare(t));for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function Ase(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function jse(){return V9}function Mse(e){if(!Ese(V9,e)){V9=e;for(let t of Array.from(H9))try{t(e)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function Nse(e){if(H9.add(e),V9!==null)try{e(V9)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{H9.delete(e)}}var W9=`open-knowledge:documents-changed`,Pse=new Set(p5.options);function G9(e){return e===void 0||!Array.isArray(e)?[`files`]:[...new Set(e.filter(e=>Pse.has(e)))]}function Fse(e=[`files`]){window.dispatchEvent(new CustomEvent(W9,{detail:{channels:G9(e)}}))}function K9(e){let t=t=>{e(G9(t instanceof CustomEvent?t.detail?.channels:void 0))};return window.addEventListener(W9,t),()=>window.removeEventListener(W9,t)}var q9=`open-knowledge:templates-changed`;function Ise(){window.dispatchEvent(new CustomEvent(q9))}function Lse(e){let t=()=>e();return window.addEventListener(q9,t),()=>window.removeEventListener(q9,t)}function J9(e){return e.trim().replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\.mdx?$/i,``)}function Rse(e){let t=J9(e);return t?`${t}.md`:`untitled.md`}function zse(e){let t=J9(e),n=t.lastIndexOf(`/`);return{initialDir:n>0?t.slice(0,n):``,suggestedName:`${n>=0?t.slice(n+1):t||`untitled`}.md`}}function Bse(e){let t=e.trim();return{normalizedTarget:J9(t).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function Y9(e){let t=new Set;for(let n of e)for(let e of Cse(n))t.add(e);return t}function Vse(e,t){if(!t)return;let n=t5(e);if(n)return t.get(n)}function Hse(e,t){if(!t||e.includes(`/`))return;let n=t5(e);if(n)return t.get(n)}function Use(e,t){let{normalizedTarget:n,expectsFolder:r}=Bse(e);if(!n)return{kind:`missing`,target:n};if(!r&&t.pages.has(n))return{kind:`doc`,target:n,docName:n};if(!r){let e=Vse(n,t.pagesBySlug);if(e)return{kind:`doc`,target:e,docName:e}}let i=`${n}/index`;if(t.pages.has(i))return{kind:`folder-index`,target:n,folderPath:n,docName:i,noteKind:`canonical-index`};let a=n.split(`/`).pop(),o=a?`${n}/${a}`:null;if(o&&t.pages.has(o))return{kind:`folder-index`,target:n,folderPath:n,docName:o,noteKind:`legacy-folder-note`};if(!r){let e=Hse(n,t.pagesByBasename);if(e)return{kind:`doc`,target:e,docName:e}}return(t.folderPaths??Y9(t.pages)).has(n)?{kind:`folder`,target:n,folderPath:n}:{kind:`missing`,target:n}}function Wse(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function X9(e,t,n=l$){return typeof t!=`number`||!u$(t,n)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:n}}function Gse(e,t,n=l$){return e.kind!==`doc`&&e.kind!==`folder-index`?e:X9(e.docName,t.get(e.docName)?.size,n)??e}function Kse(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`folder`:return null}}var Z9=(0,E.createContext)(null);function qse(e,t){if(t.size===0)return new Set(e);let n=new Set(e);for(let e of t)n.add(e);return n}function Jse(e,t){if(e.size===0)return new Set;let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}function Yse(e,t){let n=new Map(e);for(let e of t)n.has(e)||n.set(e,e);return n}async function Xse(){let e=await fetch(`/api/pages`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(B9(t)??`/api/pages responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.pages)?t.pages:[]}async function Zse(){let e=await fetch(`/api/documents`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(B9(t)??`/api/documents responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.documents)?{assetPaths:t.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),folderPaths:t.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path)}:{assetPaths:[],folderPaths:[]}}function Q9(e){console.error(`[PageListContext] Failed to load pages:`,e)}function Qse(e){console.warn(`[PageListContext] Failed to load referenced assets:`,e)}function $se(e){let t=(0,jo.c)(49),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,E.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,t[1]=o):o=t[1];let[s,c]=(0,E.useState)(o),l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=new Map,t[2]=l):l=t[2];let[u,d]=(0,E.useState)(l),f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Set,t[3]=f):f=t[3];let[p,m]=(0,E.useState)(f),h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=new Set,t[4]=h):h=t[4];let[g,_]=(0,E.useState)(h),v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=new Set,t[5]=v):v=t[5];let[y,b]=(0,E.useState)(v),[x,S]=(0,E.useState)(!0),[C,w]=(0,E.useState)(null),T=(0,E.useRef)(0),ee;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ee=function(){let e=T.current+=1;Promise.all([Xse(),Zse().catch(rce)]).then(t=>{let[n,r]=t;if(e!==T.current)return;let i=new Set(n.map(nce));a(i),c(new Map(n.map(tce))),d(new Map(n.map(ece))),m(new Set(r.assetPaths)),_(new Set(r.folderPaths)),b(e=>Jse(e,i)),w(null)}).catch(t=>{e===T.current&&(Q9(t),w(t instanceof Error?t.message:`Failed to load pages`))}).finally(()=>{e===T.current&&S(!1)})},t[6]=ee):ee=t[6];let te=ee,ne;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(ne=function(e){b(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n}),w(null)},t[7]=ne):ne=t[7];let re=ne,ie,ae;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>{te();let e=()=>{document.visibilityState===`visible`&&te()};window.addEventListener(`focus`,e),window.addEventListener(`visibilitychange`,e);let t=K9(e=>{e.includes(`files`)&&te()});return()=>{window.removeEventListener(`focus`,e),window.removeEventListener(`visibilitychange`,e),t()}},ie=[],t[8]=ie,t[9]=ae):(ie=t[8],ae=t[9]),(0,E.useEffect)(ae,ie);let D,oe,se,ce,le,ue,de;if(t[10]!==y||t[11]!==p||t[12]!==g||t[13]!==u||t[14]!==s||t[15]!==i){le=qse(i,y);let e;t[23]!==y||t[24]!==s?(e=Yse(s,y),t[23]=y,t[24]=s,t[25]=e):e=t[25],ce=e,se=u,D=p,oe=new Set([...Y9(le),...g]),ue=Ose(le,t5),de=kse(le,t5),t[10]=y,t[11]=p,t[12]=g,t[13]=u,t[14]=s,t[15]=i,t[16]=D,t[17]=oe,t[18]=se,t[19]=ce,t[20]=le,t[21]=ue,t[22]=de}else D=t[16],oe=t[17],se=t[18],ce=t[19],le=t[20],ue=t[21],de=t[22];let fe=de,pe;t[26]===u?pe=t[27]:(pe=Ase(u),t[26]=u,t[27]=pe);let me=pe,he,ge;t[28]!==D||t[29]!==oe||t[30]!==me||t[31]!==le||t[32]!==fe||t[33]!==ue?(he=()=>{Mse({pages:le,folderPaths:oe,pagesBySlug:ue,pagesByBasename:fe,assetPaths:D,pageIcons:me})},ge=[le,oe,ue,fe,D,me],t[28]=D,t[29]=oe,t[30]=me,t[31]=le,t[32]=fe,t[33]=ue,t[34]=he,t[35]=ge):(he=t[34],ge=t[35]),(0,E.useEffect)(he,ge);let _e;t[36]!==D||t[37]!==C||t[38]!==oe||t[39]!==x||t[40]!==se||t[41]!==ce||t[42]!==le||t[43]!==fe||t[44]!==ue?(_e={pages:le,pagesBySlug:ue,pagesByBasename:fe,pageTitles:ce,pageMeta:se,folderPaths:oe,assetPaths:D,loading:x,error:C,refetch:te,addPage:re},t[36]=D,t[37]=C,t[38]=oe,t[39]=x,t[40]=se,t[41]=ce,t[42]=le,t[43]=fe,t[44]=ue,t[45]=_e):_e=t[45];let ve;return t[46]!==n||t[47]!==_e?(ve=(0,ko.jsx)(Z9,{value:_e,children:n}),t[46]=n,t[47]=_e,t[48]=ve):ve=t[48],ve}function ece(e){return[e.docName,{size:e.size,modified:e.modified,docExt:e.docExt,icon:e.icon}]}function tce(e){return[e.docName,e.title]}function nce(e){return e.docName}function rce(e){return Qse(e),{assetPaths:[],folderPaths:[]}}function ice(){let e=(0,E.use)(Z9);if(!e)throw Error(`usePageList must be used within <PageListProvider />`);return e}function ace(e){if(e.startsWith($9)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=uce(t),r=n>=0?t.slice(0,n):t;if(!r)return null;try{return r.split(`/`).map(decodeURIComponent).join(`/`)}catch{return r}}function oce(e){if(e.startsWith($9)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=t.indexOf(`?`),r=t.indexOf(`#`);if(n>=0&&(r<0||n<r)){let e=r>=0?r:t.length,i=new URLSearchParams(t.slice(n+1,e)).get(`anchor`);if(i)return i}if(r<0)return null;let i=t.slice(r+1);if(!i)return null;try{return decodeURIComponent(i)}catch{return i}}function sce(e,t){let n=`#/${e}`;return t?`${n}?anchor=${encodeURIComponent(t)}`:n}function cce(e){return e.endsWith(`.mdx`)?e.slice(0,-4):e.endsWith(`.md`)?e.slice(0,-3):e}function lce(e,t){let n=e.replace(/^\/+|\/+$/g,``),r=n?`#/${n}/`:`#/`;return t?`${r}?anchor=${encodeURIComponent(t)}`:r}var $9=`#/__asset__/`;function uce(e){let t=e.indexOf(`?`),n=e.indexOf(`#`);return t<0?n:n<0?t:Math.min(t,n)}function dce(e){if(!e.startsWith($9))return null;let t=e.slice(12);if(!t)return null;try{return t.split(`/`).map(decodeURIComponent).join(`/`)}catch{return t}}function fce(e){return`${$9}${e.split(`/`).map(encodeURIComponent).join(`/`)}`}var pce=n(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),mce=n(((e,t)=>{var n=pce();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),hce=n(((e,t)=>{t.exports=mce()()}));export{y$ as $,n$ as $n,XT as $r,b1 as $t,B9 as A,_f as Ai,DQ as An,G8 as Ar,q1 as At,Q7 as B,A as Bi,nae as Bn,lae as Br,lie as Bt,jse as C,Tp as Ci,Y1 as Cn,K1 as Cr,Aie as Ct,bse as D,R as Di,dae as Dn,J2 as Dr,f$ as Dt,Tse as E,Hp as Ei,uae as En,Qre as Er,Tie as Et,y9 as F,yu as Fi,r0 as Fn,u4 as Fr,pie as Ft,Z7 as G,oe as Gi,V1 as Gn,X0 as Gr,_$ as Gt,K7 as H,he as Hi,Tae as Hn,VZ as Hr,y1 as Ht,x9 as I,pu as Ii,v0 as In,XZ as Ir,C$ as It,J7 as J,X8 as Jn,Ene as Jr,Eie as Jt,koe as K,D as Ki,M5 as Kn,n5 as Kr,v$ as Kt,b9 as L,wu as Li,yae as Ln,YZ as Lr,Q$ as Lt,yse as M,I as Mi,vae as Mn,n4 as Mr,oie as Mt,gse as N,sd as Ni,i0 as Nn,Lae as Nr,T5 as Nt,xse as O,bp as Oi,Nae as On,U$ as Or,D$ as Ot,vse as P,L as Pi,n0 as Pn,Y0 as Pr,W2 as Pt,_ae as Q,z1 as Qn,WT as Qr,K0 as Qt,v9 as R,F as Ri,pae as Rn,Fae as Rr,$$ as Rt,Lse as S,gv as Si,J1 as Sn,i1 as Sr,k$ as St,wse as T,zp as Ti,Iae as Tn,$re as Tr,nie as Tt,$7 as U,me as Ui,m$ as Un,Z$ as Ur,h$ as Ut,Ooe as V,Ie as Vi,tae as Vn,W1 as Vr,Ore as Vt,Y7 as W,pe as Wi,t$ as Wn,t5 as Wr,fie as Wt,F5 as X,Bre as Xn,jT as Xr,U0 as Xt,X7 as Y,bae as Yn,Sne as Yr,H0 as Yt,gae as Z,Aae as Zn,fT as Zr,q0 as Zt,Rse as _,Wb as _i,Mae as _n,RZ as _r,w5 as _t,cce as a,gS as ai,O0 as an,W4 as ar,qie as at,Ise as b,N_ as bi,BQ as bn,g$ as br,Cie as bt,lce as c,ub as ci,I0 as cn,q4 as cr,Jie as ct,Kse as d,Sb as di,W0 as dn,U4 as dr,TQ as dt,VT as ei,kie as en,q2 as er,d$ as et,Wse as f,Hb as fi,w$ as fn,J4 as fr,s$ as ft,zse as g,lb as gi,die as gn,P5 as gr,c$ as gt,Gse as h,iy as hi,U1 as hn,u$ as hr,a$ as ht,ace as i,yS as ii,V0 as in,$4 as ir,iie as it,_se as j,Qd as ji,OQ as jn,R1 as jr,G1 as jt,Sse as k,z as ki,Pae as kn,XQ as kr,e$ as kt,$se as l,yb as li,P1 as ln,X4 as lr,Yie as lt,Use as m,Dy as mi,B1 as mn,FZ as mr,o$ as mt,oce as n,Px as ni,r1 as nn,Sae as nr,yie as nt,fce as o,rS as oi,N0 as on,G4 as or,Zie as ot,X9 as p,iS as pi,j$ as pn,Y4 as pr,i$ as pt,q7 as q,kZ as qn,g5 as qr,Oie as qt,dce as r,Vb as ri,r$ as rn,Q4 as rr,bie as rt,sce as s,Xy as si,M0 as sn,Z4 as sr,Xie as st,hce as t,Yx as ti,t1 as tn,YQ as tr,E$ as tt,ice as u,xb as ui,jie as un,K4 as ur,Kie as ut,J9 as v,hS as vi,PQ as vn,JQ as vr,W$ as vt,Nse as w,B as wi,Z1 as wn,a4 as wr,l5 as wt,K9 as x,I_ as xi,G0 as xn,a1 as xr,A$ as xt,Fse as y,Qx as yi,SQ as yn,r4 as yr,wie as yt,c9 as z,N as zi,z4 as zn,Rae as zr,l1 as zt};