@inkeep/open-knowledge 0.86.19-beta.1 → 0.86.19-beta.3
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.
- package/dist/cli.mjs +6 -6
- package/dist/constants-D__Dkzs1.mjs +1 -0
- package/dist/{dist-DyVcFCkj.mjs → dist-CJb4z7Cx.mjs} +1 -1
- package/dist/{dist-DRgSOIS6.mjs → dist-CP1cIPST.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/init-BJEVSZ5Z.mjs +1 -0
- package/dist/{init-Cc3pxAas.mjs → init-XYCfFXC2.mjs} +2 -2
- package/dist/{launch-json-removal-Ca30Nixh.mjs → launch-json-removal-BeUprPXt.mjs} +1 -1
- package/dist/loader-Bxzbqy9N.mjs +1 -0
- package/dist/{loader-BwPvEjuE.mjs → loader-C3aJ7pno.mjs} +1 -1
- package/dist/native/native-config.win32-arm64-msvc.node +0 -0
- package/dist/native/native-config.win32-x64-msvc.node +0 -0
- package/dist/{open-browser-CFW5reH2.mjs → open-browser-D2QoIpKk.mjs} +1 -1
- package/dist/preview-DOE3RMB2.mjs +1 -0
- package/dist/{preview-BKERSD2q.mjs → preview-rfRPPmZw.mjs} +1 -1
- package/dist/public/assets/{AccountSection-DlWsbV8D.js → AccountSection-DojYWsvF.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-DkGHz9Ku.js → ActivityModeContent-5eDMFCds.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-D__sehWQ.js → AddPropertiesButton-2uz1_eQ0.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-xuZ1KudZ.js → AgentDiffPane-CyTVCF2i.js} +1 -1
- package/dist/public/assets/{AppMenubar-ClplcAeM.js → AppMenubar-vPHVy2jk.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-CHLjnxc0.js → AttachmentsSection-kXSdmpS8.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BpHUFt_h.js → CodeMirrorPropInput-D_sfUFdL.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-wbtHcBqr.js → ContentRulesSection-DOJqWd7Z.js} +1 -1
- package/dist/public/assets/{DocumentContext-CQ2e0uie.js → DocumentContext-C7mE6mu6.js} +2 -2
- package/dist/public/assets/{EditorModeToggle-B_E4wnhm.js → EditorModeToggle-4mNDd2Qr.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-BcoRuAVp.js → ExcalidrawDocEditor-Bpb19a7u.js} +1 -1
- package/dist/public/assets/FeedbackForm-CrGH6Sjh.js +1 -0
- package/dist/public/assets/{ImportSkillDialog-lBL0HNJp.js → ImportSkillDialog-DDmDFsFX.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CULpqlH7.js → LinkPreviewsSection-DC-XUEKY.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-6YyaXnFA.js → LintConfigEditor-D0EaXTzh.js} +1 -1
- package/dist/public/assets/{LintingSection-DSwALvf4.js → LintingSection-8rk1N2xf.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BCSB1r7p.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-vvyx0y7Q.js → ManagedArtifactProperties-BIuX58nK.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-BqqrJSxz.js → MermaidDocEditor-Mzy0bDbh.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-CJ-k8kEB.js → NetworkAccessSection-CbNihszz.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-Cm34goFj.js → PropertyDisplayRow-CIGM7uEu.js} +1 -1
- package/dist/public/assets/{PublishToGitHubDialog-jx0Tzybl.js → PublishToGitHubDialog-Cyyc-7WZ.js} +1 -1
- package/dist/public/assets/ReportBugMenuTrigger-CvL5wd-7.js +1 -0
- package/dist/public/assets/{SchemaConfigEditor-co1_VbGJ.js → SchemaConfigEditor-DIMVYCnO.js} +1 -1
- package/dist/public/assets/{SearchSection-CU6mVIBD.js → SearchSection-OsK3-bM9.js} +1 -1
- package/dist/public/assets/{SessionsHost-Ve1-rpr4.js → SessionsHost-ddZzbbYD.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Du3F7eab.js → SettingsDialogBody-DahMDMVc.js} +2 -2
- package/dist/public/assets/{ShareReceiveMissDialog-Bsh7llP0.js → ShareReceiveMissDialog-BVXdjnFS.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-Dg0uH9dc.js → SkillToolbarControls-CWy86npn.js} +1 -1
- package/dist/public/assets/{SourceEditor-BxraIyxO.js → SourceEditor-bEulpItb.js} +1 -1
- package/dist/public/assets/{SyncSection-CI62AsGJ.js → SyncSection-DW6x2wXm.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge--DiNAARL.js → SyncStatusBadge-CodPHi7k.js} +1 -1
- package/dist/public/assets/{TerminalSection-BWcfGvEV.js → TerminalSection-W882kbVI.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-BXHW_7B9.js → TerminalWindowApp-DQ04VIwE.js} +1 -1
- package/dist/public/assets/{TextDocEditor-C8zsOMpH.js → TextDocEditor-CzNAofgq.js} +1 -1
- package/dist/public/assets/ThreadView-ZvtUjW7G.js +28 -0
- package/dist/public/assets/{TimelineDiffPane-BScs4tYQ.js → TimelineDiffPane-QwIzI-70.js} +1 -1
- package/dist/public/assets/{client-version-Dyx1KpjP.js → client-version-DaqPNZrZ.js} +1 -1
- package/dist/public/assets/{comment-chips-BTYU41zd.js → comment-chips-CJoaS3Cr.js} +1 -1
- package/dist/public/assets/{config-provider-Bu33ODD8.js → config-provider-BZrRPx0L.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-CPZo2IhT.js → doc-undo-manager-CYWGW9IX.js} +1 -1
- package/dist/public/assets/{globals-Cr0S8PDH.css → globals-Cn_PZ-hh.css} +1 -1
- package/dist/public/assets/index-BSW8Oe5H.js +2209 -0
- package/dist/public/assets/{lint-plugins-Cv7WvUlN.js → lint-plugins-YpFY23BP.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-6bXbTZhv.js → pending-receive-nav-store-BAkqfwcI.js} +1 -1
- package/dist/public/assets/{preferred-session-events-BytmLBUB.js → preferred-session-events-Ixz9XkPb.js} +1 -1
- package/dist/public/assets/{progress-Ba4KJbjQ.js → progress-DZa81aer.js} +1 -1
- package/dist/public/assets/{selection-context-BdkqiHSg.js → selection-context-Dl0HvyD2.js} +1 -1
- package/dist/public/assets/{src-BKxD4aGX.js → src-DVnJ3yRP.js} +1 -1
- package/dist/public/assets/{telemetry-impl-lt4HgP_f.js → telemetry-impl-8tI6j9Yf.js} +1 -1
- package/dist/public/assets/{telemetry-startup-COAksO_l.js → telemetry-startup-DYXC3ZEO.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-Ceucd7lf.js → typing-burst-detector-NANAUeWK.js} +2 -2
- package/dist/public/assets/{uninstall-DFTOzPT_.js → uninstall-DBWFuFGF.js} +1 -1
- package/dist/public/assets/{use-activity-panel-ClZw0uAV.js → use-activity-panel-D7UDHbaB.js} +1 -1
- package/dist/public/assets/use-installed-clis-DVpPDztg.js +2 -0
- package/dist/public/assets/{use-open-skill-BufHQt2J.js → use-open-skill-CHcEq4yM.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-kUXuNyA3.js → use-terminal-enabled-CJC0W91S.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-DIXfdlmY.js → use-timeline-entry-diff-39zbjqC8.js} +1 -1
- package/dist/public/index.html +23 -23
- package/dist/public/uninstall.html +3 -3
- package/dist/{registry-probes-BzVs0MZl.mjs → registry-probes-BePFTC2o.mjs} +1 -1
- package/dist/{removal-file-path-DjVZJivF.mjs → removal-file-path-adczU7M3.mjs} +1 -1
- package/dist/{repair-launch-json-DaJc8F0u.mjs → repair-launch-json-BKBgRjgC.mjs} +1 -1
- package/dist/{repair-mcp-configs-GI1XgsXr.mjs → repair-mcp-configs-DLgaoj3b.mjs} +1 -1
- package/dist/src-BICtdUdy.mjs +1 -0
- package/dist/{src-CiJt-PQj.mjs → src-CaqFOBSF.mjs} +1 -1
- package/dist/start-DrVKuTk8.mjs +1 -0
- package/dist/{start-CNmN3UB5.mjs → start-smef5zYS.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-DTpS5DPL.mjs +0 -1
- package/dist/init-rFslisPX.mjs +0 -1
- package/dist/loader-Cy9oZb72.mjs +0 -1
- package/dist/preview-CJewZ-WB.mjs +0 -1
- package/dist/public/assets/FeedbackForm-DhJSsu3n.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-wzj7pm-b.js +0 -1
- package/dist/public/assets/ReportBugMenuTrigger-CAUKQKXn.js +0 -1
- package/dist/public/assets/ThreadView-CjKcF5Bj.js +0 -28
- package/dist/public/assets/index-DQZmjexO.js +0 -2209
- package/dist/public/assets/use-installed-clis-BopBqnEZ.js +0 -2
- package/dist/src-Dt5ff2eL.mjs +0 -1
- package/dist/start-CTAc0UYC.mjs +0 -1
- /package/dist/public/assets/{globals-DHDe92Ga.js → globals-nzGvH8Va.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{r}from"./dist-Nvb76hAm.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{t as a}from"./utils-CPqDy6Hr.js";import{a as o}from"./dist-CSCUSbQc.js";import{c as s,i as c,l,n as u,o as d}from"./dist-DTFuvKje.js";import{n as f,t as ee}from"./dist-uiDX6Nr9.js";import{n as te,r as p,t as m}from"./dist-BKgU0kag.js";import{_ as h,a as ne,c as re,d as ie,f as ae,g as oe,h as se,i as ce,l as le,m as g,n as ue,o as _,p as de,r as v,s as fe,t as y,u as b}from"./dist-d2WYntJB.js";import{t as pe}from"./check-B2OLRY33.js";import{t as me}from"./chevron-right-Bofu4lib.js";import{t as he}from"./app-menubar-gate-BY-AgMO4.js";import{n as ge}from"./single-file-mode-_W9sHrBm.js";import{n as _e,r as ve,t as ye}from"./platform-labels-CC-o2Aps.js";var x=e(n(),1),S=t(),C=`Menubar`,[w,T,be]=f(C),[E,xe]=s(C,[be,p]),D=h(),O=p(),[Se,k]=E(C),Ce=x.forwardRef((e,t)=>{let{__scopeMenubar:n,value:r,onValueChange:i,defaultValue:a,loop:o=!0,dir:s,...u}=e,d=ee(s),f=O(n),[p,m]=c({prop:r,onChange:i,defaultProp:a??``,caller:C}),[h,ne]=x.useState(null);return(0,S.jsx)(Se,{scope:n,value:p,onMenuOpen:x.useCallback(e=>{m(e),ne(e)},[m]),onMenuClose:x.useCallback(()=>m(``),[m]),onMenuToggle:x.useCallback(e=>{m(t=>t?``:e),ne(e)},[m]),dir:d,loop:o,children:(0,S.jsx)(w.Provider,{scope:n,children:(0,S.jsx)(w.Slot,{scope:n,children:(0,S.jsx)(te,{asChild:!0,...f,orientation:`horizontal`,loop:o,dir:d,currentTabStopId:h,onCurrentTabStopIdChange:ne,children:(0,S.jsx)(l.div,{role:`menubar`,...u,ref:t})})})})})});Ce.displayName=C;var A=`MenubarMenu`,[we,j]=E(A),Te=e=>{let{__scopeMenubar:t,value:n,...r}=e,i=u(),a=n||i||`LEGACY_REACT_AUTO_VALUE`,o=k(A,t),s=D(t),c=x.useRef(null),l=x.useRef(!1),d=o.value===a;return x.useEffect(()=>{d||(l.current=!1)},[d]),(0,S.jsx)(we,{scope:t,value:a,triggerId:u(),triggerRef:c,contentId:u(),wasKeyboardTriggerOpenRef:l,children:(0,S.jsx)(ae,{...s,open:d,onOpenChange:e=>{e||o.onMenuClose()},modal:!1,dir:o.dir,...r})})};Te.displayName=A;var M=`MenubarTrigger`,N=x.forwardRef((e,t)=>{let{__scopeMenubar:n,disabled:r=!1,...i}=e,a=O(n),s=D(n),c=k(M,n),u=j(M,n),f=x.useRef(null),ee=o(t,f,u.triggerRef),[te,p]=x.useState(!1),h=c.value===u.value;return(0,S.jsx)(w.ItemSlot,{scope:n,value:u.value,disabled:r,children:(0,S.jsx)(m,{asChild:!0,...a,focusable:!r,tabStopId:u.value,children:(0,S.jsx)(y,{asChild:!0,...s,children:(0,S.jsx)(l.button,{type:`button`,role:`menuitem`,id:u.triggerId,"aria-haspopup":`menu`,"aria-expanded":h,"aria-controls":h?u.contentId:void 0,"data-highlighted":te?``:void 0,"data-state":h?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ee,onPointerDown:d(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(c.onMenuOpen(u.value),h||e.preventDefault())}),onPointerEnter:d(e.onPointerEnter,()=>{c.value&&!h&&(c.onMenuOpen(u.value),f.current?.focus())}),onKeyDown:d(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&c.onMenuToggle(u.value),e.key===`ArrowDown`&&c.onMenuOpen(u.value),[`Enter`,` `,`ArrowDown`].includes(e.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:d(e.onFocus,()=>p(!0)),onBlur:d(e.onBlur,()=>p(!1))})})})})});N.displayName=M;var P=`MenubarPortal`,Ee=e=>{let{__scopeMenubar:t,...n}=e,r=D(t);return(0,S.jsx)(le,{...r,...n})};Ee.displayName=P;var F=`MenubarContent`,I=x.forwardRef((e,t)=>{let{__scopeMenubar:n,align:r=`start`,...i}=e,a=D(n),o=k(F,n),s=j(F,n),c=T(n),l=x.useRef(!1);return(0,S.jsx)(ce,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":``,...a,...i,ref:t,align:r,onCloseAutoFocus:d(e.onCloseAutoFocus,e=>{!o.value&&!l.current&&s.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onFocusOutside:d(e.onFocusOutside,e=>{let t=e.target;c().some(e=>e.ref.current?.contains(t))&&e.preventDefault()}),onInteractOutside:d(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:e=>{s.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:d(e.onKeyDown,e=>{if([`ArrowRight`,`ArrowLeft`].includes(e.key)){let t=e.target,n=t.hasAttribute(`data-radix-menubar-subtrigger`),r=t.closest(`[data-radix-menubar-content]`)!==e.currentTarget,i=(o.dir===`rtl`?`ArrowRight`:`ArrowLeft`)===e.key;if(!i&&n||r&&i)return;let a=c().filter(e=>!e.disabled).map(e=>e.value);i&&a.reverse();let l=a.indexOf(s.value);a=o.loop?K(a,l+1):a.slice(l+1);let[u]=a;u&&o.onMenuOpen(u)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})});I.displayName=F;var De=`MenubarGroup`,Oe=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ne,{...i,...r,ref:t})});Oe.displayName=De;var ke=`MenubarLabel`,L=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(re,{...i,...r,ref:t})});L.displayName=ke;var Ae=`MenubarItem`,R=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(_,{...i,...r,ref:t})});R.displayName=Ae;var je=`MenubarCheckboxItem`,Me=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(v,{...i,...r,ref:t})});Me.displayName=je;var z=`MenubarRadioGroup`,B=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(b,{...i,...r,ref:t})});B.displayName=z;var Ne=`MenubarRadioItem`,Pe=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ie,{...i,...r,ref:t})});Pe.displayName=Ne;var Fe=`MenubarItemIndicator`,Ie=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(fe,{...i,...r,ref:t})});Ie.displayName=Fe;var V=`MenubarSeparator`,Le=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(de,{...i,...r,ref:t})});Le.displayName=V;var Re=`MenubarArrow`,ze=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ue,{...i,...r,ref:t})});ze.displayName=Re;var Be=`MenubarSub`,H=e=>{let{__scopeMenubar:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=D(t),[s,l]=c({prop:r,defaultProp:a??!1,onChange:i,caller:Be});return(0,S.jsx)(g,{...o,open:s,onOpenChange:l,children:n})};H.displayName=Be;var U=`MenubarSubTrigger`,W=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(oe,{"data-radix-menubar-subtrigger":``,...i,...r,ref:t})});W.displayName=U;var G=`MenubarSubContent`,Ve=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(se,{...i,"data-radix-menubar-content":``,...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})});Ve.displayName=G;function K(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var q=Ce,He=Te,J=N,Y=Ee,Ue=I,We=R,Ge=Me,Ke=Ie,qe=Le,Je=H,Ye=W,Xe=Ve,X=i();function Ze(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex h-8 items-center gap-0.5 rounded-lg border p-[3px]`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(q,{"data-slot":`menubar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function Qe(e){let t=(0,X.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,S.jsx)(He,{"data-slot":`menubar-menu`,...n}),t[2]=n,t[3]=r),r}function $e(e){let t=(0,X.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,S.jsx)(Y,{"data-slot":`menubar-portal`,...n}),t[2]=n,t[3]=r),r}function et(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(J,{"data-slot":`menubar-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function tt(e){let t=(0,X.c)(14),n,r,i,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:n,align:i,alignOffset:o,sideOffset:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c=i===void 0?`start`:i,l=o===void 0?-4:o,u=s===void 0?8:s,d;t[6]===n?d=t[7]:(d=a(`z-50 max-h-(--radix-menubar-content-available-height) min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[state=closed]:overflow-hidden 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 subtle-scrollbar`,n),t[6]=n,t[7]=d);let f;return t[8]!==c||t[9]!==l||t[10]!==r||t[11]!==u||t[12]!==d?(f=(0,S.jsx)($e,{children:(0,S.jsx)(Ue,{"data-slot":`menubar-content`,align:c,alignOffset:l,sideOffset:u,className:d,collisionPadding:8,...r})}),t[8]=c,t[9]=l,t[10]=r,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function Z(e){let t=(0,X.c)(12),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:n,inset:r,variant:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=o===void 0?`default`:o,c;t[5]===n?c=t[6]:(c=a(`group/menubar-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!`,n),t[5]=n,t[6]=c);let l;return t[7]!==r||t[8]!==i||t[9]!==c||t[10]!==s?(l=(0,S.jsx)(We,{"data-slot":`menubar-item`,"data-inset":r,"data-variant":s,className:c,...i}),t[7]=r,t[8]=i,t[9]=c,t[10]=s,t[11]=l):l=t[11],l}function nt(e){let t=(0,X.c)(15),n,r,i,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:i,children:r,checked:n,inset:o,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c;t[6]===i?c=t[7]:(c=a(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0`,i),t[6]=i,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,S.jsx)(`span`,{className:`pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,children:(0,S.jsx)(Ke,{children:(0,S.jsx)(pe,{})})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==r||t[11]!==o||t[12]!==s||t[13]!==c?(u=(0,S.jsxs)(Ge,{"data-slot":`menubar-checkbox-item`,"data-inset":o,className:c,checked:n,...s,children:[l,r]}),t[9]=n,t[10]=r,t[11]=o,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Q(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`-mx-1 my-1 h-px bg-border`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(qe,{"data-slot":`menubar-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function $(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(`span`,{"data-slot":`menubar-shortcut`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function rt(e){let t=(0,X.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,S.jsx)(Je,{"data-slot":`menubar-sub`,...n}),t[2]=n,t[3]=r),r}function it(e){let t=(0,X.c)(13),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:r,inset:i,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s;t[5]===r?s=t[6]:(s=a(`flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,S.jsx)(me,{className:`ml-auto size-4`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,S.jsxs)(Ye,{"data-slot":`menubar-sub-trigger`,"data-inset":i,className:s,...o,children:[n,c]}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function at(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`z-50 max-h-(--radix-menubar-content-available-height) min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[state=closed]:overflow-hidden 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-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 subtle-scrollbar`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(Xe,{"data-slot":`menubar-sub-content`,className:i,collisionPadding:8,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function ot(e){let t=(0,X.c)(412),{className:n}=e,{_:i}=r(),o=typeof window<`u`?window.okDesktop??null:null,[s,c]=(0,x.useState)(null),l=ge();if(!he()||o==null||o.menu==null)return null;let u=o.menu,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{u.dispatch(e).catch(st)},t[0]=d):d=t[0];let f=d,ee;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>{u.dispatch({kind:`query`}).then(e=>c(e??null)).catch(()=>c(null))},t[1]=ee):ee=t[1];let te=ee,p=s?.activeTarget.kind??null,m=s?.viewMenuState,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ve(o.platform),t[2]=h):h=t[2];let ne=h,re;t[3]===n?re=t[4]:(re=a(`h-auto rounded-none border-0 bg-transparent p-0 shadow-none [-webkit-app-region:no-drag]`,n),t[3]=n,t[4]=re);let ie;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(ie=e=>{e&&te()},t[5]=ie):ie=t[5];let ae;t[6]===i?ae=t[7]:(ae=i({id:`J2eKUI`}),t[6]=i,t[7]=ae);let oe;t[8]===ae?oe=t[9]:(oe=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:ae}),t[8]=ae,t[9]=oe);let se;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(se=()=>f({kind:`menu-action`,action:`new-doc`}),t[10]=se):se=t[10];let ce;t[11]===i?ce=t[12]:(ce=i({id:`HdkSiO`}),t[11]=i,t[12]=ce);let le;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,S.jsx)($,{children:`Ctrl+N`}),t[13]=le):le=t[13];let g;t[14]===ce?g=t[15]:(g=(0,S.jsxs)(Z,{onSelect:se,children:[ce,le]}),t[14]=ce,t[15]=g);let ue;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>f({kind:`menu-action`,action:`new-folder`}),t[16]=ue):ue=t[16];let _;t[17]===i?_=t[18]:(_=i({id:`96G6Re`}),t[17]=i,t[18]=_);let de;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,S.jsx)($,{children:`Ctrl+Shift+N`}),t[19]=de):de=t[19];let v;t[20]===_?v=t[21]:(v=(0,S.jsxs)(Z,{onSelect:ue,children:[_,de]}),t[20]=_,t[21]=v);let fe;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(fe=()=>f({kind:`menu-action`,action:`new-from-template`}),t[22]=fe):fe=t[22];let y;t[23]===i?y=t[24]:(y=i({id:`ioMn4Z`}),t[23]=i,t[24]=y);let b;t[25]===y?b=t[26]:(b=(0,S.jsx)(Z,{onSelect:fe,children:y}),t[25]=y,t[26]=b);let pe;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,S.jsx)(Q,{}),t[27]=pe):pe=t[27];let me;t[28]===i?me=t[29]:(me=i({id:`ten9en`}),t[28]=i,t[29]=me);let C;t[30]===me?C=t[31]:(C=(0,S.jsx)(it,{children:me}),t[30]=me,t[31]=C);let w;t[32]!==i||t[33]!==s?(w=(0,S.jsx)(at,{children:s==null||s.recentProjects.length===0?(0,S.jsx)(Z,{disabled:!0,children:i({id:`SvBFYA`})}):(0,S.jsxs)(S.Fragment,{children:[s.recentProjects.slice(0,10).map(e=>(0,S.jsx)(Z,{onSelect:()=>f({kind:`open-recent-project`,path:e.path}),children:e.name},e.path)),(0,S.jsx)(Q,{}),(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`clear-recent-projects`}),children:i({id:`ak4LLg`})})]})}),t[32]=i,t[33]=s,t[34]=w):w=t[34];let T;t[35]!==C||t[36]!==w?(T=(0,S.jsxs)(rt,{children:[C,w]}),t[35]=C,t[36]=w,t[37]=T):T=t[37];let be;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(be=()=>f({kind:`menu-action`,action:`new-project`}),t[38]=be):be=t[38];let E;t[39]===i?E=t[40]:(E=i({id:`NYu2Pt`}),t[39]=i,t[40]=E);let xe;t[41]===E?xe=t[42]:(xe=(0,S.jsx)(Z,{onSelect:be,children:E}),t[41]=E,t[42]=xe);let D;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>f({kind:`command`,command:`open-navigator`}),t[43]=D):D=t[43];let O;t[44]===i?O=t[45]:(O=i({id:`vYPvPB`}),t[44]=i,t[45]=O);let Se;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,S.jsx)($,{children:`Ctrl+Shift+P`}),t[46]=Se):Se=t[46];let k;t[47]===O?k=t[48]:(k=(0,S.jsxs)(Z,{onSelect:D,children:[O,Se]}),t[47]=O,t[48]=k);let Ce;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=()=>f({kind:`command`,command:`open-folder-dialog`}),t[49]=Ce):Ce=t[49];let A;t[50]===i?A=t[51]:(A=i({id:`FDBwmS`}),t[50]=i,t[51]=A);let we;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,S.jsx)($,{children:`Ctrl+O`}),t[52]=we):we=t[52];let j;t[53]===A?j=t[54]:(j=(0,S.jsxs)(Z,{onSelect:Ce,children:[A,we]}),t[53]=A,t[54]=j);let Te;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,S.jsx)(Q,{}),t[55]=Te):Te=t[55];let M;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>f({kind:`menu-action`,action:`new-worktree`}),t[56]=M):M=t[56];let N;t[57]===i?N=t[58]:(N=i({id:`TTDXD8`}),t[57]=i,t[58]=N);let P;t[59]===N?P=t[60]:(P=(0,S.jsx)(Z,{onSelect:M,children:N}),t[59]=N,t[60]=P);let Ee;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=()=>f({kind:`menu-action`,action:`switch-worktree`}),t[61]=Ee):Ee=t[61];let F;t[62]===i?F=t[63]:(F=i({id:`mxGJVE`}),t[62]=i,t[63]=F);let I;t[64]===F?I=t[65]:(I=(0,S.jsx)(Z,{onSelect:Ee,children:F}),t[64]=F,t[65]=I);let De;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,S.jsx)(Q,{}),t[66]=De):De=t[66];let Oe=p!==`doc`&&p!==`folder`,ke;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(ke=()=>f({kind:`menu-action`,action:`duplicate`}),t[67]=ke):ke=t[67];let L;t[68]===i?L=t[69]:(L=i({id:`euc6Ns`}),t[68]=i,t[69]=L);let Ae;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,S.jsx)($,{children:`Ctrl+D`}),t[70]=Ae):Ae=t[70];let R;t[71]!==Oe||t[72]!==L?(R=(0,S.jsxs)(Z,{disabled:Oe,onSelect:ke,children:[L,Ae]}),t[71]=Oe,t[72]=L,t[73]=R):R=t[73];let je=p===null,Me;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(Me=()=>f({kind:`menu-action`,action:`rename`}),t[74]=Me):Me=t[74];let z;t[75]===i?z=t[76]:(z=i({id:`2wxgft`}),t[75]=i,t[76]=z);let B;t[77]!==je||t[78]!==z?(B=(0,S.jsx)(Z,{disabled:je,onSelect:Me,children:z}),t[77]=je,t[78]=z,t[79]=B):B=t[79];let Ne=p===null,Pe,Fe,Ie;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=()=>f({kind:`menu-action`,action:`move-to-trash`}),Fe=_e(o.platform),Ie=(0,S.jsx)($,{children:`Ctrl+Del`}),t[80]=Pe,t[81]=Fe,t[82]=Ie):(Pe=t[80],Fe=t[81],Ie=t[82]);let V;t[83]===Ne?V=t[84]:(V=(0,S.jsxs)(Z,{disabled:Ne,onSelect:Pe,children:[Fe,Ie]}),t[83]=Ne,t[84]=V);let Le;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,S.jsx)(Q,{}),t[85]=Le):Le=t[85];let Re;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Re=(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`reveal-in-finder`}),children:ne}),t[86]=Re):Re=t[86];let ze=p===`asset`,Be;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Be=()=>f({kind:`menu-action`,action:`send-to-ai`}),t[87]=Be):Be=t[87];let H;t[88]===i?H=t[89]:(H=i({id:`O7_W_a`}),t[88]=i,t[89]=H);let U;t[90]!==ze||t[91]!==H?(U=(0,S.jsx)(Z,{disabled:ze,onSelect:Be,children:H}),t[90]=ze,t[91]=H,t[92]=U):U=t[92];let W;t[93]===i?W=t[94]:(W=i({id:`oCZkaG`}),t[93]=i,t[94]=W);let G;t[95]===W?G=t[96]:(G=(0,S.jsx)(it,{children:W}),t[95]=W,t[96]=G);let Ve;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=()=>f({kind:`menu-action`,action:`copy-full-path`}),t[97]=Ve):Ve=t[97];let K;t[98]===i?K=t[99]:(K=i({id:`oQA-cA`}),t[98]=i,t[99]=K);let q;t[100]===K?q=t[101]:(q=(0,S.jsx)(Z,{onSelect:Ve,children:K}),t[100]=K,t[101]=q);let He;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(He=()=>f({kind:`menu-action`,action:`copy-relative-path`}),t[102]=He):He=t[102];let J;t[103]===i?J=t[104]:(J=i({id:`s061i4`}),t[103]=i,t[104]=J);let Y;t[105]===J?Y=t[106]:(Y=(0,S.jsx)(Z,{onSelect:He,children:J}),t[105]=J,t[106]=Y);let Ue;t[107]!==q||t[108]!==Y?(Ue=(0,S.jsxs)(at,{children:[q,Y]}),t[107]=q,t[108]=Y,t[109]=Ue):Ue=t[109];let We;t[110]!==G||t[111]!==Ue?(We=(0,S.jsxs)(rt,{children:[G,Ue]}),t[110]=G,t[111]=Ue,t[112]=We):We=t[112];let Ge;t[113]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,S.jsx)(Q,{}),t[113]=Ge):Ge=t[113];let Ke;t[114]!==i||t[115]!==s?.canReconfigureMcpWiring?(Ke=s?.canReconfigureMcpWiring===!0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`reconfigure-mcp-wiring`}),children:i({id:`zBUqvf`})}),(0,S.jsx)(Q,{})]}),t[114]=i,t[115]=s?.canReconfigureMcpWiring,t[116]=Ke):Ke=t[116];let qe;t[117]===Symbol.for(`react.memo_cache_sentinel`)?(qe=()=>f({kind:`command`,command:`open-settings`}),t[117]=qe):qe=t[117];let Je;t[118]===i?Je=t[119]:(Je=i({id:`uVbUP8`}),t[118]=i,t[119]=Je);let Ye;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,S.jsx)($,{children:`Ctrl+,`}),t[120]=Ye):Ye=t[120];let Xe;t[121]===Je?Xe=t[122]:(Xe=(0,S.jsxs)(Z,{onSelect:qe,children:[Je,Ye]}),t[121]=Je,t[122]=Xe);let $e;t[123]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,S.jsx)(Q,{}),t[123]=$e):$e=t[123];let ot;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(ot=()=>f({kind:`role`,role:`quit`}),t[124]=ot):ot=t[124];let ct;t[125]===i?ct=t[126]:(ct=i({id:`ydzS9x`}),t[125]=i,t[126]=ct);let lt;t[127]===ct?lt=t[128]:(lt=(0,S.jsx)(Z,{onSelect:ot,children:ct}),t[127]=ct,t[128]=lt);let ut;t[129]!==g||t[130]!==v||t[131]!==b||t[132]!==T||t[133]!==xe||t[134]!==k||t[135]!==j||t[136]!==P||t[137]!==I||t[138]!==R||t[139]!==B||t[140]!==V||t[141]!==U||t[142]!==We||t[143]!==Ke||t[144]!==Xe||t[145]!==lt?(ut=(0,S.jsxs)(tt,{children:[g,v,b,pe,T,xe,k,j,Te,P,I,De,R,B,V,Le,Re,U,We,Ge,Ke,Xe,$e,lt]}),t[129]=g,t[130]=v,t[131]=b,t[132]=T,t[133]=xe,t[134]=k,t[135]=j,t[136]=P,t[137]=I,t[138]=R,t[139]=B,t[140]=V,t[141]=U,t[142]=We,t[143]=Ke,t[144]=Xe,t[145]=lt,t[146]=ut):ut=t[146];let dt;t[147]!==oe||t[148]!==ut?(dt=(0,S.jsxs)(Qe,{children:[oe,ut]}),t[147]=oe,t[148]=ut,t[149]=dt):dt=t[149];let ft;t[150]===i?ft=t[151]:(ft=i({id:`ePK91l`}),t[150]=i,t[151]=ft);let pt;t[152]===ft?pt=t[153]:(pt=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:ft}),t[152]=ft,t[153]=pt);let mt;t[154]===Symbol.for(`react.memo_cache_sentinel`)?(mt=()=>f({kind:`role`,role:`undo`}),t[154]=mt):mt=t[154];let ht;t[155]===i?ht=t[156]:(ht=i({id:`9uI_rE`}),t[155]=i,t[156]=ht);let gt;t[157]===Symbol.for(`react.memo_cache_sentinel`)?(gt=(0,S.jsx)($,{children:`Ctrl+Z`}),t[157]=gt):gt=t[157];let _t;t[158]===ht?_t=t[159]:(_t=(0,S.jsxs)(Z,{onSelect:mt,children:[ht,gt]}),t[158]=ht,t[159]=_t);let vt;t[160]===Symbol.for(`react.memo_cache_sentinel`)?(vt=()=>f({kind:`role`,role:`redo`}),t[160]=vt):vt=t[160];let yt;t[161]===i?yt=t[162]:(yt=i({id:`H3oH0g`}),t[161]=i,t[162]=yt);let bt;t[163]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,S.jsx)($,{children:`Ctrl+Y`}),t[163]=bt):bt=t[163];let xt;t[164]===yt?xt=t[165]:(xt=(0,S.jsxs)(Z,{onSelect:vt,children:[yt,bt]}),t[164]=yt,t[165]=xt);let St;t[166]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,S.jsx)(Q,{}),t[166]=St):St=t[166];let Ct;t[167]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=()=>f({kind:`role`,role:`cut`}),t[167]=Ct):Ct=t[167];let wt;t[168]===i?wt=t[169]:(wt=i({id:`cCd8Bs`}),t[168]=i,t[169]=wt);let Tt;t[170]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,S.jsx)($,{children:`Ctrl+X`}),t[170]=Tt):Tt=t[170];let Et;t[171]===wt?Et=t[172]:(Et=(0,S.jsxs)(Z,{onSelect:Ct,children:[wt,Tt]}),t[171]=wt,t[172]=Et);let Dt;t[173]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=()=>f({kind:`role`,role:`copy`}),t[173]=Dt):Dt=t[173];let Ot;t[174]===i?Ot=t[175]:(Ot=i({id:`he3ygx`}),t[174]=i,t[175]=Ot);let kt;t[176]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,S.jsx)($,{children:`Ctrl+C`}),t[176]=kt):kt=t[176];let At;t[177]===Ot?At=t[178]:(At=(0,S.jsxs)(Z,{onSelect:Dt,children:[Ot,kt]}),t[177]=Ot,t[178]=At);let jt;t[179]===Symbol.for(`react.memo_cache_sentinel`)?(jt=()=>f({kind:`role`,role:`paste`}),t[179]=jt):jt=t[179];let Mt;t[180]===i?Mt=t[181]:(Mt=i({id:`HzVv6g`}),t[180]=i,t[181]=Mt);let Nt;t[182]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,S.jsx)($,{children:`Ctrl+V`}),t[182]=Nt):Nt=t[182];let Pt;t[183]===Mt?Pt=t[184]:(Pt=(0,S.jsxs)(Z,{onSelect:jt,children:[Mt,Nt]}),t[183]=Mt,t[184]=Pt);let Ft;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(Ft=()=>f({kind:`role`,role:`selectAll`}),t[185]=Ft):Ft=t[185];let It;t[186]===i?It=t[187]:(It=i({id:`mCB6Je`}),t[186]=i,t[187]=It);let Lt;t[188]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,S.jsx)($,{children:`Ctrl+A`}),t[188]=Lt):Lt=t[188];let Rt;t[189]===It?Rt=t[190]:(Rt=(0,S.jsxs)(Z,{onSelect:Ft,children:[It,Lt]}),t[189]=It,t[190]=Rt);let zt;t[191]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,S.jsx)(Q,{}),t[191]=zt):zt=t[191];let Bt=s?.spellCheckEnabled??!0,Vt;t[192]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=()=>f({kind:`command`,command:`toggle-spell-check`}),t[192]=Vt):Vt=t[192];let Ht;t[193]===i?Ht=t[194]:(Ht=i({id:`ZgJVnp`}),t[193]=i,t[194]=Ht);let Ut;t[195]!==Bt||t[196]!==Ht?(Ut=(0,S.jsx)(nt,{checked:Bt,onSelect:Vt,children:Ht}),t[195]=Bt,t[196]=Ht,t[197]=Ut):Ut=t[197];let Wt;t[198]!==At||t[199]!==Pt||t[200]!==Rt||t[201]!==Ut||t[202]!==_t||t[203]!==xt||t[204]!==Et?(Wt=(0,S.jsxs)(tt,{children:[_t,xt,St,Et,At,Pt,Rt,zt,Ut]}),t[198]=At,t[199]=Pt,t[200]=Rt,t[201]=Ut,t[202]=_t,t[203]=xt,t[204]=Et,t[205]=Wt):Wt=t[205];let Gt;t[206]!==Wt||t[207]!==pt?(Gt=(0,S.jsxs)(Qe,{children:[pt,Wt]}),t[206]=Wt,t[207]=pt,t[208]=Gt):Gt=t[208];let Kt;t[209]===i?Kt=t[210]:(Kt=i({id:`jpctdh`}),t[209]=i,t[210]=Kt);let qt;t[211]===Kt?qt=t[212]:(qt=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:Kt}),t[211]=Kt,t[212]=qt);let Jt;t[213]===Symbol.for(`react.memo_cache_sentinel`)?(Jt=()=>f({kind:`menu-action`,action:`navigate-back`}),t[213]=Jt):Jt=t[213];let Yt;t[214]===i?Yt=t[215]:(Yt=i({id:`iH8pgl`}),t[214]=i,t[215]=Yt);let Xt;t[216]===Symbol.for(`react.memo_cache_sentinel`)?(Xt=(0,S.jsx)($,{children:`Alt+Left`}),t[216]=Xt):Xt=t[216];let Zt;t[217]===Yt?Zt=t[218]:(Zt=(0,S.jsxs)(Z,{onSelect:Jt,children:[Yt,Xt]}),t[217]=Yt,t[218]=Zt);let Qt;t[219]===Symbol.for(`react.memo_cache_sentinel`)?(Qt=()=>f({kind:`menu-action`,action:`navigate-forward`}),t[219]=Qt):Qt=t[219];let $t;t[220]===i?$t=t[221]:($t=i({id:`rxWGWX`}),t[220]=i,t[221]=$t);let en;t[222]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,S.jsx)($,{children:`Alt+Right`}),t[222]=en):en=t[222];let tn;t[223]===$t?tn=t[224]:(tn=(0,S.jsxs)(Z,{onSelect:Qt,children:[$t,en]}),t[223]=$t,t[224]=tn);let nn;t[225]===Symbol.for(`react.memo_cache_sentinel`)?(nn=(0,S.jsx)(Q,{}),t[225]=nn):nn=t[225];let rn;t[226]===Symbol.for(`react.memo_cache_sentinel`)?(rn=()=>f({kind:`role`,role:`reload`}),t[226]=rn):rn=t[226];let an;t[227]===i?an=t[228]:(an=i({id:`HpK_8d`}),t[227]=i,t[228]=an);let on;t[229]===an?on=t[230]:(on=(0,S.jsx)(Z,{onSelect:rn,children:an}),t[229]=an,t[230]=on);let sn;t[231]===Symbol.for(`react.memo_cache_sentinel`)?(sn=()=>f({kind:`role`,role:`forceReload`}),t[231]=sn):sn=t[231];let cn;t[232]===i?cn=t[233]:(cn=i({id:`2CHoQv`}),t[232]=i,t[233]=cn);let ln;t[234]===cn?ln=t[235]:(ln=(0,S.jsx)(Z,{onSelect:sn,children:cn}),t[234]=cn,t[235]=ln);let un;t[236]!==i||t[237]!==s?.showDevToolsMenu?(un=s?.showDevToolsMenu===!0&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`role`,role:`toggleDevTools`}),children:i({id:`pgDlbM`})}),t[236]=i,t[237]=s?.showDevToolsMenu,t[238]=un):un=t[238];let dn;t[239]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,S.jsx)(Q,{}),t[239]=dn):dn=t[239];let fn;t[240]===Symbol.for(`react.memo_cache_sentinel`)?(fn=()=>f({kind:`menu-action`,action:`toggle-sidebar`}),t[240]=fn):fn=t[240];let pn;t[241]!==i||t[242]!==m?.sidebarVisible?(pn=m?.sidebarVisible===!1?i({id:`151wvk`}):i({id:`Q1mtyd`}),t[241]=i,t[242]=m?.sidebarVisible,t[243]=pn):pn=t[243];let mn;t[244]===Symbol.for(`react.memo_cache_sentinel`)?(mn=(0,S.jsx)($,{children:`Ctrl+Alt+S`}),t[244]=mn):mn=t[244];let hn;t[245]===pn?hn=t[246]:(hn=(0,S.jsxs)(Z,{onSelect:fn,children:[pn,mn]}),t[245]=pn,t[246]=hn);let gn;t[247]===Symbol.for(`react.memo_cache_sentinel`)?(gn=()=>f({kind:`menu-action`,action:`toggle-doc-panel`}),t[247]=gn):gn=t[247];let _n;t[248]!==i||t[249]!==m?.docPanelVisible?(_n=m?.docPanelVisible===!1?i({id:`fSRzLo`}):i({id:`GSYWCm`}),t[248]=i,t[249]=m?.docPanelVisible,t[250]=_n):_n=t[250];let vn;t[251]===Symbol.for(`react.memo_cache_sentinel`)?(vn=(0,S.jsx)($,{children:`Ctrl+Alt+B`}),t[251]=vn):vn=t[251];let yn;t[252]===_n?yn=t[253]:(yn=(0,S.jsxs)(Z,{onSelect:gn,children:[_n,vn]}),t[252]=_n,t[253]=yn);let bn;t[254]!==i||t[255]!==l||t[256]!==m?.editorVisible?(bn=!l&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`toggle-editor`}),children:m?.editorVisible===!1?i({id:`y0_w13`}):i({id:`uqgCZJ`})}),t[254]=i,t[255]=l,t[256]=m?.editorVisible,t[257]=bn):bn=t[257];let xn;t[258]!==i||t[259]!==m?.terminalVisible?(xn=o.config.ptyAvailable&&(0,S.jsxs)(Z,{onSelect:()=>f({kind:`menu-action`,action:`toggle-terminal`}),children:[m?.terminalVisible===!0?i({id:`9xCnv8`}):i({id:`xi9KGG`}),(0,S.jsx)($,{children:`Ctrl+J`})]}),t[258]=i,t[259]=m?.terminalVisible,t[260]=xn):xn=t[260];let Sn;t[261]===Symbol.for(`react.memo_cache_sentinel`)?(Sn=(0,S.jsx)(Q,{}),t[261]=Sn):Sn=t[261];let Cn=m?.showHiddenFiles??!1,wn;t[262]===Symbol.for(`react.memo_cache_sentinel`)?(wn=()=>f({kind:`menu-action`,action:`toggle-show-hidden-files`}),t[262]=wn):wn=t[262];let Tn;t[263]===i?Tn=t[264]:(Tn=i({id:`XcGbim`}),t[263]=i,t[264]=Tn);let En;t[265]===Symbol.for(`react.memo_cache_sentinel`)?(En=(0,S.jsx)($,{children:`Ctrl+Shift+.`}),t[265]=En):En=t[265];let Dn;t[266]!==Cn||t[267]!==Tn?(Dn=(0,S.jsxs)(nt,{checked:Cn,onSelect:wn,children:[Tn,En]}),t[266]=Cn,t[267]=Tn,t[268]=Dn):Dn=t[268];let On=m?.showOkFolders??!1,kn;t[269]===Symbol.for(`react.memo_cache_sentinel`)?(kn=()=>f({kind:`menu-action`,action:`toggle-show-ok-folders`}),t[269]=kn):kn=t[269];let An;t[270]===i?An=t[271]:(An=i({id:`GHsJb8`}),t[270]=i,t[271]=An);let jn;t[272]!==On||t[273]!==An?(jn=(0,S.jsx)(nt,{checked:On,onSelect:kn,children:An}),t[272]=On,t[273]=An,t[274]=jn):jn=t[274];let Mn=m?.showOnlyMarkdownFiles??!1,Nn;t[275]===Symbol.for(`react.memo_cache_sentinel`)?(Nn=()=>f({kind:`menu-action`,action:`toggle-show-only-markdown-files`}),t[275]=Nn):Nn=t[275];let Pn;t[276]===i?Pn=t[277]:(Pn=i({id:`WkTLN7`}),t[276]=i,t[277]=Pn);let Fn;t[278]!==Mn||t[279]!==Pn?(Fn=(0,S.jsx)(nt,{checked:Mn,onSelect:Nn,children:Pn}),t[278]=Mn,t[279]=Pn,t[280]=Fn):Fn=t[280];let In=m?.showSkillsSection??!0,Ln;t[281]===Symbol.for(`react.memo_cache_sentinel`)?(Ln=()=>f({kind:`menu-action`,action:`toggle-show-skills-section`}),t[281]=Ln):Ln=t[281];let Rn;t[282]===i?Rn=t[283]:(Rn=i({id:`WkyP2p`}),t[282]=i,t[283]=Rn);let zn;t[284]!==In||t[285]!==Rn?(zn=(0,S.jsx)(nt,{checked:In,onSelect:Ln,children:Rn}),t[284]=In,t[285]=Rn,t[286]=zn):zn=t[286];let Bn;t[287]===Symbol.for(`react.memo_cache_sentinel`)?(Bn=(0,S.jsx)(Q,{}),t[287]=Bn):Bn=t[287];let Vn;t[288]!==i||t[289]!==m?.canExpandAll?(Vn=(m?.canExpandAll??!0)&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`expand-all-tree`}),children:i({id:`OlAl5i`})}),t[288]=i,t[289]=m?.canExpandAll,t[290]=Vn):Vn=t[290];let Hn;t[291]!==i||t[292]!==m?.canCollapseAll?(Hn=(m?.canCollapseAll??!0)&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`collapse-all-tree`}),children:i({id:`qvWGzP`})}),t[291]=i,t[292]=m?.canCollapseAll,t[293]=Hn):Hn=t[293];let Un;t[294]===Symbol.for(`react.memo_cache_sentinel`)?(Un=(0,S.jsx)(Q,{}),t[294]=Un):Un=t[294];let Wn;t[295]===Symbol.for(`react.memo_cache_sentinel`)?(Wn=()=>f({kind:`role`,role:`resetZoom`}),t[295]=Wn):Wn=t[295];let Gn;t[296]===i?Gn=t[297]:(Gn=i({id:`FF7V5K`}),t[296]=i,t[297]=Gn);let Kn;t[298]===Gn?Kn=t[299]:(Kn=(0,S.jsx)(Z,{onSelect:Wn,children:Gn}),t[298]=Gn,t[299]=Kn);let qn;t[300]===Symbol.for(`react.memo_cache_sentinel`)?(qn=()=>f({kind:`role`,role:`zoomIn`}),t[300]=qn):qn=t[300];let Jn;t[301]===i?Jn=t[302]:(Jn=i({id:`Dz7fsq`}),t[301]=i,t[302]=Jn);let Yn;t[303]===Jn?Yn=t[304]:(Yn=(0,S.jsx)(Z,{onSelect:qn,children:Jn}),t[303]=Jn,t[304]=Yn);let Xn;t[305]===Symbol.for(`react.memo_cache_sentinel`)?(Xn=()=>f({kind:`role`,role:`zoomOut`}),t[305]=Xn):Xn=t[305];let Zn;t[306]===i?Zn=t[307]:(Zn=i({id:`bbJ-VR`}),t[306]=i,t[307]=Zn);let Qn;t[308]===Zn?Qn=t[309]:(Qn=(0,S.jsx)(Z,{onSelect:Xn,children:Zn}),t[308]=Zn,t[309]=Qn);let $n;t[310]===Symbol.for(`react.memo_cache_sentinel`)?($n=(0,S.jsx)(Q,{}),t[310]=$n):$n=t[310];let er;t[311]===Symbol.for(`react.memo_cache_sentinel`)?(er=()=>f({kind:`role`,role:`toggleFullScreen`}),t[311]=er):er=t[311];let tr;t[312]===i?tr=t[313]:(tr=i({id:`LTeJuX`}),t[312]=i,t[313]=tr);let nr;t[314]===Symbol.for(`react.memo_cache_sentinel`)?(nr=(0,S.jsx)($,{children:`F11`}),t[314]=nr):nr=t[314];let rr;t[315]===tr?rr=t[316]:(rr=(0,S.jsxs)(Z,{onSelect:er,children:[tr,nr]}),t[315]=tr,t[316]=rr);let ir;t[317]!==Zt||t[318]!==tn||t[319]!==on||t[320]!==ln||t[321]!==un||t[322]!==hn||t[323]!==yn||t[324]!==bn||t[325]!==xn||t[326]!==Dn||t[327]!==jn||t[328]!==Fn||t[329]!==zn||t[330]!==Vn||t[331]!==Hn||t[332]!==Kn||t[333]!==Yn||t[334]!==Qn||t[335]!==rr?(ir=(0,S.jsxs)(tt,{children:[Zt,tn,nn,on,ln,un,dn,hn,yn,bn,xn,Sn,Dn,jn,Fn,zn,Bn,Vn,Hn,Un,Kn,Yn,Qn,$n,rr]}),t[317]=Zt,t[318]=tn,t[319]=on,t[320]=ln,t[321]=un,t[322]=hn,t[323]=yn,t[324]=bn,t[325]=xn,t[326]=Dn,t[327]=jn,t[328]=Fn,t[329]=zn,t[330]=Vn,t[331]=Hn,t[332]=Kn,t[333]=Yn,t[334]=Qn,t[335]=rr,t[336]=ir):ir=t[336];let ar;t[337]!==qt||t[338]!==ir?(ar=(0,S.jsxs)(Qe,{children:[qt,ir]}),t[337]=qt,t[338]=ir,t[339]=ar):ar=t[339];let or;t[340]===i?or=t[341]:(or=i({id:`T3Mld1`}),t[340]=i,t[341]=or);let sr;t[342]===or?sr=t[343]:(sr=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:or}),t[342]=or,t[343]=sr);let cr;t[344]===Symbol.for(`react.memo_cache_sentinel`)?(cr=()=>f({kind:`role`,role:`minimize`}),t[344]=cr):cr=t[344];let lr;t[345]===i?lr=t[346]:(lr=i({id:`3TSz9S`}),t[345]=i,t[346]=lr);let ur;t[347]===lr?ur=t[348]:(ur=(0,S.jsx)(Z,{onSelect:cr,children:lr}),t[347]=lr,t[348]=ur);let dr;t[349]===Symbol.for(`react.memo_cache_sentinel`)?(dr=()=>f({kind:`role`,role:`close`}),t[349]=dr):dr=t[349];let fr;t[350]===i?fr=t[351]:(fr=i({id:`aRI3Om`}),t[350]=i,t[351]=fr);let pr;t[352]===fr?pr=t[353]:(pr=(0,S.jsx)(Z,{onSelect:dr,children:fr}),t[352]=fr,t[353]=pr);let mr;t[354]!==ur||t[355]!==pr?(mr=(0,S.jsxs)(tt,{children:[ur,pr]}),t[354]=ur,t[355]=pr,t[356]=mr):mr=t[356];let hr;t[357]!==sr||t[358]!==mr?(hr=(0,S.jsxs)(Qe,{children:[sr,mr]}),t[357]=sr,t[358]=mr,t[359]=hr):hr=t[359];let gr;t[360]===i?gr=t[361]:(gr=i({id:`c3XJ18`}),t[360]=i,t[361]=gr);let _r;t[362]===gr?_r=t[363]:(_r=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:gr}),t[362]=gr,t[363]=_r);let vr;t[364]===Symbol.for(`react.memo_cache_sentinel`)?(vr=()=>f({kind:`command`,command:`open-github`}),t[364]=vr):vr=t[364];let yr;t[365]===i?yr=t[366]:(yr=i({id:`LeGeTf`}),t[365]=i,t[366]=yr);let br;t[367]===yr?br=t[368]:(br=(0,S.jsx)(Z,{onSelect:vr,children:yr}),t[367]=yr,t[368]=br);let xr;t[369]===Symbol.for(`react.memo_cache_sentinel`)?(xr=()=>f({kind:`command`,command:`open-docs`}),t[369]=xr):xr=t[369];let Sr;t[370]===i?Sr=t[371]:(Sr=i({id:`TvY_XA`}),t[370]=i,t[371]=Sr);let Cr;t[372]===Sr?Cr=t[373]:(Cr=(0,S.jsx)(Z,{onSelect:xr,children:Sr}),t[372]=Sr,t[373]=Cr);let wr;t[374]===Symbol.for(`react.memo_cache_sentinel`)?(wr=()=>f({kind:`command`,command:`open-discord`}),t[374]=wr):wr=t[374];let Tr;t[375]===i?Tr=t[376]:(Tr=i({id:`36aWJD`}),t[375]=i,t[376]=Tr);let Er;t[377]===Tr?Er=t[378]:(Er=(0,S.jsx)(Z,{onSelect:wr,children:Tr}),t[377]=Tr,t[378]=Er);let Dr;t[379]===Symbol.for(`react.memo_cache_sentinel`)?(Dr=()=>f({kind:`menu-action`,action:`report-bug`}),t[379]=Dr):Dr=t[379];let Or;t[380]===i?Or=t[381]:(Or=i({id:`ft-BOm`}),t[380]=i,t[381]=Or);let kr;t[382]===Symbol.for(`react.memo_cache_sentinel`)?(kr=(0,S.jsx)($,{children:`Ctrl+Shift+D`}),t[382]=kr):kr=t[382];let Ar;t[383]===Or?Ar=t[384]:(Ar=(0,S.jsxs)(Z,{onSelect:Dr,children:[Or,kr]}),t[383]=Or,t[384]=Ar);let jr;t[385]===Symbol.for(`react.memo_cache_sentinel`)?(jr=()=>f({kind:`menu-action`,action:`send-feedback`}),t[385]=jr):jr=t[385];let Mr;t[386]===i?Mr=t[387]:(Mr=i({id:`_JOGC0`}),t[386]=i,t[387]=Mr);let Nr;t[388]===Mr?Nr=t[389]:(Nr=(0,S.jsx)(Z,{onSelect:jr,children:Mr}),t[388]=Mr,t[389]=Nr);let Pr;t[390]!==i||t[391]!==s?.canCheckForUpdates?(Pr=s?.canCheckForUpdates===!0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Q,{}),(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`check-for-updates`}),children:i({id:`3SZrdj`})})]}),t[390]=i,t[391]=s?.canCheckForUpdates,t[392]=Pr):Pr=t[392];let Fr;t[393]===Symbol.for(`react.memo_cache_sentinel`)?(Fr=(0,S.jsx)(Q,{}),t[393]=Fr):Fr=t[393];let Ir;t[394]===Symbol.for(`react.memo_cache_sentinel`)?(Ir=(0,S.jsx)(Z,{onSelect:()=>f({kind:`role`,role:`about`}),children:ye(o.platform)}),t[394]=Ir):Ir=t[394];let Lr;t[395]!==br||t[396]!==Cr||t[397]!==Er||t[398]!==Ar||t[399]!==Nr||t[400]!==Pr?(Lr=(0,S.jsxs)(tt,{children:[br,Cr,Er,Ar,Nr,Pr,Fr,Ir]}),t[395]=br,t[396]=Cr,t[397]=Er,t[398]=Ar,t[399]=Nr,t[400]=Pr,t[401]=Lr):Lr=t[401];let Rr;t[402]!==_r||t[403]!==Lr?(Rr=(0,S.jsxs)(Qe,{children:[_r,Lr]}),t[402]=_r,t[403]=Lr,t[404]=Rr):Rr=t[404];let zr;return t[405]!==Gt||t[406]!==ar||t[407]!==hr||t[408]!==Rr||t[409]!==re||t[410]!==dt?(zr=(0,S.jsxs)(Ze,{"data-testid":`app-menubar`,className:re,onValueChange:ie,children:[dt,Gt,ar,hr,Rr]}),t[405]=Gt,t[406]=ar,t[407]=hr,t[408]=Rr,t[409]=re,t[410]=dt,t[411]=zr):zr=t[411],zr}function st(){}export{ot as AppMenubar};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{r}from"./dist-Nvb76hAm.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{t as a}from"./utils-CPqDy6Hr.js";import{a as o}from"./dist-CSCUSbQc.js";import{c as s,i as c,l,n as u,o as d}from"./dist-DTFuvKje.js";import{n as f,t as ee}from"./dist-uiDX6Nr9.js";import{n as te,r as p,t as m}from"./dist-BKgU0kag.js";import{_ as h,a as ne,c as re,d as ie,f as ae,g as oe,h as se,i as ce,l as le,m as g,n as ue,o as _,p as de,r as v,s as fe,t as y,u as b}from"./dist-d2WYntJB.js";import{t as pe}from"./check-B2OLRY33.js";import{t as me}from"./chevron-right-Bofu4lib.js";import{t as he}from"./app-menubar-gate-BY-AgMO4.js";import{n as ge}from"./single-file-mode-_W9sHrBm.js";import{n as _e,r as ve,t as ye}from"./platform-labels-CC-o2Aps.js";var x=e(n(),1),S=t(),C=`Menubar`,[w,T,be]=f(C),[E,xe]=s(C,[be,p]),D=h(),O=p(),[Se,k]=E(C),Ce=x.forwardRef((e,t)=>{let{__scopeMenubar:n,value:r,onValueChange:i,defaultValue:a,loop:o=!0,dir:s,...u}=e,d=ee(s),f=O(n),[p,m]=c({prop:r,onChange:i,defaultProp:a??``,caller:C}),[h,ne]=x.useState(null);return(0,S.jsx)(Se,{scope:n,value:p,onMenuOpen:x.useCallback(e=>{m(e),ne(e)},[m]),onMenuClose:x.useCallback(()=>m(``),[m]),onMenuToggle:x.useCallback(e=>{m(t=>t?``:e),ne(e)},[m]),dir:d,loop:o,children:(0,S.jsx)(w.Provider,{scope:n,children:(0,S.jsx)(w.Slot,{scope:n,children:(0,S.jsx)(te,{asChild:!0,...f,orientation:`horizontal`,loop:o,dir:d,currentTabStopId:h,onCurrentTabStopIdChange:ne,children:(0,S.jsx)(l.div,{role:`menubar`,...u,ref:t})})})})})});Ce.displayName=C;var A=`MenubarMenu`,[we,j]=E(A),Te=e=>{let{__scopeMenubar:t,value:n,...r}=e,i=u(),a=n||i||`LEGACY_REACT_AUTO_VALUE`,o=k(A,t),s=D(t),c=x.useRef(null),l=x.useRef(!1),d=o.value===a;return x.useEffect(()=>{d||(l.current=!1)},[d]),(0,S.jsx)(we,{scope:t,value:a,triggerId:u(),triggerRef:c,contentId:u(),wasKeyboardTriggerOpenRef:l,children:(0,S.jsx)(ae,{...s,open:d,onOpenChange:e=>{e||o.onMenuClose()},modal:!1,dir:o.dir,...r})})};Te.displayName=A;var M=`MenubarTrigger`,N=x.forwardRef((e,t)=>{let{__scopeMenubar:n,disabled:r=!1,...i}=e,a=O(n),s=D(n),c=k(M,n),u=j(M,n),f=x.useRef(null),ee=o(t,f,u.triggerRef),[te,p]=x.useState(!1),h=c.value===u.value;return(0,S.jsx)(w.ItemSlot,{scope:n,value:u.value,disabled:r,children:(0,S.jsx)(m,{asChild:!0,...a,focusable:!r,tabStopId:u.value,children:(0,S.jsx)(y,{asChild:!0,...s,children:(0,S.jsx)(l.button,{type:`button`,role:`menuitem`,id:u.triggerId,"aria-haspopup":`menu`,"aria-expanded":h,"aria-controls":h?u.contentId:void 0,"data-highlighted":te?``:void 0,"data-state":h?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ee,onPointerDown:d(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(c.onMenuOpen(u.value),h||e.preventDefault())}),onPointerEnter:d(e.onPointerEnter,()=>{c.value&&!h&&(c.onMenuOpen(u.value),f.current?.focus())}),onKeyDown:d(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&c.onMenuToggle(u.value),e.key===`ArrowDown`&&c.onMenuOpen(u.value),[`Enter`,` `,`ArrowDown`].includes(e.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:d(e.onFocus,()=>p(!0)),onBlur:d(e.onBlur,()=>p(!1))})})})})});N.displayName=M;var P=`MenubarPortal`,Ee=e=>{let{__scopeMenubar:t,...n}=e,r=D(t);return(0,S.jsx)(le,{...r,...n})};Ee.displayName=P;var F=`MenubarContent`,I=x.forwardRef((e,t)=>{let{__scopeMenubar:n,align:r=`start`,...i}=e,a=D(n),o=k(F,n),s=j(F,n),c=T(n),l=x.useRef(!1);return(0,S.jsx)(ce,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":``,...a,...i,ref:t,align:r,onCloseAutoFocus:d(e.onCloseAutoFocus,e=>{!o.value&&!l.current&&s.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onFocusOutside:d(e.onFocusOutside,e=>{let t=e.target;c().some(e=>e.ref.current?.contains(t))&&e.preventDefault()}),onInteractOutside:d(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:e=>{s.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:d(e.onKeyDown,e=>{if([`ArrowRight`,`ArrowLeft`].includes(e.key)){let t=e.target,n=t.hasAttribute(`data-radix-menubar-subtrigger`),r=t.closest(`[data-radix-menubar-content]`)!==e.currentTarget,i=(o.dir===`rtl`?`ArrowRight`:`ArrowLeft`)===e.key;if(!i&&n||r&&i)return;let a=c().filter(e=>!e.disabled).map(e=>e.value);i&&a.reverse();let l=a.indexOf(s.value);a=o.loop?K(a,l+1):a.slice(l+1);let[u]=a;u&&o.onMenuOpen(u)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})});I.displayName=F;var De=`MenubarGroup`,Oe=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ne,{...i,...r,ref:t})});Oe.displayName=De;var ke=`MenubarLabel`,L=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(re,{...i,...r,ref:t})});L.displayName=ke;var Ae=`MenubarItem`,R=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(_,{...i,...r,ref:t})});R.displayName=Ae;var je=`MenubarCheckboxItem`,Me=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(v,{...i,...r,ref:t})});Me.displayName=je;var z=`MenubarRadioGroup`,B=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(b,{...i,...r,ref:t})});B.displayName=z;var Ne=`MenubarRadioItem`,Pe=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ie,{...i,...r,ref:t})});Pe.displayName=Ne;var Fe=`MenubarItemIndicator`,Ie=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(fe,{...i,...r,ref:t})});Ie.displayName=Fe;var V=`MenubarSeparator`,Le=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(de,{...i,...r,ref:t})});Le.displayName=V;var Re=`MenubarArrow`,ze=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(ue,{...i,...r,ref:t})});ze.displayName=Re;var Be=`MenubarSub`,H=e=>{let{__scopeMenubar:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=D(t),[s,l]=c({prop:r,defaultProp:a??!1,onChange:i,caller:Be});return(0,S.jsx)(g,{...o,open:s,onOpenChange:l,children:n})};H.displayName=Be;var U=`MenubarSubTrigger`,W=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(oe,{"data-radix-menubar-subtrigger":``,...i,...r,ref:t})});W.displayName=U;var G=`MenubarSubContent`,Ve=x.forwardRef((e,t)=>{let{__scopeMenubar:n,...r}=e,i=D(n);return(0,S.jsx)(se,{...i,"data-radix-menubar-content":``,...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})});Ve.displayName=G;function K(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var q=Ce,He=Te,J=N,Y=Ee,Ue=I,We=R,Ge=Me,Ke=Ie,qe=Le,Je=H,Ye=W,Xe=Ve,X=i();function Ze(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex h-8 items-center gap-0.5 rounded-lg border p-[3px]`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(q,{"data-slot":`menubar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function Qe(e){let t=(0,X.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,S.jsx)(He,{"data-slot":`menubar-menu`,...n}),t[2]=n,t[3]=r),r}function $e(e){let t=(0,X.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,S.jsx)(Y,{"data-slot":`menubar-portal`,...n}),t[2]=n,t[3]=r),r}function et(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(J,{"data-slot":`menubar-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function tt(e){let t=(0,X.c)(14),n,r,i,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:n,align:i,alignOffset:o,sideOffset:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c=i===void 0?`start`:i,l=o===void 0?-4:o,u=s===void 0?8:s,d;t[6]===n?d=t[7]:(d=a(`z-50 max-h-(--radix-menubar-content-available-height) min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[state=closed]:overflow-hidden 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 subtle-scrollbar`,n),t[6]=n,t[7]=d);let f;return t[8]!==c||t[9]!==l||t[10]!==r||t[11]!==u||t[12]!==d?(f=(0,S.jsx)($e,{children:(0,S.jsx)(Ue,{"data-slot":`menubar-content`,align:c,alignOffset:l,sideOffset:u,className:d,collisionPadding:8,...r})}),t[8]=c,t[9]=l,t[10]=r,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function Z(e){let t=(0,X.c)(12),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:n,inset:r,variant:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=o===void 0?`default`:o,c;t[5]===n?c=t[6]:(c=a(`group/menubar-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!`,n),t[5]=n,t[6]=c);let l;return t[7]!==r||t[8]!==i||t[9]!==c||t[10]!==s?(l=(0,S.jsx)(We,{"data-slot":`menubar-item`,"data-inset":r,"data-variant":s,className:c,...i}),t[7]=r,t[8]=i,t[9]=c,t[10]=s,t[11]=l):l=t[11],l}function nt(e){let t=(0,X.c)(15),n,r,i,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:i,children:r,checked:n,inset:o,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c;t[6]===i?c=t[7]:(c=a(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0`,i),t[6]=i,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,S.jsx)(`span`,{className:`pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,children:(0,S.jsx)(Ke,{children:(0,S.jsx)(pe,{})})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==r||t[11]!==o||t[12]!==s||t[13]!==c?(u=(0,S.jsxs)(Ge,{"data-slot":`menubar-checkbox-item`,"data-inset":o,className:c,checked:n,...s,children:[l,r]}),t[9]=n,t[10]=r,t[11]=o,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Q(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`-mx-1 my-1 h-px bg-border`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(qe,{"data-slot":`menubar-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function $(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(`span`,{"data-slot":`menubar-shortcut`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function rt(e){let t=(0,X.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,S.jsx)(Je,{"data-slot":`menubar-sub`,...n}),t[2]=n,t[3]=r),r}function it(e){let t=(0,X.c)(13),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:r,inset:i,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s;t[5]===r?s=t[6]:(s=a(`flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,S.jsx)(me,{className:`ml-auto size-4`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,S.jsxs)(Ye,{"data-slot":`menubar-sub-trigger`,"data-inset":i,className:s,...o,children:[n,c]}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function at(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`z-50 max-h-(--radix-menubar-content-available-height) min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[state=closed]:overflow-hidden 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-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 subtle-scrollbar`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,S.jsx)(Xe,{"data-slot":`menubar-sub-content`,className:i,collisionPadding:8,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function ot(e){let t=(0,X.c)(412),{className:n}=e,{_:i}=r(),o=typeof window<`u`?window.okDesktop??null:null,[s,c]=(0,x.useState)(null),l=ge();if(!he()||o==null||o.menu==null)return null;let u=o.menu,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{u.dispatch(e).catch(st)},t[0]=d):d=t[0];let f=d,ee;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>{u.dispatch({kind:`query`}).then(e=>c(e??null)).catch(()=>c(null))},t[1]=ee):ee=t[1];let te=ee,p=s?.activeTarget.kind??null,m=s?.viewMenuState,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ve(o.platform),t[2]=h):h=t[2];let ne=h,re;t[3]===n?re=t[4]:(re=a(`h-auto rounded-none border-0 bg-transparent p-0 shadow-none [-webkit-app-region:no-drag]`,n),t[3]=n,t[4]=re);let ie;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(ie=e=>{e&&te()},t[5]=ie):ie=t[5];let ae;t[6]===i?ae=t[7]:(ae=i({id:`J2eKUI`}),t[6]=i,t[7]=ae);let oe;t[8]===ae?oe=t[9]:(oe=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:ae}),t[8]=ae,t[9]=oe);let se;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(se=()=>f({kind:`menu-action`,action:`new-doc`}),t[10]=se):se=t[10];let ce;t[11]===i?ce=t[12]:(ce=i({id:`HdkSiO`}),t[11]=i,t[12]=ce);let le;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,S.jsx)($,{children:`Ctrl+N`}),t[13]=le):le=t[13];let g;t[14]===ce?g=t[15]:(g=(0,S.jsxs)(Z,{onSelect:se,children:[ce,le]}),t[14]=ce,t[15]=g);let ue;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>f({kind:`menu-action`,action:`new-folder`}),t[16]=ue):ue=t[16];let _;t[17]===i?_=t[18]:(_=i({id:`96G6Re`}),t[17]=i,t[18]=_);let de;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,S.jsx)($,{children:`Ctrl+Shift+N`}),t[19]=de):de=t[19];let v;t[20]===_?v=t[21]:(v=(0,S.jsxs)(Z,{onSelect:ue,children:[_,de]}),t[20]=_,t[21]=v);let fe;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(fe=()=>f({kind:`menu-action`,action:`new-from-template`}),t[22]=fe):fe=t[22];let y;t[23]===i?y=t[24]:(y=i({id:`ioMn4Z`}),t[23]=i,t[24]=y);let b;t[25]===y?b=t[26]:(b=(0,S.jsx)(Z,{onSelect:fe,children:y}),t[25]=y,t[26]=b);let pe;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,S.jsx)(Q,{}),t[27]=pe):pe=t[27];let me;t[28]===i?me=t[29]:(me=i({id:`ten9en`}),t[28]=i,t[29]=me);let C;t[30]===me?C=t[31]:(C=(0,S.jsx)(it,{children:me}),t[30]=me,t[31]=C);let w;t[32]!==i||t[33]!==s?(w=(0,S.jsx)(at,{children:s==null||s.recentProjects.length===0?(0,S.jsx)(Z,{disabled:!0,children:i({id:`SvBFYA`})}):(0,S.jsxs)(S.Fragment,{children:[s.recentProjects.slice(0,10).map(e=>(0,S.jsx)(Z,{onSelect:()=>f({kind:`open-recent-project`,path:e.path}),children:e.name},e.path)),(0,S.jsx)(Q,{}),(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`clear-recent-projects`}),children:i({id:`ak4LLg`})})]})}),t[32]=i,t[33]=s,t[34]=w):w=t[34];let T;t[35]!==C||t[36]!==w?(T=(0,S.jsxs)(rt,{children:[C,w]}),t[35]=C,t[36]=w,t[37]=T):T=t[37];let be;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(be=()=>f({kind:`menu-action`,action:`new-project`}),t[38]=be):be=t[38];let E;t[39]===i?E=t[40]:(E=i({id:`NYu2Pt`}),t[39]=i,t[40]=E);let xe;t[41]===E?xe=t[42]:(xe=(0,S.jsx)(Z,{onSelect:be,children:E}),t[41]=E,t[42]=xe);let D;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>f({kind:`command`,command:`open-navigator`}),t[43]=D):D=t[43];let O;t[44]===i?O=t[45]:(O=i({id:`vYPvPB`}),t[44]=i,t[45]=O);let Se;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,S.jsx)($,{children:`Ctrl+Shift+P`}),t[46]=Se):Se=t[46];let k;t[47]===O?k=t[48]:(k=(0,S.jsxs)(Z,{onSelect:D,children:[O,Se]}),t[47]=O,t[48]=k);let Ce;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=()=>f({kind:`command`,command:`open-folder-dialog`}),t[49]=Ce):Ce=t[49];let A;t[50]===i?A=t[51]:(A=i({id:`FDBwmS`}),t[50]=i,t[51]=A);let we;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,S.jsx)($,{children:`Ctrl+O`}),t[52]=we):we=t[52];let j;t[53]===A?j=t[54]:(j=(0,S.jsxs)(Z,{onSelect:Ce,children:[A,we]}),t[53]=A,t[54]=j);let Te;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,S.jsx)(Q,{}),t[55]=Te):Te=t[55];let M;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>f({kind:`menu-action`,action:`new-worktree`}),t[56]=M):M=t[56];let N;t[57]===i?N=t[58]:(N=i({id:`TTDXD8`}),t[57]=i,t[58]=N);let P;t[59]===N?P=t[60]:(P=(0,S.jsx)(Z,{onSelect:M,children:N}),t[59]=N,t[60]=P);let Ee;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=()=>f({kind:`menu-action`,action:`switch-worktree`}),t[61]=Ee):Ee=t[61];let F;t[62]===i?F=t[63]:(F=i({id:`mxGJVE`}),t[62]=i,t[63]=F);let I;t[64]===F?I=t[65]:(I=(0,S.jsx)(Z,{onSelect:Ee,children:F}),t[64]=F,t[65]=I);let De;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,S.jsx)(Q,{}),t[66]=De):De=t[66];let Oe=p!==`doc`&&p!==`folder`,ke;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(ke=()=>f({kind:`menu-action`,action:`duplicate`}),t[67]=ke):ke=t[67];let L;t[68]===i?L=t[69]:(L=i({id:`euc6Ns`}),t[68]=i,t[69]=L);let Ae;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,S.jsx)($,{children:`Ctrl+D`}),t[70]=Ae):Ae=t[70];let R;t[71]!==Oe||t[72]!==L?(R=(0,S.jsxs)(Z,{disabled:Oe,onSelect:ke,children:[L,Ae]}),t[71]=Oe,t[72]=L,t[73]=R):R=t[73];let je=p===null,Me;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(Me=()=>f({kind:`menu-action`,action:`rename`}),t[74]=Me):Me=t[74];let z;t[75]===i?z=t[76]:(z=i({id:`2wxgft`}),t[75]=i,t[76]=z);let B;t[77]!==je||t[78]!==z?(B=(0,S.jsx)(Z,{disabled:je,onSelect:Me,children:z}),t[77]=je,t[78]=z,t[79]=B):B=t[79];let Ne=p===null,Pe,Fe,Ie;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=()=>f({kind:`menu-action`,action:`move-to-trash`}),Fe=_e(o.platform),Ie=(0,S.jsx)($,{children:`Ctrl+Del`}),t[80]=Pe,t[81]=Fe,t[82]=Ie):(Pe=t[80],Fe=t[81],Ie=t[82]);let V;t[83]===Ne?V=t[84]:(V=(0,S.jsxs)(Z,{disabled:Ne,onSelect:Pe,children:[Fe,Ie]}),t[83]=Ne,t[84]=V);let Le;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,S.jsx)(Q,{}),t[85]=Le):Le=t[85];let Re;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Re=(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`reveal-in-finder`}),children:ne}),t[86]=Re):Re=t[86];let ze=p===`asset`,Be;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Be=()=>f({kind:`menu-action`,action:`send-to-ai`}),t[87]=Be):Be=t[87];let H;t[88]===i?H=t[89]:(H=i({id:`O7_W_a`}),t[88]=i,t[89]=H);let U;t[90]!==ze||t[91]!==H?(U=(0,S.jsx)(Z,{disabled:ze,onSelect:Be,children:H}),t[90]=ze,t[91]=H,t[92]=U):U=t[92];let W;t[93]===i?W=t[94]:(W=i({id:`oCZkaG`}),t[93]=i,t[94]=W);let G;t[95]===W?G=t[96]:(G=(0,S.jsx)(it,{children:W}),t[95]=W,t[96]=G);let Ve;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=()=>f({kind:`menu-action`,action:`copy-full-path`}),t[97]=Ve):Ve=t[97];let K;t[98]===i?K=t[99]:(K=i({id:`oQA-cA`}),t[98]=i,t[99]=K);let q;t[100]===K?q=t[101]:(q=(0,S.jsx)(Z,{onSelect:Ve,children:K}),t[100]=K,t[101]=q);let He;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(He=()=>f({kind:`menu-action`,action:`copy-relative-path`}),t[102]=He):He=t[102];let J;t[103]===i?J=t[104]:(J=i({id:`s061i4`}),t[103]=i,t[104]=J);let Y;t[105]===J?Y=t[106]:(Y=(0,S.jsx)(Z,{onSelect:He,children:J}),t[105]=J,t[106]=Y);let Ue;t[107]!==q||t[108]!==Y?(Ue=(0,S.jsxs)(at,{children:[q,Y]}),t[107]=q,t[108]=Y,t[109]=Ue):Ue=t[109];let We;t[110]!==G||t[111]!==Ue?(We=(0,S.jsxs)(rt,{children:[G,Ue]}),t[110]=G,t[111]=Ue,t[112]=We):We=t[112];let Ge;t[113]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,S.jsx)(Q,{}),t[113]=Ge):Ge=t[113];let Ke;t[114]!==i||t[115]!==s?.canReconfigureMcpWiring?(Ke=s?.canReconfigureMcpWiring===!0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`reconfigure-mcp-wiring`}),children:i({id:`zBUqvf`})}),(0,S.jsx)(Q,{})]}),t[114]=i,t[115]=s?.canReconfigureMcpWiring,t[116]=Ke):Ke=t[116];let qe;t[117]===Symbol.for(`react.memo_cache_sentinel`)?(qe=()=>f({kind:`command`,command:`open-settings`}),t[117]=qe):qe=t[117];let Je;t[118]===i?Je=t[119]:(Je=i({id:`uVbUP8`}),t[118]=i,t[119]=Je);let Ye;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,S.jsx)($,{children:`Ctrl+,`}),t[120]=Ye):Ye=t[120];let Xe;t[121]===Je?Xe=t[122]:(Xe=(0,S.jsxs)(Z,{onSelect:qe,children:[Je,Ye]}),t[121]=Je,t[122]=Xe);let $e;t[123]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,S.jsx)(Q,{}),t[123]=$e):$e=t[123];let ot;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(ot=()=>f({kind:`role`,role:`quit`}),t[124]=ot):ot=t[124];let ct;t[125]===i?ct=t[126]:(ct=i({id:`ydzS9x`}),t[125]=i,t[126]=ct);let lt;t[127]===ct?lt=t[128]:(lt=(0,S.jsx)(Z,{onSelect:ot,children:ct}),t[127]=ct,t[128]=lt);let ut;t[129]!==g||t[130]!==v||t[131]!==b||t[132]!==T||t[133]!==xe||t[134]!==k||t[135]!==j||t[136]!==P||t[137]!==I||t[138]!==R||t[139]!==B||t[140]!==V||t[141]!==U||t[142]!==We||t[143]!==Ke||t[144]!==Xe||t[145]!==lt?(ut=(0,S.jsxs)(tt,{"data-bug-report-launcher":``,children:[g,v,b,pe,T,xe,k,j,Te,P,I,De,R,B,V,Le,Re,U,We,Ge,Ke,Xe,$e,lt]}),t[129]=g,t[130]=v,t[131]=b,t[132]=T,t[133]=xe,t[134]=k,t[135]=j,t[136]=P,t[137]=I,t[138]=R,t[139]=B,t[140]=V,t[141]=U,t[142]=We,t[143]=Ke,t[144]=Xe,t[145]=lt,t[146]=ut):ut=t[146];let dt;t[147]!==oe||t[148]!==ut?(dt=(0,S.jsxs)(Qe,{children:[oe,ut]}),t[147]=oe,t[148]=ut,t[149]=dt):dt=t[149];let ft;t[150]===i?ft=t[151]:(ft=i({id:`ePK91l`}),t[150]=i,t[151]=ft);let pt;t[152]===ft?pt=t[153]:(pt=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:ft}),t[152]=ft,t[153]=pt);let mt;t[154]===Symbol.for(`react.memo_cache_sentinel`)?(mt=()=>f({kind:`role`,role:`undo`}),t[154]=mt):mt=t[154];let ht;t[155]===i?ht=t[156]:(ht=i({id:`9uI_rE`}),t[155]=i,t[156]=ht);let gt;t[157]===Symbol.for(`react.memo_cache_sentinel`)?(gt=(0,S.jsx)($,{children:`Ctrl+Z`}),t[157]=gt):gt=t[157];let _t;t[158]===ht?_t=t[159]:(_t=(0,S.jsxs)(Z,{onSelect:mt,children:[ht,gt]}),t[158]=ht,t[159]=_t);let vt;t[160]===Symbol.for(`react.memo_cache_sentinel`)?(vt=()=>f({kind:`role`,role:`redo`}),t[160]=vt):vt=t[160];let yt;t[161]===i?yt=t[162]:(yt=i({id:`H3oH0g`}),t[161]=i,t[162]=yt);let bt;t[163]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,S.jsx)($,{children:`Ctrl+Y`}),t[163]=bt):bt=t[163];let xt;t[164]===yt?xt=t[165]:(xt=(0,S.jsxs)(Z,{onSelect:vt,children:[yt,bt]}),t[164]=yt,t[165]=xt);let St;t[166]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,S.jsx)(Q,{}),t[166]=St):St=t[166];let Ct;t[167]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=()=>f({kind:`role`,role:`cut`}),t[167]=Ct):Ct=t[167];let wt;t[168]===i?wt=t[169]:(wt=i({id:`cCd8Bs`}),t[168]=i,t[169]=wt);let Tt;t[170]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,S.jsx)($,{children:`Ctrl+X`}),t[170]=Tt):Tt=t[170];let Et;t[171]===wt?Et=t[172]:(Et=(0,S.jsxs)(Z,{onSelect:Ct,children:[wt,Tt]}),t[171]=wt,t[172]=Et);let Dt;t[173]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=()=>f({kind:`role`,role:`copy`}),t[173]=Dt):Dt=t[173];let Ot;t[174]===i?Ot=t[175]:(Ot=i({id:`he3ygx`}),t[174]=i,t[175]=Ot);let kt;t[176]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,S.jsx)($,{children:`Ctrl+C`}),t[176]=kt):kt=t[176];let At;t[177]===Ot?At=t[178]:(At=(0,S.jsxs)(Z,{onSelect:Dt,children:[Ot,kt]}),t[177]=Ot,t[178]=At);let jt;t[179]===Symbol.for(`react.memo_cache_sentinel`)?(jt=()=>f({kind:`role`,role:`paste`}),t[179]=jt):jt=t[179];let Mt;t[180]===i?Mt=t[181]:(Mt=i({id:`HzVv6g`}),t[180]=i,t[181]=Mt);let Nt;t[182]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,S.jsx)($,{children:`Ctrl+V`}),t[182]=Nt):Nt=t[182];let Pt;t[183]===Mt?Pt=t[184]:(Pt=(0,S.jsxs)(Z,{onSelect:jt,children:[Mt,Nt]}),t[183]=Mt,t[184]=Pt);let Ft;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(Ft=()=>f({kind:`role`,role:`selectAll`}),t[185]=Ft):Ft=t[185];let It;t[186]===i?It=t[187]:(It=i({id:`mCB6Je`}),t[186]=i,t[187]=It);let Lt;t[188]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,S.jsx)($,{children:`Ctrl+A`}),t[188]=Lt):Lt=t[188];let Rt;t[189]===It?Rt=t[190]:(Rt=(0,S.jsxs)(Z,{onSelect:Ft,children:[It,Lt]}),t[189]=It,t[190]=Rt);let zt;t[191]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,S.jsx)(Q,{}),t[191]=zt):zt=t[191];let Bt=s?.spellCheckEnabled??!0,Vt;t[192]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=()=>f({kind:`command`,command:`toggle-spell-check`}),t[192]=Vt):Vt=t[192];let Ht;t[193]===i?Ht=t[194]:(Ht=i({id:`ZgJVnp`}),t[193]=i,t[194]=Ht);let Ut;t[195]!==Bt||t[196]!==Ht?(Ut=(0,S.jsx)(nt,{checked:Bt,onSelect:Vt,children:Ht}),t[195]=Bt,t[196]=Ht,t[197]=Ut):Ut=t[197];let Wt;t[198]!==At||t[199]!==Pt||t[200]!==Rt||t[201]!==Ut||t[202]!==_t||t[203]!==xt||t[204]!==Et?(Wt=(0,S.jsxs)(tt,{"data-bug-report-launcher":``,children:[_t,xt,St,Et,At,Pt,Rt,zt,Ut]}),t[198]=At,t[199]=Pt,t[200]=Rt,t[201]=Ut,t[202]=_t,t[203]=xt,t[204]=Et,t[205]=Wt):Wt=t[205];let Gt;t[206]!==Wt||t[207]!==pt?(Gt=(0,S.jsxs)(Qe,{children:[pt,Wt]}),t[206]=Wt,t[207]=pt,t[208]=Gt):Gt=t[208];let Kt;t[209]===i?Kt=t[210]:(Kt=i({id:`jpctdh`}),t[209]=i,t[210]=Kt);let qt;t[211]===Kt?qt=t[212]:(qt=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:Kt}),t[211]=Kt,t[212]=qt);let Jt;t[213]===Symbol.for(`react.memo_cache_sentinel`)?(Jt=()=>f({kind:`menu-action`,action:`navigate-back`}),t[213]=Jt):Jt=t[213];let Yt;t[214]===i?Yt=t[215]:(Yt=i({id:`iH8pgl`}),t[214]=i,t[215]=Yt);let Xt;t[216]===Symbol.for(`react.memo_cache_sentinel`)?(Xt=(0,S.jsx)($,{children:`Alt+Left`}),t[216]=Xt):Xt=t[216];let Zt;t[217]===Yt?Zt=t[218]:(Zt=(0,S.jsxs)(Z,{onSelect:Jt,children:[Yt,Xt]}),t[217]=Yt,t[218]=Zt);let Qt;t[219]===Symbol.for(`react.memo_cache_sentinel`)?(Qt=()=>f({kind:`menu-action`,action:`navigate-forward`}),t[219]=Qt):Qt=t[219];let $t;t[220]===i?$t=t[221]:($t=i({id:`rxWGWX`}),t[220]=i,t[221]=$t);let en;t[222]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,S.jsx)($,{children:`Alt+Right`}),t[222]=en):en=t[222];let tn;t[223]===$t?tn=t[224]:(tn=(0,S.jsxs)(Z,{onSelect:Qt,children:[$t,en]}),t[223]=$t,t[224]=tn);let nn;t[225]===Symbol.for(`react.memo_cache_sentinel`)?(nn=(0,S.jsx)(Q,{}),t[225]=nn):nn=t[225];let rn;t[226]===Symbol.for(`react.memo_cache_sentinel`)?(rn=()=>f({kind:`role`,role:`reload`}),t[226]=rn):rn=t[226];let an;t[227]===i?an=t[228]:(an=i({id:`HpK_8d`}),t[227]=i,t[228]=an);let on;t[229]===an?on=t[230]:(on=(0,S.jsx)(Z,{onSelect:rn,children:an}),t[229]=an,t[230]=on);let sn;t[231]===Symbol.for(`react.memo_cache_sentinel`)?(sn=()=>f({kind:`role`,role:`forceReload`}),t[231]=sn):sn=t[231];let cn;t[232]===i?cn=t[233]:(cn=i({id:`2CHoQv`}),t[232]=i,t[233]=cn);let ln;t[234]===cn?ln=t[235]:(ln=(0,S.jsx)(Z,{onSelect:sn,children:cn}),t[234]=cn,t[235]=ln);let un;t[236]!==i||t[237]!==s?.showDevToolsMenu?(un=s?.showDevToolsMenu===!0&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`role`,role:`toggleDevTools`}),children:i({id:`pgDlbM`})}),t[236]=i,t[237]=s?.showDevToolsMenu,t[238]=un):un=t[238];let dn;t[239]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,S.jsx)(Q,{}),t[239]=dn):dn=t[239];let fn;t[240]===Symbol.for(`react.memo_cache_sentinel`)?(fn=()=>f({kind:`menu-action`,action:`toggle-sidebar`}),t[240]=fn):fn=t[240];let pn;t[241]!==i||t[242]!==m?.sidebarVisible?(pn=m?.sidebarVisible===!1?i({id:`151wvk`}):i({id:`Q1mtyd`}),t[241]=i,t[242]=m?.sidebarVisible,t[243]=pn):pn=t[243];let mn;t[244]===Symbol.for(`react.memo_cache_sentinel`)?(mn=(0,S.jsx)($,{children:`Ctrl+Alt+S`}),t[244]=mn):mn=t[244];let hn;t[245]===pn?hn=t[246]:(hn=(0,S.jsxs)(Z,{onSelect:fn,children:[pn,mn]}),t[245]=pn,t[246]=hn);let gn;t[247]===Symbol.for(`react.memo_cache_sentinel`)?(gn=()=>f({kind:`menu-action`,action:`toggle-doc-panel`}),t[247]=gn):gn=t[247];let _n;t[248]!==i||t[249]!==m?.docPanelVisible?(_n=m?.docPanelVisible===!1?i({id:`fSRzLo`}):i({id:`GSYWCm`}),t[248]=i,t[249]=m?.docPanelVisible,t[250]=_n):_n=t[250];let vn;t[251]===Symbol.for(`react.memo_cache_sentinel`)?(vn=(0,S.jsx)($,{children:`Ctrl+Alt+B`}),t[251]=vn):vn=t[251];let yn;t[252]===_n?yn=t[253]:(yn=(0,S.jsxs)(Z,{onSelect:gn,children:[_n,vn]}),t[252]=_n,t[253]=yn);let bn;t[254]!==i||t[255]!==l||t[256]!==m?.editorVisible?(bn=!l&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`toggle-editor`}),children:m?.editorVisible===!1?i({id:`y0_w13`}):i({id:`uqgCZJ`})}),t[254]=i,t[255]=l,t[256]=m?.editorVisible,t[257]=bn):bn=t[257];let xn;t[258]!==i||t[259]!==m?.terminalVisible?(xn=o.config.ptyAvailable&&(0,S.jsxs)(Z,{onSelect:()=>f({kind:`menu-action`,action:`toggle-terminal`}),children:[m?.terminalVisible===!0?i({id:`9xCnv8`}):i({id:`xi9KGG`}),(0,S.jsx)($,{children:`Ctrl+J`})]}),t[258]=i,t[259]=m?.terminalVisible,t[260]=xn):xn=t[260];let Sn;t[261]===Symbol.for(`react.memo_cache_sentinel`)?(Sn=(0,S.jsx)(Q,{}),t[261]=Sn):Sn=t[261];let Cn=m?.showHiddenFiles??!1,wn;t[262]===Symbol.for(`react.memo_cache_sentinel`)?(wn=()=>f({kind:`menu-action`,action:`toggle-show-hidden-files`}),t[262]=wn):wn=t[262];let Tn;t[263]===i?Tn=t[264]:(Tn=i({id:`XcGbim`}),t[263]=i,t[264]=Tn);let En;t[265]===Symbol.for(`react.memo_cache_sentinel`)?(En=(0,S.jsx)($,{children:`Ctrl+Shift+.`}),t[265]=En):En=t[265];let Dn;t[266]!==Cn||t[267]!==Tn?(Dn=(0,S.jsxs)(nt,{checked:Cn,onSelect:wn,children:[Tn,En]}),t[266]=Cn,t[267]=Tn,t[268]=Dn):Dn=t[268];let On=m?.showOkFolders??!1,kn;t[269]===Symbol.for(`react.memo_cache_sentinel`)?(kn=()=>f({kind:`menu-action`,action:`toggle-show-ok-folders`}),t[269]=kn):kn=t[269];let An;t[270]===i?An=t[271]:(An=i({id:`GHsJb8`}),t[270]=i,t[271]=An);let jn;t[272]!==On||t[273]!==An?(jn=(0,S.jsx)(nt,{checked:On,onSelect:kn,children:An}),t[272]=On,t[273]=An,t[274]=jn):jn=t[274];let Mn=m?.showOnlyMarkdownFiles??!1,Nn;t[275]===Symbol.for(`react.memo_cache_sentinel`)?(Nn=()=>f({kind:`menu-action`,action:`toggle-show-only-markdown-files`}),t[275]=Nn):Nn=t[275];let Pn;t[276]===i?Pn=t[277]:(Pn=i({id:`WkTLN7`}),t[276]=i,t[277]=Pn);let Fn;t[278]!==Mn||t[279]!==Pn?(Fn=(0,S.jsx)(nt,{checked:Mn,onSelect:Nn,children:Pn}),t[278]=Mn,t[279]=Pn,t[280]=Fn):Fn=t[280];let In=m?.showSkillsSection??!0,Ln;t[281]===Symbol.for(`react.memo_cache_sentinel`)?(Ln=()=>f({kind:`menu-action`,action:`toggle-show-skills-section`}),t[281]=Ln):Ln=t[281];let Rn;t[282]===i?Rn=t[283]:(Rn=i({id:`WkyP2p`}),t[282]=i,t[283]=Rn);let zn;t[284]!==In||t[285]!==Rn?(zn=(0,S.jsx)(nt,{checked:In,onSelect:Ln,children:Rn}),t[284]=In,t[285]=Rn,t[286]=zn):zn=t[286];let Bn;t[287]===Symbol.for(`react.memo_cache_sentinel`)?(Bn=(0,S.jsx)(Q,{}),t[287]=Bn):Bn=t[287];let Vn;t[288]!==i||t[289]!==m?.canExpandAll?(Vn=(m?.canExpandAll??!0)&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`expand-all-tree`}),children:i({id:`OlAl5i`})}),t[288]=i,t[289]=m?.canExpandAll,t[290]=Vn):Vn=t[290];let Hn;t[291]!==i||t[292]!==m?.canCollapseAll?(Hn=(m?.canCollapseAll??!0)&&(0,S.jsx)(Z,{onSelect:()=>f({kind:`menu-action`,action:`collapse-all-tree`}),children:i({id:`qvWGzP`})}),t[291]=i,t[292]=m?.canCollapseAll,t[293]=Hn):Hn=t[293];let Un;t[294]===Symbol.for(`react.memo_cache_sentinel`)?(Un=(0,S.jsx)(Q,{}),t[294]=Un):Un=t[294];let Wn;t[295]===Symbol.for(`react.memo_cache_sentinel`)?(Wn=()=>f({kind:`role`,role:`resetZoom`}),t[295]=Wn):Wn=t[295];let Gn;t[296]===i?Gn=t[297]:(Gn=i({id:`FF7V5K`}),t[296]=i,t[297]=Gn);let Kn;t[298]===Gn?Kn=t[299]:(Kn=(0,S.jsx)(Z,{onSelect:Wn,children:Gn}),t[298]=Gn,t[299]=Kn);let qn;t[300]===Symbol.for(`react.memo_cache_sentinel`)?(qn=()=>f({kind:`role`,role:`zoomIn`}),t[300]=qn):qn=t[300];let Jn;t[301]===i?Jn=t[302]:(Jn=i({id:`Dz7fsq`}),t[301]=i,t[302]=Jn);let Yn;t[303]===Jn?Yn=t[304]:(Yn=(0,S.jsx)(Z,{onSelect:qn,children:Jn}),t[303]=Jn,t[304]=Yn);let Xn;t[305]===Symbol.for(`react.memo_cache_sentinel`)?(Xn=()=>f({kind:`role`,role:`zoomOut`}),t[305]=Xn):Xn=t[305];let Zn;t[306]===i?Zn=t[307]:(Zn=i({id:`bbJ-VR`}),t[306]=i,t[307]=Zn);let Qn;t[308]===Zn?Qn=t[309]:(Qn=(0,S.jsx)(Z,{onSelect:Xn,children:Zn}),t[308]=Zn,t[309]=Qn);let $n;t[310]===Symbol.for(`react.memo_cache_sentinel`)?($n=(0,S.jsx)(Q,{}),t[310]=$n):$n=t[310];let er;t[311]===Symbol.for(`react.memo_cache_sentinel`)?(er=()=>f({kind:`role`,role:`toggleFullScreen`}),t[311]=er):er=t[311];let tr;t[312]===i?tr=t[313]:(tr=i({id:`LTeJuX`}),t[312]=i,t[313]=tr);let nr;t[314]===Symbol.for(`react.memo_cache_sentinel`)?(nr=(0,S.jsx)($,{children:`F11`}),t[314]=nr):nr=t[314];let rr;t[315]===tr?rr=t[316]:(rr=(0,S.jsxs)(Z,{onSelect:er,children:[tr,nr]}),t[315]=tr,t[316]=rr);let ir;t[317]!==Zt||t[318]!==tn||t[319]!==on||t[320]!==ln||t[321]!==un||t[322]!==hn||t[323]!==yn||t[324]!==bn||t[325]!==xn||t[326]!==Dn||t[327]!==jn||t[328]!==Fn||t[329]!==zn||t[330]!==Vn||t[331]!==Hn||t[332]!==Kn||t[333]!==Yn||t[334]!==Qn||t[335]!==rr?(ir=(0,S.jsxs)(tt,{"data-bug-report-launcher":``,children:[Zt,tn,nn,on,ln,un,dn,hn,yn,bn,xn,Sn,Dn,jn,Fn,zn,Bn,Vn,Hn,Un,Kn,Yn,Qn,$n,rr]}),t[317]=Zt,t[318]=tn,t[319]=on,t[320]=ln,t[321]=un,t[322]=hn,t[323]=yn,t[324]=bn,t[325]=xn,t[326]=Dn,t[327]=jn,t[328]=Fn,t[329]=zn,t[330]=Vn,t[331]=Hn,t[332]=Kn,t[333]=Yn,t[334]=Qn,t[335]=rr,t[336]=ir):ir=t[336];let ar;t[337]!==qt||t[338]!==ir?(ar=(0,S.jsxs)(Qe,{children:[qt,ir]}),t[337]=qt,t[338]=ir,t[339]=ar):ar=t[339];let or;t[340]===i?or=t[341]:(or=i({id:`T3Mld1`}),t[340]=i,t[341]=or);let sr;t[342]===or?sr=t[343]:(sr=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:or}),t[342]=or,t[343]=sr);let cr;t[344]===Symbol.for(`react.memo_cache_sentinel`)?(cr=()=>f({kind:`role`,role:`minimize`}),t[344]=cr):cr=t[344];let lr;t[345]===i?lr=t[346]:(lr=i({id:`3TSz9S`}),t[345]=i,t[346]=lr);let ur;t[347]===lr?ur=t[348]:(ur=(0,S.jsx)(Z,{onSelect:cr,children:lr}),t[347]=lr,t[348]=ur);let dr;t[349]===Symbol.for(`react.memo_cache_sentinel`)?(dr=()=>f({kind:`role`,role:`close`}),t[349]=dr):dr=t[349];let fr;t[350]===i?fr=t[351]:(fr=i({id:`aRI3Om`}),t[350]=i,t[351]=fr);let pr;t[352]===fr?pr=t[353]:(pr=(0,S.jsx)(Z,{onSelect:dr,children:fr}),t[352]=fr,t[353]=pr);let mr;t[354]!==ur||t[355]!==pr?(mr=(0,S.jsxs)(tt,{"data-bug-report-launcher":``,children:[ur,pr]}),t[354]=ur,t[355]=pr,t[356]=mr):mr=t[356];let hr;t[357]!==sr||t[358]!==mr?(hr=(0,S.jsxs)(Qe,{children:[sr,mr]}),t[357]=sr,t[358]=mr,t[359]=hr):hr=t[359];let gr;t[360]===i?gr=t[361]:(gr=i({id:`c3XJ18`}),t[360]=i,t[361]=gr);let _r;t[362]===gr?_r=t[363]:(_r=(0,S.jsx)(et,{className:`px-2 py-1 text-xs font-normal`,children:gr}),t[362]=gr,t[363]=_r);let vr;t[364]===Symbol.for(`react.memo_cache_sentinel`)?(vr=()=>f({kind:`command`,command:`open-github`}),t[364]=vr):vr=t[364];let yr;t[365]===i?yr=t[366]:(yr=i({id:`LeGeTf`}),t[365]=i,t[366]=yr);let br;t[367]===yr?br=t[368]:(br=(0,S.jsx)(Z,{onSelect:vr,children:yr}),t[367]=yr,t[368]=br);let xr;t[369]===Symbol.for(`react.memo_cache_sentinel`)?(xr=()=>f({kind:`command`,command:`open-docs`}),t[369]=xr):xr=t[369];let Sr;t[370]===i?Sr=t[371]:(Sr=i({id:`TvY_XA`}),t[370]=i,t[371]=Sr);let Cr;t[372]===Sr?Cr=t[373]:(Cr=(0,S.jsx)(Z,{onSelect:xr,children:Sr}),t[372]=Sr,t[373]=Cr);let wr;t[374]===Symbol.for(`react.memo_cache_sentinel`)?(wr=()=>f({kind:`command`,command:`open-discord`}),t[374]=wr):wr=t[374];let Tr;t[375]===i?Tr=t[376]:(Tr=i({id:`36aWJD`}),t[375]=i,t[376]=Tr);let Er;t[377]===Tr?Er=t[378]:(Er=(0,S.jsx)(Z,{onSelect:wr,children:Tr}),t[377]=Tr,t[378]=Er);let Dr;t[379]===Symbol.for(`react.memo_cache_sentinel`)?(Dr=()=>f({kind:`menu-action`,action:`report-bug`}),t[379]=Dr):Dr=t[379];let Or;t[380]===i?Or=t[381]:(Or=i({id:`ft-BOm`}),t[380]=i,t[381]=Or);let kr;t[382]===Symbol.for(`react.memo_cache_sentinel`)?(kr=(0,S.jsx)($,{children:`Ctrl+Shift+D`}),t[382]=kr):kr=t[382];let Ar;t[383]===Or?Ar=t[384]:(Ar=(0,S.jsxs)(Z,{onSelect:Dr,children:[Or,kr]}),t[383]=Or,t[384]=Ar);let jr;t[385]===Symbol.for(`react.memo_cache_sentinel`)?(jr=()=>f({kind:`menu-action`,action:`send-feedback`}),t[385]=jr):jr=t[385];let Mr;t[386]===i?Mr=t[387]:(Mr=i({id:`_JOGC0`}),t[386]=i,t[387]=Mr);let Nr;t[388]===Mr?Nr=t[389]:(Nr=(0,S.jsx)(Z,{onSelect:jr,children:Mr}),t[388]=Mr,t[389]=Nr);let Pr;t[390]!==i||t[391]!==s?.canCheckForUpdates?(Pr=s?.canCheckForUpdates===!0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Q,{}),(0,S.jsx)(Z,{onSelect:()=>f({kind:`command`,command:`check-for-updates`}),children:i({id:`3SZrdj`})})]}),t[390]=i,t[391]=s?.canCheckForUpdates,t[392]=Pr):Pr=t[392];let Fr;t[393]===Symbol.for(`react.memo_cache_sentinel`)?(Fr=(0,S.jsx)(Q,{}),t[393]=Fr):Fr=t[393];let Ir;t[394]===Symbol.for(`react.memo_cache_sentinel`)?(Ir=(0,S.jsx)(Z,{onSelect:()=>f({kind:`role`,role:`about`}),children:ye(o.platform)}),t[394]=Ir):Ir=t[394];let Lr;t[395]!==br||t[396]!==Cr||t[397]!==Er||t[398]!==Ar||t[399]!==Nr||t[400]!==Pr?(Lr=(0,S.jsxs)(tt,{"data-bug-report-launcher":``,children:[br,Cr,Er,Ar,Nr,Pr,Fr,Ir]}),t[395]=br,t[396]=Cr,t[397]=Er,t[398]=Ar,t[399]=Nr,t[400]=Pr,t[401]=Lr):Lr=t[401];let Rr;t[402]!==_r||t[403]!==Lr?(Rr=(0,S.jsxs)(Qe,{children:[_r,Lr]}),t[402]=_r,t[403]=Lr,t[404]=Rr):Rr=t[404];let zr;return t[405]!==Gt||t[406]!==ar||t[407]!==hr||t[408]!==Rr||t[409]!==re||t[410]!==dt?(zr=(0,S.jsxs)(Ze,{"data-testid":`app-menubar`,className:re,onValueChange:ie,children:[dt,Gt,ar,hr,Rr]}),t[405]=Gt,t[406]=ar,t[407]=hr,t[408]=Rr,t[409]=re,t[410]=dt,t[411]=zr):zr=t[411],zr}function st(){}export{ot as AppMenubar};
|
package/dist/public/assets/{AttachmentsSection-CHLjnxc0.js → AttachmentsSection-kXSdmpS8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as ee}from"./utils-CPqDy6Hr.js";import{i as o,n as te,o as ne,s as re,t as ie}from"./select-pACXgFe2.js";import"./constants-upload-CVKO8P4d.js";import{n as ae}from"./dist-BGzUo_18.js";import{n as oe}from"./config-errors-DDAH9fqy.js";import"./constants-cc1-Bt4QPTUe.js";import{i as s}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as ee}from"./utils-CPqDy6Hr.js";import{i as o,n as te,o as ne,s as re,t as ie}from"./select-pACXgFe2.js";import"./constants-upload-CVKO8P4d.js";import{n as ae}from"./dist-BGzUo_18.js";import{n as oe}from"./config-errors-DDAH9fqy.js";import"./constants-cc1-Bt4QPTUe.js";import{i as s}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-BZrRPx0L.js";import{v as c}from"./saved-themes-client-D09wxYQm.js";import{t as se}from"./input-BsFOyzfK.js";import{n as ce}from"./config-validation-events-Bq1HmeDP.js";import{t as le}from"./SettingsSectionHeader-DDNA1hrR.js";import"./config-schema-CIaXsCAX.js";import{a as l,i as ue,n as u,t as de}from"./field-controls-CKb1JSHS.js";var d=a(),f=e(n(),1),p=t(),m=`content.attachmentFolderPath`,h=`attachments`;function fe(e){let t=c(e);return t===`./`?`same-folder`:t===`/`?`content-root`:t.startsWith(`./`)?`current-folder-subfolder`:`content-root-folder`}function pe(e){let t=c(e);return t===`./`||t===`/`?h:t.startsWith(`./`)?t.slice(2)||h:t}function me(e){return e.trim().replace(/^(?:\.\/)+/,``).replace(/\/{2,}/g,`/`).replace(/\/+$/g,``)}function g(e,t){let n=me(t)||h;return e===`same-folder`?`./`:e===`content-root`?`/`:e===`current-folder-subfolder`?`./${n}`:n}function _(){let e=(0,d.c)(4),{projectBinding:t,projectConfig:n,projectSynced:r}=s();if(!t||!r||!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,p.jsx)(u,{}),e[0]=t):t=e[0],t}let i=n.content.attachmentFolderPath??`./`,a;return e[1]!==i||e[2]!==t?(a=(0,p.jsx)(v,{binding:t,value:i},i),e[1]=i,e[2]=t,e[3]=a):a=e[3],a}function v(e){let t=(0,d.c)(50),{binding:n,value:a}=e,{_:s}=i(),c;t[0]===a?c=t[1]:(c=()=>fe(a),t[0]=a,t[1]=c);let[u,me]=(0,f.useState)(c),_;t[2]===a?_=t[3]:(_=()=>pe(a),t[2]=a,t[3]=_);let[v,y]=(0,f.useState)(_),[b,x]=(0,f.useState)(null),[S,he]=(0,f.useState)(!1),[ge,_e]=(0,f.useState)(!1),C=(0,f.useRef)(null),w=(0,f.useRef)(null),T,E;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>()=>{C.current&&clearTimeout(C.current),w.current&&clearTimeout(w.current)},E=[],t[4]=T,t[5]=E):(T=t[4],E=t[5]),(0,f.useEffect)(T,E);let D,O;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>ce(e=>{if(e.docName!==`__config__/project`||ue(e.error)!==m)return;let t=l(e.error,m);ae.error(oe(e.error),{duration:8e3}),x(t),_e(!0),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{_e(!1),x(null)},600)}),O=[],t[6]=D,t[7]=O):(D=t[6],O=t[7]),(0,f.useEffect)(D,O);let k;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>{he(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>he(!1),1200)},t[8]=k):k=t[8];let ve=k,A;t[9]!==s||t[10]!==n?(A=e=>{let t=n.patch({content:{attachmentFolderPath:e}});if(t.ok){x(null),ve();return}let r=l(t.error,m);x(r),ae.error(s({id:`eQxm13`,values:{detail:r}}))},t[9]=s,t[10]=n,t[11]=A):A=t[11];let j=A,M;t[12]!==j||t[13]!==v?(M=e=>{if(e!==`same-folder`&&e!==`content-root`&&e!==`current-folder-subfolder`&&e!==`content-root-folder`)return;let t=e,n=t===`current-folder-subfolder`||t===`content-root-folder`?v||h:v;me(t),y(n),j(g(t,n))},t[12]=j,t[13]=v,t[14]=M):M=t[14];let N=M,P;t[15]!==j||t[16]!==v||t[17]!==u?(P=()=>{let e=g(u,v);y(pe(e)),j(e)},t[15]=j,t[16]=v,t[17]=u,t[18]=P):P=t[18];let F=P,I=u===`current-folder-subfolder`||u===`content-root-folder`,L;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(r,{id:`w_Sphq`}),t[19]=L):L=t[19];let R;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(le,{titleId:`settings-attachments-title`,title:L,scope:`project`,level:`block`,children:(0,p.jsx)(r,{id:`Hnl9nT`})}),t[20]=R):R=t[20];let z=ge&&`animate-settings-flash`,B;t[21]===z?B=t[22]:(B=ee(`rounded-md border p-3`,z),t[21]=z,t[22]=B);let V;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,p.jsx)(`div`,{className:`text-sm font-medium`,id:`settings-attachments-location-label`,children:(0,p.jsx)(r,{id:`AsqRE_`})}),t[23]=V):V=t[23];let H;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,p.jsxs)(`div`,{className:`space-y-0.5`,children:[V,(0,p.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,p.jsx)(r,{id:`vppAju`})})]}),t[24]=H):H=t[24];let U;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(ne,{"aria-labelledby":`settings-attachments-location-label`,"data-testid":`settings-attachments-mode`,size:`sm`,children:(0,p.jsx)(re,{})}),t[25]=U):U=t[25];let W;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,p.jsx)(o,{value:`same-folder`,children:(0,p.jsx)(r,{id:`Q7W-mC`})}),t[26]=W):W=t[26];let G;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(o,{value:`content-root`,children:(0,p.jsx)(r,{id:`yWSvcf`})}),t[27]=G):G=t[27];let K;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,p.jsx)(o,{value:`current-folder-subfolder`,children:(0,p.jsx)(r,{id:`0YUS3Q`})}),t[28]=K):K=t[28];let q;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,p.jsxs)(te,{children:[W,G,K,(0,p.jsx)(o,{value:`content-root-folder`,children:(0,p.jsx)(r,{id:`qAx7xG`})})]}),t[29]=q):q=t[29];let J;t[30]!==u||t[31]!==N?(J=(0,p.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[minmax(0,1fr)_minmax(16rem,18rem)] sm:items-start`,children:[H,(0,p.jsxs)(ie,{value:u,onValueChange:N,children:[U,q]})]}),t[30]=u,t[31]=N,t[32]=J):J=t[32];let Y;t[33]!==s||t[34]!==F||t[35]!==v||t[36]!==I?(Y=I?(0,p.jsxs)(`div`,{className:`mt-3 max-w-sm space-y-1`,children:[(0,p.jsx)(`label`,{className:`text-sm font-medium`,htmlFor:`settings-attachments-folder-input`,children:(0,p.jsx)(r,{id:`kNqMMd`})}),(0,p.jsx)(se,{id:`settings-attachments-folder-input`,value:v,placeholder:s({id:`OeAl1e`}),onChange:e=>y(e.target.value),onBlur:F,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),F())},className:`h-8 text-sm`,"data-testid":`settings-attachments-folder`})]}):null,t[33]=s,t[34]=F,t[35]=v,t[36]=I,t[37]=Y):Y=t[37];let X;t[38]===b?X=t[39]:(X=b?(0,p.jsx)(`p`,{className:`text-1sm text-destructive`,"data-field-error":m,role:`alert`,children:b}):null,t[38]=b,t[39]=X);let Z;t[40]===S?Z=t[41]:(Z=(0,p.jsx)(de,{visible:S}),t[40]=S,t[41]=Z);let Q;t[42]!==X||t[43]!==Z?(Q=(0,p.jsxs)(`div`,{className:`mt-2 flex min-h-5 items-center gap-2`,children:[X,Z]}),t[42]=X,t[43]=Z,t[44]=Q):Q=t[44];let $;return t[45]!==B||t[46]!==J||t[47]!==Y||t[48]!==Q?($=(0,p.jsxs)(`section`,{"aria-labelledby":`settings-attachments-title`,className:`space-y-3`,"data-testid":`settings-attachments`,children:[R,(0,p.jsxs)(`div`,{className:B,"data-field":m,"data-scope":`project`,children:[J,Y,Q]})]}),t[45]=B,t[46]=J,t[47]=Y,t[48]=Q,t[49]=$):$=t[49],$}export{_ as AttachmentsSection};
|
package/dist/public/assets/{CodeMirrorPropInput-BpHUFt_h.js → CodeMirrorPropInput-D_sfUFdL.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-BjL32yBS.js","./chunk-CYidjpOJ.js","./dist-BosZaL03.js","./w3c-keyname-C7Rznu6R.js","./dist-nSDmHl8c.js","./dist-DxN51Ana2.js","./dist-BxVTbkVl.js","./dist-D2c3re7d.js","./dist-CtBRIMC4.js","./stex-BAMK64Qm.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{r as i}from"./dist-Nvb76hAm.js";import{n as a}from"./dist-PQ5KMVDh.js";import{t as o}from"./react-dom-DPxgxlDT.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{n as c,t as l}from"./with-selector-zVo3Fruj.js";import{a as u,d,f,i as p,l as m,r as h}from"./floating-ui.dom-BYl7JZd0.js";import{a as g,d as _,g as v,i as y,l as b,n as x,o as S,r as C,t as w,u as T}from"./constants-upload-CVKO8P4d.js";import{$ as ee,A as E,B as te,C as ne,F as re,G as ie,K as D,L as O,N as ae,P as oe,Q as se,R as ce,S as le,T as ue,U as de,V as fe,W as pe,X as me,Y as he,_ as ge,a as _e,at as k,b as ve,bt as A,c as ye,ct as j,d as be,et as xe,f as Se,g as Ce,gt as we,h as Te,ht as Ee,it as M,k as N,l as De,mt as Oe,n as P,nt as ke,o as F,ot as Ae,p as je,q as Me,r as Ne,rt as Pe,s as Fe,st as Ie,t as Le,tt as Re,u as ze,ut as Be,v as Ve,vt as I,w as He,x as Ue,y as We,z as L}from"./dist-Dc8tD1th.js";import{t as Ge}from"./dist-C_FzPxEX2.js";import{t as Ke}from"./util-doc-name-DRKmy6g9.js";import{n as qe}from"./_envelope-q8XHEv4O-C-Qnl5Tu.js";import{C as Je,a as Ye,g as Xe,w as Ze}from"./schemas-api-CD98jV86.js";import{t as Qe}from"./note-window-mode-CI3Yju9B.js";import{i as $e}from"./use-apply-config-theme-CYFG76sS.js";import{t as et}from"./createLucideIcon-DdBzwsHe.js";import{t as tt}from"./folder-open-COGOeTzI.js";import{t as nt}from"./trash-2-CchZ0T47.js";import{n as rt,r as it}from"./structural-freshness-CIbkMFA3-CWi_lyiW.js";import{c as at,d as ot,h as st,l as ct}from"./doc-hash-BJkweiX9.js";import{$ as lt,A as ut,B as dt,C as ft,E as pt,G as mt,I as ht,J as gt,K as _t,M as vt,N as yt,P as bt,Q as xt,R as St,S as Ct,T as wt,W as Tt,X as Et,_ as Dt,at as Ot,b as kt,c as At,d as jt,f as Mt,g as Nt,h as Pt,it as Ft,j as It,l as Lt,m as Rt,nt as zt,ot as Bt,p as Vt,q as Ht,rt as Ut,s as Wt,tt as Gt,u as Kt,w as qt,x as Jt,y as Yt,z as Xt}from"./config-provider-Bu33ODD8.js";import{n as Zt,r as Qt}from"./external-link-8lDpeCuR.js";import{_ as $t,b as en,d as tn,f as nn,g as rn,h as an,j as on,k as sn,o as cn,p as ln,v as un,w as dn,x as fn}from"./navigation-targets-DSSJ_2xi.js";import{t as pn}from"./doc-paths-DiEZR__C.js";import{At as mn,Ct as hn,E as gn,F as _n,G as vn,I as R,J as yn,K as bn,M as xn,Mt as Sn,Nt as Cn,P as z,Tt as wn,X as Tn,a as B,c as En,f as Dn,l as On,lt as kn,o as An,r as jn,t as Mn,ut as Nn}from"./dist-BosZaL03.js";import{c as Pn,d as Fn,f as In,i as Ln,l as Rn,m as zn,p as V,r as Bn,t as Vn,u as Hn}from"./cm-theme-Dml6DrPs.js";import{A as Un,C as Wn,E as Gn,H as Kn,I as qn,L as Jn,M as Yn,N as Xn,O as Zn,P as Qn,R as H,S as $n,T as er,_ as tr,a as nr,b as rr,c as ir,h as ar,k as or,m as sr,o as cr,t as lr,x as ur,y as dr,z as fr}from"./lib-CHTgVmKZ.js";import{t as pr}from"./ccount-DGTHxXcy.js";import{n as mr,r as hr}from"./lib-DjmHwbg0.js";import{c as gr,f as _r,n as vr,r as yr,t as br,u as xr}from"./trim-lines-6NHDbF9s.js";import{u as Sr}from"./space-separated-tokens-BMeAno6f.js";import{n as Cr,t as wr}from"./syntax-YjkwC8Y2.js";import{i as Tr,n as Er}from"./page-list-cache-p7dO1d0k.js";import{t as Dr}from"./documents-fetch-BPNWNaEf.js";import{i as Or,n as kr,r as Ar,t as jr}from"./dist-DTvyxWzB.js";import{n as Mr,r as Nr,t as Pr}from"./dist-nSDmHl8c.js";import{t as Fr}from"./dist-CBBf5U_8.js";import{n as Ir}from"./dist-DL4JUOn7.js";import{n as Lr}from"./dist-urhiDaCp.js";import{n as Rr}from"./dist-BjL32yBS.js";import{i as zr,n as Br,r as Vr}from"./dist-Jw9rDwKW.js";import{n as Hr}from"./dist-DxN51Ana2.js";import{t as Ur}from"./stex-BAMK64Qm.js";var Wr=et(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),Gr=et(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Kr=et(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),qr=et(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Jr=et(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),U=n(),W=e(r(),1),Yr=e(o(),1),Xr=s(),Zr=c();function Qr(e){return e.editorView}var $r=new Map([[32,` `],[9,` `],[160,`\xA0`]]);function ei(e){let t=/^&#(x[0-9A-Fa-f]+|X[0-9A-Fa-f]+|[0-9]+);$/.exec(e);if(!t)return null;let n=t[1],r=n[0]===`x`||n[0]===`X`,i=Number.parseInt(r?n.slice(1):n,r?16:10);return Number.isNaN(i)?null:i}function ti(e){let t=ei(e);return t!==null&&$r.has(t)}function ni(e){let t=ei(e);return t===null?null:$r.get(t)??null}var ri=/&#(?:x[0-9A-Fa-f]+|X[0-9A-Fa-f]+|[0-9]+);/g;function ii(e){ri.lastIndex=0;let t=e.match(ri);if(t===null||t.join(``)!==e)return null;let n=``;for(let e of t){let t=ni(e);if(t===null)return null;n+=t}return n}var G={parseFallback:{blockLevel:0,wholeDoc:0,wholeDocBudget:0},jsxRenderFailure:{},jsxAutoConvertFailed:{},jsxAutoConvertSucceeded:{},jsxActionAborted:{},jsxPropDropped:{},jsxMoveFailed:{},jsxStuckCopyFailed:{},jsxStuckDeleteFailed:{},jsxPopoverCloseRestoreFailed:{},jsxKeyboardDeleteFailed:{},jsxChromeDeleteFailed:{},blockGripClickSelectFailed:{},jsxArrowNodeSelectFailed:{}};function ai(){G.parseFallback.blockLevel++}function oi(){G.parseFallback.wholeDoc++}function si(){G.parseFallback.wholeDocBudget++}function ci(e){G.jsxRenderFailure[e]=(G.jsxRenderFailure[e]??0)+1}function li(e){G.jsxAutoConvertFailed[e]=(G.jsxAutoConvertFailed[e]??0)+1}function ui(e){G.jsxAutoConvertSucceeded[e]=(G.jsxAutoConvertSucceeded[e]??0)+1}function di(e){G.jsxActionAborted[e]=(G.jsxActionAborted[e]??0)+1}function fi(e){G.jsxPropDropped[e]=(G.jsxPropDropped[e]??0)+1}function pi(e){G.jsxMoveFailed[e]=(G.jsxMoveFailed[e]??0)+1}function mi(e){G.jsxStuckCopyFailed[e]=(G.jsxStuckCopyFailed[e]??0)+1}function hi(e){G.jsxStuckDeleteFailed[e]=(G.jsxStuckDeleteFailed[e]??0)+1}function gi(e){G.jsxPopoverCloseRestoreFailed[e]=(G.jsxPopoverCloseRestoreFailed[e]??0)+1}function _i(e){G.jsxKeyboardDeleteFailed[e]=(G.jsxKeyboardDeleteFailed[e]??0)+1}function vi(e){G.jsxChromeDeleteFailed[e]=(G.jsxChromeDeleteFailed[e]??0)+1}function yi(e){G.blockGripClickSelectFailed[e]=(G.blockGripClickSelectFailed[e]??0)+1}function bi(e){G.jsxArrowNodeSelectFailed[e]=(G.jsxArrowNodeSelectFailed[e]??0)+1}var xi=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}},Si=/[\uD800-\uDBFF]/,Ci=/[\uDC00-\uDFFF]/,wi=(e,t)=>{let n=0,r=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;for(n>0&&Si.test(e[n-1])&&n--;r+n<e.length&&r+n<t.length&&e[e.length-r-1]===t[t.length-r-1];)r++;return r>0&&Ci.test(e[e.length-r])&&r--,{index:n,remove:e.length-n-r,insert:t.slice(n,t.length-r)}},Ti=(e,t)=>e>>>t|e<<32-t,Ei=e=>Ti(e,2)^Ti(e,13)^Ti(e,22),Di=e=>Ti(e,6)^Ti(e,11)^Ti(e,25),Oi=e=>Ti(e,7)^Ti(e,18)^e>>>3,ki=e=>Ti(e,17)^Ti(e,19)^e>>>10,Ai=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ji=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Mi=class{constructor(){let e=new ArrayBuffer(320);this._H=new Uint32Array(e,0,8),this._H.set(ji),this._W=new Uint32Array(e,64,64)}_updateHash(){let e=this._H,t=this._W;for(let e=16;e<64;e++)t[e]=ki(t[e-2])+t[e-7]+Oi(t[e-15])+t[e-16];let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7];for(let e=0,u,d;e<64;e++)u=l+Di(o)+(o&s^~o&c)+Ai[e]+t[e]>>>0,d=Ei(n)+(n&r^n&i^r&i)>>>0,l=c,c=s,s=o,o=a+u>>>0,a=i,i=r,r=n,n=u+d>>>0;e[0]+=n,e[1]+=r,e[2]+=i,e[3]+=a,e[4]+=o,e[5]+=s,e[6]+=c,e[7]+=l}digest(e){let t=0;for(;t+56<=e.length;){let n=0;for(;n<16&&t+3<e.length;n++)this._W[n]=e[t++]<<24|e[t++]<<16|e[t++]<<8|e[t++];if(t%64!=0){for(this._W.fill(0,n,16);t<e.length;)this._W[n]|=e[t]<<(3-t%4)*8,t++;this._W[n]|=128<<(3-t%4)*8}this._updateHash()}let n=t%64!=0;this._W.fill(0,0,16);let r=0;for(;t<e.length;r++)for(let n=3;n>=0&&t<e.length;n--)this._W[r]|=e[t++]<<n*8;n||(this._W[r-(t%4==0?0:1)]|=128<<(3-t%4)*8),this._W[14]=e.byteLength/Ft,this._W[15]=e.byteLength*8,this._updateHash();let i=new Uint8Array(32);for(let e=0;e<this._H.length;e++)for(let t=0;t<4;t++)i[e*4+t]=this._H[e]>>>(3-t)*8;return i}},Ni=e=>new Mi().digest(e),K=new k(`y-sync`),Pi=new k(`y-undo`),Fi=new k(`yjs-cursor`),Ii=e=>{for(let t=6;t<e.length;t++)e[t%6]=e[t%6]^e[t];return e.slice(0,6)},Li=e=>mt(Ii(Ni(Tt(e)))),Ri=()=>({mapping:new Map,isOMark:new Map}),zi=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&t.sv.get(e.id.client)>e.id.clock&&!vt(t.ds,e.id),Bi=[{light:`#ecd44433`,dark:`#ecd444`}],Vi=(e,t,n)=>{if(!e.has(n)){if(e.size<t.length){let n=Ut();e.forEach(e=>n.add(e)),t=t.filter(e=>!n.has(e))}e.set(n,Et(t))}return e.get(n)},Hi=(e,{colors:t=Bi,colorMapping:n=new Map,permanentUserData:r=null,onFirstRender:i=()=>{},mapping:a}={})=>{let o=!1,s=new Ki(e,a),c=new M({props:{editable:e=>{let t=K.getState(e);return t.snapshot==null&&t.prevSnapshot==null}},key:K,state:{init:(i,a)=>({type:e,doc:e.doc,binding:s,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:t,colorMapping:n,permanentUserData:r}),apply:(e,t)=>{let n=e.getMeta(K);if(n!==void 0){t=Object.assign({},t);for(let e in n)t[e]=n[e]}return t.addToHistory=e.getMeta(`addToHistory`)!==!1,t.isChangeOrigin=n!==void 0&&!!n.isChangeOrigin,t.isUndoRedoOperation=n!==void 0&&!!n.isChangeOrigin&&!!n.isUndoRedoOperation,s.prosemirrorView!==null&&n!==void 0&&(n.snapshot!=null||n.prevSnapshot!=null)&&Xt(0,()=>{s.prosemirrorView!=null&&(n.restore==null?s._renderSnapshot(n.snapshot,n.prevSnapshot,t):(s._renderSnapshot(n.snapshot,n.snapshot,t),delete t.restore,delete t.snapshot,delete t.prevSnapshot,s.mux(()=>{s._prosemirrorChanged(s.prosemirrorView.state.doc)})))}),t}},view:e=>(s.initView(e),a??s._forceRerender(),i(),{update:()=>{let t=c.getState(e.state);if(t.snapshot==null&&t.prevSnapshot==null&&(o||e.state.doc.content.findDiffStart(e.state.doc.type.createAndFill().content)!==null)){if(o=!0,t.addToHistory===!1&&!t.isChangeOrigin){let t=Pi.getState(e.state),n=t&&t.undoManager;n&&n.stopCapturing()}s.mux(()=>{t.doc.transact(n=>{n.meta.set(`addToHistory`,t.addToHistory),s._prosemirrorChanged(e.state.doc)},K)})}},destroy:()=>{s.destroy()}})});return c},Ui=(e,t,n)=>{if(t!==null&&t.anchor!==null&&t.head!==null)if(t.type===`all`)e.setSelection(new ke(e.doc));else if(t.type===`node`){let r=wa(n.doc,n.type,t.anchor,n.mapping);e.setSelection(Wi(e,r))}else{let r=wa(n.doc,n.type,t.anchor,n.mapping),i=wa(n.doc,n.type,t.head,n.mapping);r!==null&&i!==null&&e.setSelection(j.between(e.doc.resolve(r),e.doc.resolve(i)))}},Wi=(e,t)=>{let n=e.doc.resolve(t);return n.nodeAfter?Pe.create(e.doc,t):j.near(n)},Gi=(e,t)=>({type:t.selection.jsonID,anchor:Sa(t.selection.anchor,e.type,e.mapping),head:Sa(t.selection.head,e.type,e.mapping)}),Ki=class{constructor(e,t=new Map){this.type=e,this.prosemirrorView=null,this.mux=xi(),this.mapping=t,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=e.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=Gi(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta(`addToHistory`,!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?(_t&&this._domSelectionInView===null&&(Xt(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){let e=this.prosemirrorView._root.getSelection();if(e==null||e.anchorNode==null)return!1;let t=this.prosemirrorView._root.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),t.getClientRects().length===0&&t.startContainer&&t.collapsed&&t.selectNodeContents(t.startContainer);let n=t.getBoundingClientRect(),r=dt.documentElement;return n.bottom>=0&&n.right>=0&&n.left<=(window.innerWidth||r.clientWidth||0)&&n.top<=(window.innerHeight||r.clientHeight||0)}renderSnapshot(e,t){t||=pt(Ct(),new Map),this.prosemirrorView.dispatch(this._tr.setMeta(K,{snapshot:e,prevSnapshot:t}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{let e=this.type.toArray().map(e=>Ji(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),t=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(e),0,0));t.setMeta(K,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(t)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{let e=this.beforeTransactionSelection===null?this.prosemirrorView.state.selection:null,t=this.type.toArray().map(e=>Ji(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(t),0,0));if(e){let t=Bt(Ot(e.anchor,0),n.doc.content.size),r=Bt(Ot(e.head,0),n.doc.content.size);n.setSelection(j.create(n.doc,t,r))}this.prosemirrorView.dispatch(n.setMeta(K,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(e,t,n){let r=this.doc,i=this.type;if(e||=ht(this.doc),e instanceof Uint8Array||t instanceof Uint8Array)if((!(e instanceof Uint8Array)||!(t instanceof Uint8Array))&&zt(),r=new Kt({gc:!1}),Yt(r,t),t=ht(r),Yt(r,e),e=ht(r),i._item===null){let e=Array.from(this.doc.share.keys()).find(e=>this.doc.share.get(e)===this.type);i=r.getXmlFragment(e)}else{let e=r.store.clients.get(i._item.id.client)??[];i=e[ut(e,i._item.id.clock)].content.type}this.mapping.clear(),this.mux(()=>{r.transact(r=>{let a=n.permanentUserData;a&&a.dss.forEach(e=>{bt(r,e,e=>{})});let o=(e,t)=>{let r=e===`added`?a.getUserByClientId(t.client):a.getUserByDeletedId(t);return{user:r,type:e,color:Vi(n.colorMapping,n.colors,r)}},s=St(i,new Vt(t.ds,e.sv)).map(n=>!n._item.deleted||zi(n._item,e)||zi(n._item,t)?Ji(n,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},e,t,o):null).filter(e=>e!==null),c=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(s),0,0));this.prosemirrorView.dispatch(c.setMeta(K,{isChangeOrigin:!0}))},K)})}_typeChanged(e,t){if(this.prosemirrorView==null)return;let n=K.getState(this.prosemirrorView.state);if(e.length===0||n.snapshot!=null||n.prevSnapshot!=null){this.renderSnapshot(n.snapshot,n.prevSnapshot);return}this.mux(()=>{let e=(e,t)=>this.mapping.delete(t);bt(t,t.deleteSet,e=>{if(e.constructor===jt){let t=e.content.type;t&&this.mapping.delete(t)}}),t.changed.forEach(e),t.changedParentTypes.forEach(e);let n=this.type.toArray().map(e=>qi(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),r=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(n),0,0));Ui(r,this.beforeTransactionSelection,this),r=r.setMeta(K,{isChangeOrigin:!0,isUndoRedoOperation:t.origin instanceof Rt}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&r.scrollIntoView(),this.prosemirrorView.dispatch(r)})}_prosemirrorChanged(e){this.doc.transact(()=>{ha(this.doc,this.type,e,this),this.beforeTransactionSelection=Gi(this,this.prosemirrorView.state)},K)}initView(e){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=e,this.doc.on(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.on(`afterAllTransactions`,this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.off(`afterAllTransactions`,this.afterAllTransactions))}},qi=(e,t,n,r,i,a)=>{let o=n.mapping.get(e);if(o===void 0){if(e instanceof Nt)return Ji(e,t,n,r,i,a);throw Gt()}return o},Ji=(e,t,n,r,i,a)=>{let o=[],s=e=>{if(e instanceof Nt){let s=qi(e,t,n,r,i,a);s!==null&&o.push(s)}else{let s=e._item.right?.content?.type;s instanceof Pt&&!s._item.deleted&&s._item.id.client===s.doc.clientID&&(e.applyDelta([{retain:e.length},...s.toDelta()]),s.doc.transact(e=>{s._item.delete(e)}));let c=Yi(e,t,n,r,i,a);c!==null&&c.forEach(e=>{e!==null&&o.push(e)})}};r===void 0||i===void 0?e.toArray().forEach(s):St(e,new Vt(i.ds,r.sv)).forEach(s);try{let s=e.getAttributes(r);r!==void 0&&(zi(e._item,r)?zi(e._item,i)||(s.ychange=a?a(`added`,e._item.id):{type:`added`}):s.ychange=a?a(`removed`,e._item.id):{type:`removed`});let c=ia(s),l=pa(c.marks,t),u=t.node(e.nodeName,c.plain,o,l.length?l:void 0);return n.mapping.set(e,u),u}catch(r){console.warn(`[y-prosemirror] schema.node(`+e.nodeName+`) threw:`,String(r&&r.message||r));let i=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};if(t.nodes[e.nodeName]&&t.nodes[e.nodeName].spec&&t.nodes[e.nodeName].spec.inline)i.inline++;else if(i.block++,t.nodes.rawMdxFallback)try{let i=t.node(`rawMdxFallback`,{reason:String(r&&r.message||r)},[t.text(e.nodeName)]);return n.mapping.set(e,i),i}catch(e){console.warn(`[y-prosemirror] rawMdxFallback substitution also failed:`,String(e&&e.message||e))}return n.mapping.delete(e),null}},Yi=(e,t,n,r,i,a)=>{let o=[],s=e.toDelta(r,i,a);try{for(let e=0;e<s.length;e++){let n=s[e];o.push(t.text(n.insert,pa(n.attributes,t)))}}catch(e){console.warn(`[y-prosemirror] schema.text() threw:`,String(e&&e.message||e));let t=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};return t.inline++,null}return o},Xi=(e,t)=>{let n=new Dt,r=e.map(e=>({insert:e.text,attributes:ma(e.marks,t)}));return n.applyDelta(r),t.mapping.set(n,e),n},Zi=(e,t)=>{let n=new Nt(e.type.name);for(let t in e.attrs){let r=e.attrs[t];r!==null&&t!==`ychange`&&n.setAttribute(t,r)}let r=ma(e.marks||[],t);for(let e in r)n.setAttribute(ra+e,{...r[e]});return n.insert(0,ta(e).map(e=>Qi(e,t))),t.mapping.set(n,e),n},Qi=(e,t)=>e instanceof Array?Xi(e,t):Zi(e,t),$i=e=>typeof e==`object`&&!!e,ea=(e,t)=>{let n=Object.keys(e).filter(t=>e[t]!==null),r=n.length===Object.keys(t).filter(e=>t[e]!==null).length;for(let i=0;i<n.length&&r;i++){let a=n[i],o=e[a],s=t[a];r=a===`ychange`||o===s||$i(o)&&$i(s)&&ea(o,s)}return r},ta=e=>{let t=e.content.content,n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.isText){let r=[];for(let n=t[e];e<t.length&&n.isText;n=t[++e])r.push(n);e--,n.push(r)}else n.push(r)}return n},na=(e,t)=>{let n=e.toDelta();return n.length===t.length&&n.every((e,n)=>e.insert===t[n].text&>(e.attributes||{}).length===t[n].marks.length&&Ht(e.attributes,(e,r)=>{let i=fa(r),a=t[n].marks;return a.find(e=>e.type.name===i)?ea(e,a.find(e=>e.type.name===i)?.attrs):!1}))},ra=`ymark:`,ia=e=>{let t={},n={};for(let r in e)r.startsWith(ra)?n[r.slice(6)]=e[r]:t[r]=e[r];return{plain:t,marks:n}},aa=(e,t)=>{let n=Object.keys(e);return n.length===t.length?n.every(n=>{let r=fa(n),i=t.find(e=>e.type.name===r);return i?ea(e[n],i.attrs):!1}):!1},oa=(e,t)=>{if(e instanceof Nt&&!(t instanceof Array)&&ga(e,t)){let n=ta(t),r=ia(e.getAttributes());return e._length===n.length&&aa(r.marks,t.marks)&&ea(r.plain,t.attrs)&&e.toArray().every((e,t)=>oa(e,n[t]))}return e instanceof Dt&&t instanceof Array&&na(e,t)},sa=(e,t)=>e===t||e instanceof Array&&t instanceof Array&&e.length===t.length&&e.every((e,n)=>t[n]===e),ca=(e,t,n)=>{let r=e.toArray(),i=ta(t),a=i.length,o=r.length,s=Bt(o,a),c=0,l=0,u=!1;for(;c<s;c++){let e=r[c],t=i[c];if(sa(n.mapping.get(e),t))u=!0;else if(!oa(e,t))break}for(;c+l<s;l++){let e=r[o-l-1],t=i[a-l-1];if(sa(n.mapping.get(e),t))u=!0;else if(!oa(e,t))break}return{equalityFactor:c+l,foundMappedChild:u}},la=e=>{let t=``,n=e._start,r={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof At?t+=n.content.str:n.content instanceof Wt&&(r[n.content.key]=null)),n=n.right;return{str:t,nAttrs:r}},ua=(e,t,n)=>{n.mapping.set(e,t);let{nAttrs:r,str:i}=la(e),a=t.map(e=>({insert:e.text,attributes:Object.assign({},r,ma(e.marks,n))})),{insert:o,remove:s,index:c}=wi(i,a.map(e=>e.insert).join(``));e.delete(c,s),e.insert(c,o),e.applyDelta(a.map(e=>({retain:e.insert.length,attributes:e.attributes})))},da=/(.*)(--[a-zA-Z0-9+/=]{8})$/,fa=e=>da.exec(e)?.[1]??e,pa=(e,t)=>{let n=[];for(let r in e)n.push(t.mark(fa(r),e[r]));return n},ma=(e,t)=>{let n={};return e.forEach(e=>{if(e.type.name!==`ychange`){let r=lt(t.isOMark,e.type,()=>!e.type.excludes(e.type));n[r?`${e.type.name}--${Li(e.toJSON())}`:e.type.name]=e.attrs}}),n},ha=(e,t,n,r)=>{if(t instanceof Nt&&t.nodeName!==n.type.name)throw Error(`node name mismatch!`);if(r.mapping.set(t,n),t instanceof Nt){let e=t.getAttributes(),i=n.attrs;for(let n in i)i[n]===null?t.removeAttribute(n):e[n]!==i[n]&&n!==`ychange`&&t.setAttribute(n,i[n]);for(let n in e)i[n]===void 0&&!n.startsWith(ra)&&t.removeAttribute(n);let a=ma(n.marks||[],r);for(let n in a){let r=e[ra+n];(r===void 0||!ea(r,a[n]))&&t.setAttribute(ra+n,{...a[n]})}for(let n in e)n.startsWith(ra)&&a[n.slice(6)]===void 0&&t.removeAttribute(n)}let i=ta(n),a=i.length,o=t.toArray(),s=o.length,c=Bt(a,s),l=0,u=0;for(;l<c;l++){let e=o[l],t=i[l];if(!sa(r.mapping.get(e),t))if(oa(e,t))r.mapping.set(e,t);else break}for(;u+l+1<c;u++){let e=o[s-u-1],t=i[a-u-1];if(!sa(r.mapping.get(e),t))if(oa(e,t))r.mapping.set(e,t);else break}e.transact(()=>{for(;s-l-u>0&&a-l-u>0;){let n=o[l],c=i[l],d=o[s-u-1],f=i[a-u-1];if(n instanceof Dt&&c instanceof Array)na(n,c)||ua(n,c,r),l+=1;else{let i=n instanceof Nt&&ga(n,c),a=d instanceof Nt&&ga(d,f);if(i&&a){let e=ca(n,c,r),t=ca(d,f,r);e.foundMappedChild&&!t.foundMappedChild?a=!1:!e.foundMappedChild&&t.foundMappedChild||e.equalityFactor<t.equalityFactor?i=!1:a=!1}i?(ha(e,n,c,r),l+=1):a?(ha(e,d,f,r),u+=1):(r.mapping.delete(t.get(l)),t.delete(l,1),t.insert(l,[Qi(c,r)]),l+=1)}}let n=s-l-u;if(s===1&&a===0&&o[0]instanceof Dt?(r.mapping.delete(o[0]),o[0].delete(0,o[0].length)):n>0&&(t.slice(l,l+n).forEach(e=>r.mapping.delete(e)),t.delete(l,n)),l+u<a){let e=[];for(let t=l;t<a-u;t++)e.push(Qi(i[t],r));t.insert(l,e)}},K)},ga=(e,t)=>!(t instanceof Array)&&e.nodeName===t.type.name,_a=null,va=class{constructor(e,t,n){this.view=e,this.key=t,this.value=n}apply(){let e=K.getState(this.view.state);if(e&&e.binding&&!e.binding.isDestroyed){let e=this.view.state.tr;e.setMeta(this.key,this.value),this.view.dispatch(e)}}},ya=class e{constructor(e=[]){this.entries=e}getFirst(){return this.entries[0]}dequeueFirst(){return this.entries.shift()}isEmpty(){return this.entries.length===0}static fromViewsToUpdate(){let t=_a;_a=null;let n=[];return t.forEach((e,t)=>{e.forEach((e,r)=>{n.push(new va(t,r,e))})}),new e(n)}},ba=(e=ya.fromViewsToUpdate(),t=!1)=>{let n=!0;for(;!e.isEmpty();){let r=e.getFirst();try{r.apply()}catch(r){if(r instanceof RangeError){t&&n&&e.dequeueFirst(),e.isEmpty()||Xt(0,()=>ba(e,!0));return}throw r}n=!1,e.dequeueFirst()}},xa=(e,t,n)=>{_a||(_a=new Map,Xt(0,ba)),lt(_a,e,xt).set(t,n)},Sa=(e,t,n)=>{if(e===0)return wt(t,0,-1);let r=t._first===null?null:t._first.content.type;for(;r!==null&&t!==r;){if(r instanceof Dt){if(r._length>=e)return wt(r,e,-1);if(e-=r._length,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{do r=r._item===null?null:r._item.parent,e--;while(r!==t&&r!==null&&r._item!==null&&r._item.next===null);r!==null&&r!==t&&(r=r._item===null?null:r._item.next.content.type)}}else{let i=(n.get(r)||{nodeSize:0}).nodeSize;if(r._first!==null&&e<i)r=r._first.content.type,e--;else{if(e===1&&r._length===0&&i>1)return new Mt(r._item===null?null:r._item.id,r._item===null?It(r):null,null);if(e-=i,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{if(e===0)return r=r._item===null?r:r._item.parent,new Mt(r._item===null?null:r._item.id,r._item===null?It(r):null,null);do r=r._item.parent,e--;while(r!==t&&r._item.next===null);r!==t&&(r=r._item.next.content.type)}}}if(r===null)throw zt();if(e===0&&r.constructor!==Dt&&r!==t)return Ca(r._item.parent,r._item)}return wt(t,t._length,-1)},Ca=(e,t)=>{let n=null,r=null;return e._item===null?r=It(e):n=ft(e._item.id.client,e._item.id.clock),new Mt(n,r,t.id)},wa=(e,t,n,r)=>{let i=Jt(n,e);if(i===null||i.type!==t&&!yt(t,i.type._item))return null;let a=i.type,o=0;if(a.constructor===Dt)o=i.index;else if(a._item===null||!a._item.deleted){let e=a._first,t=0;for(;t<a._length&&t<i.index&&e!==null;){if(!e.deleted){let n=e.content.type;if(t++,n instanceof Dt)o+=n._length;else{let e=r.get(n);if(e==null)return null;o+=e.nodeSize}}e=e.right}o+=1}for(;a!==t&&a._item!==null;){let e=a._item.parent;if(e._item===null||!e._item.deleted){o+=1;let t=e._first;for(;t!==null;){let e=t.content.type;if(e===a)break;if(!t.deleted)if(e instanceof Dt)o+=e._length;else{let t=r.get(e);if(t==null)return null;o+=t.nodeSize}t=t.right}}a=e}return o-1},Ta=(e,t)=>{let n=e.toArray().map(e=>Ji(e,t,Ri())).filter(e=>e!==null);return I.fromArray(n)},Ea=(e,t)=>t.topNodeType.create(null,Ta(e,t)),Da=(e,t)=>{let n=Ri(),r=e.toArray().map(e=>Ji(e,t,n)).filter(e=>e!==null);return{doc:t.topNodeType.create(null,I.fromArray(r)),meta:n,mapping:n.mapping}},Oa=(e,t,n)=>e!==t,ka=e=>{let t=document.createElement(`span`);t.classList.add(`ProseMirror-yjs-cursor`),t.setAttribute(`style`,`border-color: ${e.color}`);let n=document.createElement(`div`);n.setAttribute(`style`,`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null);let r=document.createTextNode(``),i=document.createTextNode(``);return t.insertBefore(r,null),t.insertBefore(n,null),t.insertBefore(i,null),t},Aa=e=>({style:`background-color: ${e.color}70`,class:`ProseMirror-yjs-selection`}),ja=/^#[0-9a-fA-F]{6}$/,Ma=(e,t,n,r,i)=>{let a=K.getState(e);if(a==null||a.doc==null||a.binding==null)return me.create(e.doc,[]);let o=a.doc,s=[];return a.snapshot!=null||a.prevSnapshot!=null||a.binding.mapping.size===0?me.create(e.doc,[]):(t.getStates().forEach((t,c)=>{if(n(o.clientID,c,t)&&t.cursor!=null){let n=t.user||{};n.color==null?n.color=`#ffa500`:ja.test(n.color)||console.warn(`A user uses an unsupported color format`,n),n.name??=`User: ${c}`;let l=wa(o,a.type,qt(t.cursor.anchor),a.binding.mapping),u=wa(o,a.type,qt(t.cursor.head),a.binding.mapping);if(l!==null&&u!==null){let t=Ot(e.doc.content.size-1,0);l=Bt(l,t),u=Bt(u,t),s.push(he.widget(u,()=>r(n,c),{key:c+``,side:10}));let a=Bt(l,u),o=Ot(l,u);s.push(he.inline(a,o,i(n,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),me.create(e.doc,s))},Na=(e,{awarenessStateFilter:t=Oa,cursorBuilder:n=ka,selectionBuilder:r=Aa,getSelection:i=e=>e.selection}={},a=`cursor`)=>new M({key:Fi,state:{init(i,a){return Ma(a,e,t,n,r)},apply(i,a,o,s){let c=K.getState(s),l=i.getMeta(Fi);return c&&c.isChangeOrigin||l&&l.awarenessUpdated?Ma(s,e,t,n,r):a.map(i.mapping,i.doc)}},props:{decorations:e=>Fi.getState(e)},view:t=>{let n=()=>{t.docView&&xa(t,Fi,{awarenessUpdated:!0})},r=()=>{let n=K.getState(t.state),r=e.getLocalState()||{};if(t.hasFocus()){let o=i(t.state),s=Sa(o.anchor,n.type,n.binding.mapping),c=Sa(o.head,n.type,n.binding.mapping);(r.cursor==null||!kt(qt(r.cursor.anchor),s)||!kt(qt(r.cursor.head),c))&&e.setLocalStateField(a,{anchor:s,head:c})}else r.cursor!=null&&wa(n.doc,n.type,qt(r.cursor.anchor),n.binding.mapping)!==null&&e.setLocalStateField(a,null)};return e.on(`change`,n),t.dom.addEventListener(`focusin`,r),t.dom.addEventListener(`focusout`,r),{update:r,destroy:()=>{t.dom.removeEventListener(`focusin`,r),t.dom.removeEventListener(`focusout`,r),e.off(`change`,n),e.setLocalStateField(a,null)}}}}),Pa=e=>{let t=Pi.getState(e).undoManager;if(t!=null)return t.undo(),!0},Fa=e=>{let t=Pi.getState(e).undoManager;if(t!=null)return t.redo(),!0},Ia=new Set([`paragraph`]),La=(e,t)=>!(e instanceof jt)||!(e.content instanceof Lt)||!(e.content.type instanceof Pt||e.content.type instanceof Nt&&t.has(e.content.type.nodeName))||e.content.type._length===0,Ra=({protectedNodes:e=Ia,trackedOrigins:t=[],undoManager:n=null}={})=>new M({key:Pi,state:{init:(r,i)=>{let a=K.getState(i),o=n||new Rt(a.type,{trackedOrigins:new Set([K].concat(t)),deleteFilter:t=>La(t,e),captureTransaction:e=>e.meta.get(`addToHistory`)!==!1});return{undoManager:o,prevSel:null,hasUndoOps:o.undoStack.length>0,hasRedoOps:o.redoStack.length>0}},apply:(e,t,n,r)=>{let i=K.getState(r).binding,a=t.undoManager,o=a.undoStack.length>0,s=a.redoStack.length>0;return i?{undoManager:a,prevSel:Gi(i,n),hasUndoOps:o,hasRedoOps:s}:o!==t.hasUndoOps||s!==t.hasRedoOps?Object.assign({},t,{hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}):t}},view:e=>{let t=K.getState(e.state),n=Pi.getState(e.state).undoManager;return n.on(`stack-item-added`,({stackItem:n})=>{let r=t.binding;r&&n.meta.set(r,Pi.getState(e.state).prevSel)}),n.on(`stack-item-popped`,({stackItem:e})=>{let n=t.binding;n&&(n.beforeTransactionSelection=e.meta.get(n)||n.beforeTransactionSelection)}),{destroy:()=>{n.destroy()}}}}),za=new Map,Ba=new Set;function Va(){for(let e of Ba)e()}function Ha(e,t,n){za.set(e,{view:t,host:n}),Va()}function Ua(e,t){za.get(e)?.view===t&&(za.delete(e),Va())}function Wa(e){let t=za.get(e);return t?.host===`sourceEditor`?t.view:null}function Ga(e){return za.get(e)??null}function Ka(e){return Ba.add(e),()=>{Ba.delete(e)}}var qa=new WeakMap,Ja=new WeakMap;function Ya(e,t){qa.set(e,t)}function Xa(e){return qa.get(e)??!1}function Za(e,t){Ja.set(e,t)}function Qa(e){return Ja.get(e)??!1}function $a(e){return!Xa(e)}var eo=`autonomousFragmentEdit/swap`;function to(e){return e.setMeta(eo,!0)}function no(e,t,n){return n===t.textContent?to(e):e}function ro(e){return e.getMeta(eo)===!0}function io(e){return!e.getMeta(K)&&!ro(e)}var ao=/^[A-Za-z0-9]{20,}$/,oo=/^(?:\d+s?|(?:\d+h)?(?:\d+m)?(?:\d+s)?)$/;function so(e){let t=e.toLowerCase();return t===`loom.com`||t===`www.loom.com`}function co(e){let t=e.pathname.match(/^\/(?:share|embed)\/([A-Za-z0-9]+)\/?$/);if(!t)return null;let n=t[1]??``;return ao.test(n)?n:null}function lo(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:`||!so(t.hostname))return null;let n=co(t);if(!n)return null;let r=t.searchParams.get(`t`);return{id:n,startRaw:r&&r.length>0&&oo.test(r)?r:null}}function uo(e){return lo(e)!==null}function fo(e){let t=e.toLowerCase();return t===`vimeo.com`||t===`www.vimeo.com`||t===`player.vimeo.com`}function po(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:fo(t.hostname)}var mo=/^[A-Za-z0-9_-]{11}$/;function ho(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 go(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 _o(e){if(e.hostname.toLowerCase()===`youtu.be`){let t=e.pathname.replace(/^\//,``).split(`/`)[0]??``;return mo.test(t)?t:null}if(e.pathname===`/watch`){let t=e.searchParams.get(`v`)??``;return mo.test(t)?t:null}let t=e.pathname.match(/^\/(?:embed|shorts|v)\/([A-Za-z0-9_-]{11})\/?$/);return t?t[1]??null:null}function vo(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:`||!ho(t.hostname))return null;let n=_o(t);if(!n)return null;let r=t.searchParams.get(`t`)??t.searchParams.get(`start`)??``;return{id:n,startSeconds:r.length>0?go(r):null,noCookie:t.hostname.toLowerCase().endsWith(`youtube-nocookie.com`)}}function yo(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}if(r>=0){let e=n[r];if(e.type===`mdxJsxAttribute`&&e.value!=null&&typeof e.value==`object`&&e.value.type===`mdxJsxAttributeValueExpression`&&bo(e.value.value,t))continue}let o=xo(e,t);r>=0?n[r]=o:n.push(o)}return n}function bo(e,t){try{return JSON.stringify(JSON.parse(e))===JSON.stringify(t)}catch{return!1}}function xo(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 So(e,t,n,r){return{type:`mdxJsxFlowElement`,name:e,attributes:yo(t,r),children:n.all(t),data:{}}}function Co(e,t,n){let r=t.attrs.props?.children;return{type:`mdxJsxTextElement`,name:e,attributes:yo(t,n),children:typeof r==`string`&&r!==``?[{type:`text`,value:r}]:[],data:{}}}var wo=[{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`)",colorPicker:!0},{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`}],To=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Image source URL`,accept:x,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`,hidden:!0}],Eo=[{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")`,cssLengthInput:!0},{name:`height`,type:`string`,required:!1,advanced:!0,description:`Embed height as a CSS length (e.g. "26rem", "480px")`,cssLengthInput:!0},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`,hidden:!0}],Do=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Video source URL`,accept:y,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`&&(po(e.src)||uo(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:x,hideWhen:e=>typeof e.src==`string`&&(po(e.src)||uo(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`&&uo(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`&&(po(e.src)||uo(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`&&(vo(e.src)!==null||po(e.src)||uo(e.src))},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`,hidden:!0}],Oo=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Audio source URL`,accept:w,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`}],ko=[{name:`title`,type:`string`,required:!0,description:`Heading shown inside the <summary>`},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!1,description:`When true, the block 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`}],Ao=[wo[0],wo[1],wo[4],wo[5],wo[6]],jo=[To[0],To[1],To[7]],Mo=[ko[0],ko[1],ko[4],ko[5]],No=[{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`,`justify`],required:!1,defaultValue:`center`,description:"Block alignment from the `<div align>` attribute."},{name:`tag`,type:`string`,required:!1,defaultValue:`div`,hidden:!0,description:`Source wrapper tag (div or center).`},{name:`sourceAttrs`,type:`string`,required:!1,defaultValue:``,hidden:!0,description:`Raw opener-tag attribute bytes preserved for round-trip.`}],Po=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Alt text (Obsidian alias syntax: `![[file.png|alt text]]`)"}],Fo=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[clip.mp4|title]]`)"}],Io=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[song.mp3|title]]`)"}],Lo=[{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#install-tabs`)"}],Ro=[{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`)"}],zo=[{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."}],Bo=[zo[0]],Vo=[zo[0]],Ho=[{name:`chart`,type:`string`,required:!0,hidden:!0,description:`Mermaid chart source (graph / flowchart / sequenceDiagram / class / state / etc.)`}],Uo=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Display name override (Obsidian alias syntax: `![[file.zip|label]]`)"}],Wo=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`File URL`,accept:[`*/*`],autoFocus:!0}],Go=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`PDF source URL`,accept:C,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`)"}],Ko=[{name:`src`,type:`string`,required:!0,description:"Path to the `.excalidraw` board this embed renders",autoFocus:!0},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Accessible label for the embedded board`}],qo=[{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."}],Jo=[{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 Yo(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function Xo(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function Zo(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=typeof t?.sourceTarget==`string`?t.sourceTarget:null,o=typeof t?.sourceAnchor==`string`?t.sourceAnchor:null,s=typeof t?.sourceAlias==`string`?t.sourceAlias:null,c=r??(i?`${n}#${i}`:n);return{type:`wikiLinkEmbed`,value:c,data:{target:n,anchor:i,alias:r,sourceTarget:a,sourceAnchor:o,sourceAlias:s},children:[{type:`text`,value:c}]}}var Qo=[{name:`Callout`,surface:`canonical`,hasChildren:!0,props:wo,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)=>So(`Callout`,e,t,wo)},{name:`img`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:To,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)=>So(`img`,e,t,To)},{name:`video`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Do,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)=>So(`video`,e,t,Do)},{name:`audio`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Oo,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)=>So(`audio`,e,t,Oo)},{name:`Pdf`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Go,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)=>So(`Pdf`,e,t,Go)},{name:`Excalidraw`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Ko,icon:`PenTool`,category:`embed`,displayName:`Excalidraw`,description:"Embedded snapshot of an `.excalidraw` board, linking to its canvas editor",searchTerms:[`excalidraw`,`board`,`whiteboard`,`sketch`,`drawing`,`canvas`],serialize:(e,t)=>So(`Excalidraw`,e,t,Ko)},{name:`File`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Wo,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)=>So(`File`,e,t,Wo)},{name:`Embed`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Eo,icon:`AppWindow`,category:`embed`,displayName:`Embed`,description:'Inline web embed (iframe) — drop a URL, get a resizable preview pane. For YouTube / Vimeo / Loom prefer `<video src="…">` (player props, click-facade); `<Embed>` auto-rewrites watch URLs as a fallback.',searchTerms:[`embed`,`iframe`,`website`,`page`,`inline`,`frame`,`preview`],placeholder:{label:`Embed a URL`},serialize:(e,t)=>So(`Embed`,e,t,Eo)},{name:`Accordion`,surface:`canonical`,hasChildren:!0,props:ko,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:[`accordion`,`expandable`,`details`,`disclosure`,`collapse`,`fold`],exampleBody:`Body content revealed when the accordion is expanded.`,serialize:(e,t)=>So(`Accordion`,e,t,ko)},{name:`Toggle`,surface:`canonical`,hasChildren:!0,props:ko,icon:`ChevronRight`,category:`content`,displayName:`Toggle`,description:"Standalone expand/collapse block (Notion-style). Same render + props as `<Accordion>` — pick whichever vocabulary matches the vault.",searchTerms:[`toggle`,`collapsible`,`expand`,`details`,`disclosure`,`fold`],exampleBody:`Body content revealed when the toggle is expanded.`,serialize:(e,t)=>So(`Toggle`,e,t,ko)},{name:`Tabs`,surface:`canonical`,hasChildren:!0,emptyChildName:`Tab`,props:Lo,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>
|
|
2
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{r as i}from"./dist-Nvb76hAm.js";import{n as a}from"./dist-PQ5KMVDh.js";import{t as o}from"./react-dom-DPxgxlDT.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{n as c,t as l}from"./with-selector-zVo3Fruj.js";import{a as u,d,f,i as p,l as m,r as h}from"./floating-ui.dom-BYl7JZd0.js";import{a as g,d as _,g as v,i as y,l as b,n as x,o as S,r as C,t as w,u as T}from"./constants-upload-CVKO8P4d.js";import{$ as ee,A as E,B as te,C as ne,F as re,G as ie,K as D,L as O,N as ae,P as oe,Q as se,R as ce,S as le,T as ue,U as de,V as fe,W as pe,X as me,Y as he,_ as ge,a as _e,at as k,b as ve,bt as A,c as ye,ct as j,d as be,et as xe,f as Se,g as Ce,gt as we,h as Te,ht as Ee,it as M,k as N,l as De,mt as Oe,n as P,nt as ke,o as F,ot as Ae,p as je,q as Me,r as Ne,rt as Pe,s as Fe,st as Ie,t as Le,tt as Re,u as ze,ut as Be,v as Ve,vt as I,w as He,x as Ue,y as We,z as L}from"./dist-Dc8tD1th.js";import{t as Ge}from"./dist-C_FzPxEX2.js";import{t as Ke}from"./util-doc-name-DRKmy6g9.js";import{n as qe}from"./_envelope-q8XHEv4O-C-Qnl5Tu.js";import{C as Je,a as Ye,g as Xe,w as Ze}from"./schemas-api-CD98jV86.js";import{t as Qe}from"./note-window-mode-CI3Yju9B.js";import{i as $e}from"./use-apply-config-theme-CYFG76sS.js";import{t as et}from"./createLucideIcon-DdBzwsHe.js";import{t as tt}from"./folder-open-COGOeTzI.js";import{t as nt}from"./trash-2-CchZ0T47.js";import{n as rt,r as it}from"./structural-freshness-CIbkMFA3-CWi_lyiW.js";import{c as at,d as ot,h as st,l as ct}from"./doc-hash-BJkweiX9.js";import{$ as lt,A as ut,B as dt,C as ft,E as pt,G as mt,I as ht,J as gt,K as _t,M as vt,N as yt,P as bt,Q as xt,R as St,S as Ct,T as wt,W as Tt,X as Et,_ as Dt,at as Ot,b as kt,c as At,d as jt,f as Mt,g as Nt,h as Pt,it as Ft,j as It,l as Lt,m as Rt,nt as zt,ot as Bt,p as Vt,q as Ht,rt as Ut,s as Wt,tt as Gt,u as Kt,w as qt,x as Jt,y as Yt,z as Xt}from"./config-provider-BZrRPx0L.js";import{n as Zt,r as Qt}from"./external-link-8lDpeCuR.js";import{_ as $t,b as en,d as tn,f as nn,g as rn,h as an,j as on,k as sn,o as cn,p as ln,v as un,w as dn,x as fn}from"./navigation-targets-DSSJ_2xi.js";import{t as pn}from"./doc-paths-DiEZR__C.js";import{At as mn,Ct as hn,E as gn,F as _n,G as vn,I as R,J as yn,K as bn,M as xn,Mt as Sn,Nt as Cn,P as z,Tt as wn,X as Tn,a as B,c as En,f as Dn,l as On,lt as kn,o as An,r as jn,t as Mn,ut as Nn}from"./dist-BosZaL03.js";import{c as Pn,d as Fn,f as In,i as Ln,l as Rn,m as zn,p as V,r as Bn,t as Vn,u as Hn}from"./cm-theme-Dml6DrPs.js";import{A as Un,C as Wn,E as Gn,H as Kn,I as qn,L as Jn,M as Yn,N as Xn,O as Zn,P as Qn,R as H,S as $n,T as er,_ as tr,a as nr,b as rr,c as ir,h as ar,k as or,m as sr,o as cr,t as lr,x as ur,y as dr,z as fr}from"./lib-CHTgVmKZ.js";import{t as pr}from"./ccount-DGTHxXcy.js";import{n as mr,r as hr}from"./lib-DjmHwbg0.js";import{c as gr,f as _r,n as vr,r as yr,t as br,u as xr}from"./trim-lines-6NHDbF9s.js";import{u as Sr}from"./space-separated-tokens-BMeAno6f.js";import{n as Cr,t as wr}from"./syntax-YjkwC8Y2.js";import{i as Tr,n as Er}from"./page-list-cache-p7dO1d0k.js";import{t as Dr}from"./documents-fetch-BPNWNaEf.js";import{i as Or,n as kr,r as Ar,t as jr}from"./dist-DTvyxWzB.js";import{n as Mr,r as Nr,t as Pr}from"./dist-nSDmHl8c.js";import{t as Fr}from"./dist-CBBf5U_8.js";import{n as Ir}from"./dist-DL4JUOn7.js";import{n as Lr}from"./dist-urhiDaCp.js";import{n as Rr}from"./dist-BjL32yBS.js";import{i as zr,n as Br,r as Vr}from"./dist-Jw9rDwKW.js";import{n as Hr}from"./dist-DxN51Ana2.js";import{t as Ur}from"./stex-BAMK64Qm.js";var Wr=et(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),Gr=et(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Kr=et(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),qr=et(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Jr=et(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),U=n(),W=e(r(),1),Yr=e(o(),1),Xr=s(),Zr=c();function Qr(e){return e.editorView}var $r=new Map([[32,` `],[9,` `],[160,`\xA0`]]);function ei(e){let t=/^&#(x[0-9A-Fa-f]+|X[0-9A-Fa-f]+|[0-9]+);$/.exec(e);if(!t)return null;let n=t[1],r=n[0]===`x`||n[0]===`X`,i=Number.parseInt(r?n.slice(1):n,r?16:10);return Number.isNaN(i)?null:i}function ti(e){let t=ei(e);return t!==null&&$r.has(t)}function ni(e){let t=ei(e);return t===null?null:$r.get(t)??null}var ri=/&#(?:x[0-9A-Fa-f]+|X[0-9A-Fa-f]+|[0-9]+);/g;function ii(e){ri.lastIndex=0;let t=e.match(ri);if(t===null||t.join(``)!==e)return null;let n=``;for(let e of t){let t=ni(e);if(t===null)return null;n+=t}return n}var G={parseFallback:{blockLevel:0,wholeDoc:0,wholeDocBudget:0},jsxRenderFailure:{},jsxAutoConvertFailed:{},jsxAutoConvertSucceeded:{},jsxActionAborted:{},jsxPropDropped:{},jsxMoveFailed:{},jsxStuckCopyFailed:{},jsxStuckDeleteFailed:{},jsxPopoverCloseRestoreFailed:{},jsxKeyboardDeleteFailed:{},jsxChromeDeleteFailed:{},blockGripClickSelectFailed:{},jsxArrowNodeSelectFailed:{}};function ai(){G.parseFallback.blockLevel++}function oi(){G.parseFallback.wholeDoc++}function si(){G.parseFallback.wholeDocBudget++}function ci(e){G.jsxRenderFailure[e]=(G.jsxRenderFailure[e]??0)+1}function li(e){G.jsxAutoConvertFailed[e]=(G.jsxAutoConvertFailed[e]??0)+1}function ui(e){G.jsxAutoConvertSucceeded[e]=(G.jsxAutoConvertSucceeded[e]??0)+1}function di(e){G.jsxActionAborted[e]=(G.jsxActionAborted[e]??0)+1}function fi(e){G.jsxPropDropped[e]=(G.jsxPropDropped[e]??0)+1}function pi(e){G.jsxMoveFailed[e]=(G.jsxMoveFailed[e]??0)+1}function mi(e){G.jsxStuckCopyFailed[e]=(G.jsxStuckCopyFailed[e]??0)+1}function hi(e){G.jsxStuckDeleteFailed[e]=(G.jsxStuckDeleteFailed[e]??0)+1}function gi(e){G.jsxPopoverCloseRestoreFailed[e]=(G.jsxPopoverCloseRestoreFailed[e]??0)+1}function _i(e){G.jsxKeyboardDeleteFailed[e]=(G.jsxKeyboardDeleteFailed[e]??0)+1}function vi(e){G.jsxChromeDeleteFailed[e]=(G.jsxChromeDeleteFailed[e]??0)+1}function yi(e){G.blockGripClickSelectFailed[e]=(G.blockGripClickSelectFailed[e]??0)+1}function bi(e){G.jsxArrowNodeSelectFailed[e]=(G.jsxArrowNodeSelectFailed[e]??0)+1}var xi=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}},Si=/[\uD800-\uDBFF]/,Ci=/[\uDC00-\uDFFF]/,wi=(e,t)=>{let n=0,r=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;for(n>0&&Si.test(e[n-1])&&n--;r+n<e.length&&r+n<t.length&&e[e.length-r-1]===t[t.length-r-1];)r++;return r>0&&Ci.test(e[e.length-r])&&r--,{index:n,remove:e.length-n-r,insert:t.slice(n,t.length-r)}},Ti=(e,t)=>e>>>t|e<<32-t,Ei=e=>Ti(e,2)^Ti(e,13)^Ti(e,22),Di=e=>Ti(e,6)^Ti(e,11)^Ti(e,25),Oi=e=>Ti(e,7)^Ti(e,18)^e>>>3,ki=e=>Ti(e,17)^Ti(e,19)^e>>>10,Ai=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ji=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Mi=class{constructor(){let e=new ArrayBuffer(320);this._H=new Uint32Array(e,0,8),this._H.set(ji),this._W=new Uint32Array(e,64,64)}_updateHash(){let e=this._H,t=this._W;for(let e=16;e<64;e++)t[e]=ki(t[e-2])+t[e-7]+Oi(t[e-15])+t[e-16];let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7];for(let e=0,u,d;e<64;e++)u=l+Di(o)+(o&s^~o&c)+Ai[e]+t[e]>>>0,d=Ei(n)+(n&r^n&i^r&i)>>>0,l=c,c=s,s=o,o=a+u>>>0,a=i,i=r,r=n,n=u+d>>>0;e[0]+=n,e[1]+=r,e[2]+=i,e[3]+=a,e[4]+=o,e[5]+=s,e[6]+=c,e[7]+=l}digest(e){let t=0;for(;t+56<=e.length;){let n=0;for(;n<16&&t+3<e.length;n++)this._W[n]=e[t++]<<24|e[t++]<<16|e[t++]<<8|e[t++];if(t%64!=0){for(this._W.fill(0,n,16);t<e.length;)this._W[n]|=e[t]<<(3-t%4)*8,t++;this._W[n]|=128<<(3-t%4)*8}this._updateHash()}let n=t%64!=0;this._W.fill(0,0,16);let r=0;for(;t<e.length;r++)for(let n=3;n>=0&&t<e.length;n--)this._W[r]|=e[t++]<<n*8;n||(this._W[r-(t%4==0?0:1)]|=128<<(3-t%4)*8),this._W[14]=e.byteLength/Ft,this._W[15]=e.byteLength*8,this._updateHash();let i=new Uint8Array(32);for(let e=0;e<this._H.length;e++)for(let t=0;t<4;t++)i[e*4+t]=this._H[e]>>>(3-t)*8;return i}},Ni=e=>new Mi().digest(e),K=new k(`y-sync`),Pi=new k(`y-undo`),Fi=new k(`yjs-cursor`),Ii=e=>{for(let t=6;t<e.length;t++)e[t%6]=e[t%6]^e[t];return e.slice(0,6)},Li=e=>mt(Ii(Ni(Tt(e)))),Ri=()=>({mapping:new Map,isOMark:new Map}),zi=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&t.sv.get(e.id.client)>e.id.clock&&!vt(t.ds,e.id),Bi=[{light:`#ecd44433`,dark:`#ecd444`}],Vi=(e,t,n)=>{if(!e.has(n)){if(e.size<t.length){let n=Ut();e.forEach(e=>n.add(e)),t=t.filter(e=>!n.has(e))}e.set(n,Et(t))}return e.get(n)},Hi=(e,{colors:t=Bi,colorMapping:n=new Map,permanentUserData:r=null,onFirstRender:i=()=>{},mapping:a}={})=>{let o=!1,s=new Ki(e,a),c=new M({props:{editable:e=>{let t=K.getState(e);return t.snapshot==null&&t.prevSnapshot==null}},key:K,state:{init:(i,a)=>({type:e,doc:e.doc,binding:s,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:t,colorMapping:n,permanentUserData:r}),apply:(e,t)=>{let n=e.getMeta(K);if(n!==void 0){t=Object.assign({},t);for(let e in n)t[e]=n[e]}return t.addToHistory=e.getMeta(`addToHistory`)!==!1,t.isChangeOrigin=n!==void 0&&!!n.isChangeOrigin,t.isUndoRedoOperation=n!==void 0&&!!n.isChangeOrigin&&!!n.isUndoRedoOperation,s.prosemirrorView!==null&&n!==void 0&&(n.snapshot!=null||n.prevSnapshot!=null)&&Xt(0,()=>{s.prosemirrorView!=null&&(n.restore==null?s._renderSnapshot(n.snapshot,n.prevSnapshot,t):(s._renderSnapshot(n.snapshot,n.snapshot,t),delete t.restore,delete t.snapshot,delete t.prevSnapshot,s.mux(()=>{s._prosemirrorChanged(s.prosemirrorView.state.doc)})))}),t}},view:e=>(s.initView(e),a??s._forceRerender(),i(),{update:()=>{let t=c.getState(e.state);if(t.snapshot==null&&t.prevSnapshot==null&&(o||e.state.doc.content.findDiffStart(e.state.doc.type.createAndFill().content)!==null)){if(o=!0,t.addToHistory===!1&&!t.isChangeOrigin){let t=Pi.getState(e.state),n=t&&t.undoManager;n&&n.stopCapturing()}s.mux(()=>{t.doc.transact(n=>{n.meta.set(`addToHistory`,t.addToHistory),s._prosemirrorChanged(e.state.doc)},K)})}},destroy:()=>{s.destroy()}})});return c},Ui=(e,t,n)=>{if(t!==null&&t.anchor!==null&&t.head!==null)if(t.type===`all`)e.setSelection(new ke(e.doc));else if(t.type===`node`){let r=wa(n.doc,n.type,t.anchor,n.mapping);e.setSelection(Wi(e,r))}else{let r=wa(n.doc,n.type,t.anchor,n.mapping),i=wa(n.doc,n.type,t.head,n.mapping);r!==null&&i!==null&&e.setSelection(j.between(e.doc.resolve(r),e.doc.resolve(i)))}},Wi=(e,t)=>{let n=e.doc.resolve(t);return n.nodeAfter?Pe.create(e.doc,t):j.near(n)},Gi=(e,t)=>({type:t.selection.jsonID,anchor:Sa(t.selection.anchor,e.type,e.mapping),head:Sa(t.selection.head,e.type,e.mapping)}),Ki=class{constructor(e,t=new Map){this.type=e,this.prosemirrorView=null,this.mux=xi(),this.mapping=t,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=e.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=Gi(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta(`addToHistory`,!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?(_t&&this._domSelectionInView===null&&(Xt(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){let e=this.prosemirrorView._root.getSelection();if(e==null||e.anchorNode==null)return!1;let t=this.prosemirrorView._root.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),t.getClientRects().length===0&&t.startContainer&&t.collapsed&&t.selectNodeContents(t.startContainer);let n=t.getBoundingClientRect(),r=dt.documentElement;return n.bottom>=0&&n.right>=0&&n.left<=(window.innerWidth||r.clientWidth||0)&&n.top<=(window.innerHeight||r.clientHeight||0)}renderSnapshot(e,t){t||=pt(Ct(),new Map),this.prosemirrorView.dispatch(this._tr.setMeta(K,{snapshot:e,prevSnapshot:t}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{let e=this.type.toArray().map(e=>Ji(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),t=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(e),0,0));t.setMeta(K,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(t)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{let e=this.beforeTransactionSelection===null?this.prosemirrorView.state.selection:null,t=this.type.toArray().map(e=>Ji(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(t),0,0));if(e){let t=Bt(Ot(e.anchor,0),n.doc.content.size),r=Bt(Ot(e.head,0),n.doc.content.size);n.setSelection(j.create(n.doc,t,r))}this.prosemirrorView.dispatch(n.setMeta(K,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(e,t,n){let r=this.doc,i=this.type;if(e||=ht(this.doc),e instanceof Uint8Array||t instanceof Uint8Array)if((!(e instanceof Uint8Array)||!(t instanceof Uint8Array))&&zt(),r=new Kt({gc:!1}),Yt(r,t),t=ht(r),Yt(r,e),e=ht(r),i._item===null){let e=Array.from(this.doc.share.keys()).find(e=>this.doc.share.get(e)===this.type);i=r.getXmlFragment(e)}else{let e=r.store.clients.get(i._item.id.client)??[];i=e[ut(e,i._item.id.clock)].content.type}this.mapping.clear(),this.mux(()=>{r.transact(r=>{let a=n.permanentUserData;a&&a.dss.forEach(e=>{bt(r,e,e=>{})});let o=(e,t)=>{let r=e===`added`?a.getUserByClientId(t.client):a.getUserByDeletedId(t);return{user:r,type:e,color:Vi(n.colorMapping,n.colors,r)}},s=St(i,new Vt(t.ds,e.sv)).map(n=>!n._item.deleted||zi(n._item,e)||zi(n._item,t)?Ji(n,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},e,t,o):null).filter(e=>e!==null),c=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(s),0,0));this.prosemirrorView.dispatch(c.setMeta(K,{isChangeOrigin:!0}))},K)})}_typeChanged(e,t){if(this.prosemirrorView==null)return;let n=K.getState(this.prosemirrorView.state);if(e.length===0||n.snapshot!=null||n.prevSnapshot!=null){this.renderSnapshot(n.snapshot,n.prevSnapshot);return}this.mux(()=>{let e=(e,t)=>this.mapping.delete(t);bt(t,t.deleteSet,e=>{if(e.constructor===jt){let t=e.content.type;t&&this.mapping.delete(t)}}),t.changed.forEach(e),t.changedParentTypes.forEach(e);let n=this.type.toArray().map(e=>qi(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),r=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new A(I.from(n),0,0));Ui(r,this.beforeTransactionSelection,this),r=r.setMeta(K,{isChangeOrigin:!0,isUndoRedoOperation:t.origin instanceof Rt}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&r.scrollIntoView(),this.prosemirrorView.dispatch(r)})}_prosemirrorChanged(e){this.doc.transact(()=>{ha(this.doc,this.type,e,this),this.beforeTransactionSelection=Gi(this,this.prosemirrorView.state)},K)}initView(e){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=e,this.doc.on(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.on(`afterAllTransactions`,this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.off(`afterAllTransactions`,this.afterAllTransactions))}},qi=(e,t,n,r,i,a)=>{let o=n.mapping.get(e);if(o===void 0){if(e instanceof Nt)return Ji(e,t,n,r,i,a);throw Gt()}return o},Ji=(e,t,n,r,i,a)=>{let o=[],s=e=>{if(e instanceof Nt){let s=qi(e,t,n,r,i,a);s!==null&&o.push(s)}else{let s=e._item.right?.content?.type;s instanceof Pt&&!s._item.deleted&&s._item.id.client===s.doc.clientID&&(e.applyDelta([{retain:e.length},...s.toDelta()]),s.doc.transact(e=>{s._item.delete(e)}));let c=Yi(e,t,n,r,i,a);c!==null&&c.forEach(e=>{e!==null&&o.push(e)})}};r===void 0||i===void 0?e.toArray().forEach(s):St(e,new Vt(i.ds,r.sv)).forEach(s);try{let s=e.getAttributes(r);r!==void 0&&(zi(e._item,r)?zi(e._item,i)||(s.ychange=a?a(`added`,e._item.id):{type:`added`}):s.ychange=a?a(`removed`,e._item.id):{type:`removed`});let c=ia(s),l=pa(c.marks,t),u=t.node(e.nodeName,c.plain,o,l.length?l:void 0);return n.mapping.set(e,u),u}catch(r){console.warn(`[y-prosemirror] schema.node(`+e.nodeName+`) threw:`,String(r&&r.message||r));let i=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};if(t.nodes[e.nodeName]&&t.nodes[e.nodeName].spec&&t.nodes[e.nodeName].spec.inline)i.inline++;else if(i.block++,t.nodes.rawMdxFallback)try{let i=t.node(`rawMdxFallback`,{reason:String(r&&r.message||r)},[t.text(e.nodeName)]);return n.mapping.set(e,i),i}catch(e){console.warn(`[y-prosemirror] rawMdxFallback substitution also failed:`,String(e&&e.message||e))}return n.mapping.delete(e),null}},Yi=(e,t,n,r,i,a)=>{let o=[],s=e.toDelta(r,i,a);try{for(let e=0;e<s.length;e++){let n=s[e];o.push(t.text(n.insert,pa(n.attributes,t)))}}catch(e){console.warn(`[y-prosemirror] schema.text() threw:`,String(e&&e.message||e));let t=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};return t.inline++,null}return o},Xi=(e,t)=>{let n=new Dt,r=e.map(e=>({insert:e.text,attributes:ma(e.marks,t)}));return n.applyDelta(r),t.mapping.set(n,e),n},Zi=(e,t)=>{let n=new Nt(e.type.name);for(let t in e.attrs){let r=e.attrs[t];r!==null&&t!==`ychange`&&n.setAttribute(t,r)}let r=ma(e.marks||[],t);for(let e in r)n.setAttribute(ra+e,{...r[e]});return n.insert(0,ta(e).map(e=>Qi(e,t))),t.mapping.set(n,e),n},Qi=(e,t)=>e instanceof Array?Xi(e,t):Zi(e,t),$i=e=>typeof e==`object`&&!!e,ea=(e,t)=>{let n=Object.keys(e).filter(t=>e[t]!==null),r=n.length===Object.keys(t).filter(e=>t[e]!==null).length;for(let i=0;i<n.length&&r;i++){let a=n[i],o=e[a],s=t[a];r=a===`ychange`||o===s||$i(o)&&$i(s)&&ea(o,s)}return r},ta=e=>{let t=e.content.content,n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.isText){let r=[];for(let n=t[e];e<t.length&&n.isText;n=t[++e])r.push(n);e--,n.push(r)}else n.push(r)}return n},na=(e,t)=>{let n=e.toDelta();return n.length===t.length&&n.every((e,n)=>e.insert===t[n].text&>(e.attributes||{}).length===t[n].marks.length&&Ht(e.attributes,(e,r)=>{let i=fa(r),a=t[n].marks;return a.find(e=>e.type.name===i)?ea(e,a.find(e=>e.type.name===i)?.attrs):!1}))},ra=`ymark:`,ia=e=>{let t={},n={};for(let r in e)r.startsWith(ra)?n[r.slice(6)]=e[r]:t[r]=e[r];return{plain:t,marks:n}},aa=(e,t)=>{let n=Object.keys(e);return n.length===t.length?n.every(n=>{let r=fa(n),i=t.find(e=>e.type.name===r);return i?ea(e[n],i.attrs):!1}):!1},oa=(e,t)=>{if(e instanceof Nt&&!(t instanceof Array)&&ga(e,t)){let n=ta(t),r=ia(e.getAttributes());return e._length===n.length&&aa(r.marks,t.marks)&&ea(r.plain,t.attrs)&&e.toArray().every((e,t)=>oa(e,n[t]))}return e instanceof Dt&&t instanceof Array&&na(e,t)},sa=(e,t)=>e===t||e instanceof Array&&t instanceof Array&&e.length===t.length&&e.every((e,n)=>t[n]===e),ca=(e,t,n)=>{let r=e.toArray(),i=ta(t),a=i.length,o=r.length,s=Bt(o,a),c=0,l=0,u=!1;for(;c<s;c++){let e=r[c],t=i[c];if(sa(n.mapping.get(e),t))u=!0;else if(!oa(e,t))break}for(;c+l<s;l++){let e=r[o-l-1],t=i[a-l-1];if(sa(n.mapping.get(e),t))u=!0;else if(!oa(e,t))break}return{equalityFactor:c+l,foundMappedChild:u}},la=e=>{let t=``,n=e._start,r={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof At?t+=n.content.str:n.content instanceof Wt&&(r[n.content.key]=null)),n=n.right;return{str:t,nAttrs:r}},ua=(e,t,n)=>{n.mapping.set(e,t);let{nAttrs:r,str:i}=la(e),a=t.map(e=>({insert:e.text,attributes:Object.assign({},r,ma(e.marks,n))})),{insert:o,remove:s,index:c}=wi(i,a.map(e=>e.insert).join(``));e.delete(c,s),e.insert(c,o),e.applyDelta(a.map(e=>({retain:e.insert.length,attributes:e.attributes})))},da=/(.*)(--[a-zA-Z0-9+/=]{8})$/,fa=e=>da.exec(e)?.[1]??e,pa=(e,t)=>{let n=[];for(let r in e)n.push(t.mark(fa(r),e[r]));return n},ma=(e,t)=>{let n={};return e.forEach(e=>{if(e.type.name!==`ychange`){let r=lt(t.isOMark,e.type,()=>!e.type.excludes(e.type));n[r?`${e.type.name}--${Li(e.toJSON())}`:e.type.name]=e.attrs}}),n},ha=(e,t,n,r)=>{if(t instanceof Nt&&t.nodeName!==n.type.name)throw Error(`node name mismatch!`);if(r.mapping.set(t,n),t instanceof Nt){let e=t.getAttributes(),i=n.attrs;for(let n in i)i[n]===null?t.removeAttribute(n):e[n]!==i[n]&&n!==`ychange`&&t.setAttribute(n,i[n]);for(let n in e)i[n]===void 0&&!n.startsWith(ra)&&t.removeAttribute(n);let a=ma(n.marks||[],r);for(let n in a){let r=e[ra+n];(r===void 0||!ea(r,a[n]))&&t.setAttribute(ra+n,{...a[n]})}for(let n in e)n.startsWith(ra)&&a[n.slice(6)]===void 0&&t.removeAttribute(n)}let i=ta(n),a=i.length,o=t.toArray(),s=o.length,c=Bt(a,s),l=0,u=0;for(;l<c;l++){let e=o[l],t=i[l];if(!sa(r.mapping.get(e),t))if(oa(e,t))r.mapping.set(e,t);else break}for(;u+l+1<c;u++){let e=o[s-u-1],t=i[a-u-1];if(!sa(r.mapping.get(e),t))if(oa(e,t))r.mapping.set(e,t);else break}e.transact(()=>{for(;s-l-u>0&&a-l-u>0;){let n=o[l],c=i[l],d=o[s-u-1],f=i[a-u-1];if(n instanceof Dt&&c instanceof Array)na(n,c)||ua(n,c,r),l+=1;else{let i=n instanceof Nt&&ga(n,c),a=d instanceof Nt&&ga(d,f);if(i&&a){let e=ca(n,c,r),t=ca(d,f,r);e.foundMappedChild&&!t.foundMappedChild?a=!1:!e.foundMappedChild&&t.foundMappedChild||e.equalityFactor<t.equalityFactor?i=!1:a=!1}i?(ha(e,n,c,r),l+=1):a?(ha(e,d,f,r),u+=1):(r.mapping.delete(t.get(l)),t.delete(l,1),t.insert(l,[Qi(c,r)]),l+=1)}}let n=s-l-u;if(s===1&&a===0&&o[0]instanceof Dt?(r.mapping.delete(o[0]),o[0].delete(0,o[0].length)):n>0&&(t.slice(l,l+n).forEach(e=>r.mapping.delete(e)),t.delete(l,n)),l+u<a){let e=[];for(let t=l;t<a-u;t++)e.push(Qi(i[t],r));t.insert(l,e)}},K)},ga=(e,t)=>!(t instanceof Array)&&e.nodeName===t.type.name,_a=null,va=class{constructor(e,t,n){this.view=e,this.key=t,this.value=n}apply(){let e=K.getState(this.view.state);if(e&&e.binding&&!e.binding.isDestroyed){let e=this.view.state.tr;e.setMeta(this.key,this.value),this.view.dispatch(e)}}},ya=class e{constructor(e=[]){this.entries=e}getFirst(){return this.entries[0]}dequeueFirst(){return this.entries.shift()}isEmpty(){return this.entries.length===0}static fromViewsToUpdate(){let t=_a;_a=null;let n=[];return t.forEach((e,t)=>{e.forEach((e,r)=>{n.push(new va(t,r,e))})}),new e(n)}},ba=(e=ya.fromViewsToUpdate(),t=!1)=>{let n=!0;for(;!e.isEmpty();){let r=e.getFirst();try{r.apply()}catch(r){if(r instanceof RangeError){t&&n&&e.dequeueFirst(),e.isEmpty()||Xt(0,()=>ba(e,!0));return}throw r}n=!1,e.dequeueFirst()}},xa=(e,t,n)=>{_a||(_a=new Map,Xt(0,ba)),lt(_a,e,xt).set(t,n)},Sa=(e,t,n)=>{if(e===0)return wt(t,0,-1);let r=t._first===null?null:t._first.content.type;for(;r!==null&&t!==r;){if(r instanceof Dt){if(r._length>=e)return wt(r,e,-1);if(e-=r._length,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{do r=r._item===null?null:r._item.parent,e--;while(r!==t&&r!==null&&r._item!==null&&r._item.next===null);r!==null&&r!==t&&(r=r._item===null?null:r._item.next.content.type)}}else{let i=(n.get(r)||{nodeSize:0}).nodeSize;if(r._first!==null&&e<i)r=r._first.content.type,e--;else{if(e===1&&r._length===0&&i>1)return new Mt(r._item===null?null:r._item.id,r._item===null?It(r):null,null);if(e-=i,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{if(e===0)return r=r._item===null?r:r._item.parent,new Mt(r._item===null?null:r._item.id,r._item===null?It(r):null,null);do r=r._item.parent,e--;while(r!==t&&r._item.next===null);r!==t&&(r=r._item.next.content.type)}}}if(r===null)throw zt();if(e===0&&r.constructor!==Dt&&r!==t)return Ca(r._item.parent,r._item)}return wt(t,t._length,-1)},Ca=(e,t)=>{let n=null,r=null;return e._item===null?r=It(e):n=ft(e._item.id.client,e._item.id.clock),new Mt(n,r,t.id)},wa=(e,t,n,r)=>{let i=Jt(n,e);if(i===null||i.type!==t&&!yt(t,i.type._item))return null;let a=i.type,o=0;if(a.constructor===Dt)o=i.index;else if(a._item===null||!a._item.deleted){let e=a._first,t=0;for(;t<a._length&&t<i.index&&e!==null;){if(!e.deleted){let n=e.content.type;if(t++,n instanceof Dt)o+=n._length;else{let e=r.get(n);if(e==null)return null;o+=e.nodeSize}}e=e.right}o+=1}for(;a!==t&&a._item!==null;){let e=a._item.parent;if(e._item===null||!e._item.deleted){o+=1;let t=e._first;for(;t!==null;){let e=t.content.type;if(e===a)break;if(!t.deleted)if(e instanceof Dt)o+=e._length;else{let t=r.get(e);if(t==null)return null;o+=t.nodeSize}t=t.right}}a=e}return o-1},Ta=(e,t)=>{let n=e.toArray().map(e=>Ji(e,t,Ri())).filter(e=>e!==null);return I.fromArray(n)},Ea=(e,t)=>t.topNodeType.create(null,Ta(e,t)),Da=(e,t)=>{let n=Ri(),r=e.toArray().map(e=>Ji(e,t,n)).filter(e=>e!==null);return{doc:t.topNodeType.create(null,I.fromArray(r)),meta:n,mapping:n.mapping}},Oa=(e,t,n)=>e!==t,ka=e=>{let t=document.createElement(`span`);t.classList.add(`ProseMirror-yjs-cursor`),t.setAttribute(`style`,`border-color: ${e.color}`);let n=document.createElement(`div`);n.setAttribute(`style`,`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null);let r=document.createTextNode(``),i=document.createTextNode(``);return t.insertBefore(r,null),t.insertBefore(n,null),t.insertBefore(i,null),t},Aa=e=>({style:`background-color: ${e.color}70`,class:`ProseMirror-yjs-selection`}),ja=/^#[0-9a-fA-F]{6}$/,Ma=(e,t,n,r,i)=>{let a=K.getState(e);if(a==null||a.doc==null||a.binding==null)return me.create(e.doc,[]);let o=a.doc,s=[];return a.snapshot!=null||a.prevSnapshot!=null||a.binding.mapping.size===0?me.create(e.doc,[]):(t.getStates().forEach((t,c)=>{if(n(o.clientID,c,t)&&t.cursor!=null){let n=t.user||{};n.color==null?n.color=`#ffa500`:ja.test(n.color)||console.warn(`A user uses an unsupported color format`,n),n.name??=`User: ${c}`;let l=wa(o,a.type,qt(t.cursor.anchor),a.binding.mapping),u=wa(o,a.type,qt(t.cursor.head),a.binding.mapping);if(l!==null&&u!==null){let t=Ot(e.doc.content.size-1,0);l=Bt(l,t),u=Bt(u,t),s.push(he.widget(u,()=>r(n,c),{key:c+``,side:10}));let a=Bt(l,u),o=Ot(l,u);s.push(he.inline(a,o,i(n,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),me.create(e.doc,s))},Na=(e,{awarenessStateFilter:t=Oa,cursorBuilder:n=ka,selectionBuilder:r=Aa,getSelection:i=e=>e.selection}={},a=`cursor`)=>new M({key:Fi,state:{init(i,a){return Ma(a,e,t,n,r)},apply(i,a,o,s){let c=K.getState(s),l=i.getMeta(Fi);return c&&c.isChangeOrigin||l&&l.awarenessUpdated?Ma(s,e,t,n,r):a.map(i.mapping,i.doc)}},props:{decorations:e=>Fi.getState(e)},view:t=>{let n=()=>{t.docView&&xa(t,Fi,{awarenessUpdated:!0})},r=()=>{let n=K.getState(t.state),r=e.getLocalState()||{};if(t.hasFocus()){let o=i(t.state),s=Sa(o.anchor,n.type,n.binding.mapping),c=Sa(o.head,n.type,n.binding.mapping);(r.cursor==null||!kt(qt(r.cursor.anchor),s)||!kt(qt(r.cursor.head),c))&&e.setLocalStateField(a,{anchor:s,head:c})}else r.cursor!=null&&wa(n.doc,n.type,qt(r.cursor.anchor),n.binding.mapping)!==null&&e.setLocalStateField(a,null)};return e.on(`change`,n),t.dom.addEventListener(`focusin`,r),t.dom.addEventListener(`focusout`,r),{update:r,destroy:()=>{t.dom.removeEventListener(`focusin`,r),t.dom.removeEventListener(`focusout`,r),e.off(`change`,n),e.setLocalStateField(a,null)}}}}),Pa=e=>{let t=Pi.getState(e).undoManager;if(t!=null)return t.undo(),!0},Fa=e=>{let t=Pi.getState(e).undoManager;if(t!=null)return t.redo(),!0},Ia=new Set([`paragraph`]),La=(e,t)=>!(e instanceof jt)||!(e.content instanceof Lt)||!(e.content.type instanceof Pt||e.content.type instanceof Nt&&t.has(e.content.type.nodeName))||e.content.type._length===0,Ra=({protectedNodes:e=Ia,trackedOrigins:t=[],undoManager:n=null}={})=>new M({key:Pi,state:{init:(r,i)=>{let a=K.getState(i),o=n||new Rt(a.type,{trackedOrigins:new Set([K].concat(t)),deleteFilter:t=>La(t,e),captureTransaction:e=>e.meta.get(`addToHistory`)!==!1});return{undoManager:o,prevSel:null,hasUndoOps:o.undoStack.length>0,hasRedoOps:o.redoStack.length>0}},apply:(e,t,n,r)=>{let i=K.getState(r).binding,a=t.undoManager,o=a.undoStack.length>0,s=a.redoStack.length>0;return i?{undoManager:a,prevSel:Gi(i,n),hasUndoOps:o,hasRedoOps:s}:o!==t.hasUndoOps||s!==t.hasRedoOps?Object.assign({},t,{hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}):t}},view:e=>{let t=K.getState(e.state),n=Pi.getState(e.state).undoManager;return n.on(`stack-item-added`,({stackItem:n})=>{let r=t.binding;r&&n.meta.set(r,Pi.getState(e.state).prevSel)}),n.on(`stack-item-popped`,({stackItem:e})=>{let n=t.binding;n&&(n.beforeTransactionSelection=e.meta.get(n)||n.beforeTransactionSelection)}),{destroy:()=>{n.destroy()}}}}),za=new Map,Ba=new Set;function Va(){for(let e of Ba)e()}function Ha(e,t,n){za.set(e,{view:t,host:n}),Va()}function Ua(e,t){za.get(e)?.view===t&&(za.delete(e),Va())}function Wa(e){let t=za.get(e);return t?.host===`sourceEditor`?t.view:null}function Ga(e){return za.get(e)??null}function Ka(e){return Ba.add(e),()=>{Ba.delete(e)}}var qa=new WeakMap,Ja=new WeakMap;function Ya(e,t){qa.set(e,t)}function Xa(e){return qa.get(e)??!1}function Za(e,t){Ja.set(e,t)}function Qa(e){return Ja.get(e)??!1}function $a(e){return!Xa(e)}var eo=`autonomousFragmentEdit/swap`;function to(e){return e.setMeta(eo,!0)}function no(e,t,n){return n===t.textContent?to(e):e}function ro(e){return e.getMeta(eo)===!0}function io(e){return!e.getMeta(K)&&!ro(e)}var ao=/^[A-Za-z0-9]{20,}$/,oo=/^(?:\d+s?|(?:\d+h)?(?:\d+m)?(?:\d+s)?)$/;function so(e){let t=e.toLowerCase();return t===`loom.com`||t===`www.loom.com`}function co(e){let t=e.pathname.match(/^\/(?:share|embed)\/([A-Za-z0-9]+)\/?$/);if(!t)return null;let n=t[1]??``;return ao.test(n)?n:null}function lo(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:`||!so(t.hostname))return null;let n=co(t);if(!n)return null;let r=t.searchParams.get(`t`);return{id:n,startRaw:r&&r.length>0&&oo.test(r)?r:null}}function uo(e){return lo(e)!==null}function fo(e){let t=e.toLowerCase();return t===`vimeo.com`||t===`www.vimeo.com`||t===`player.vimeo.com`}function po(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:fo(t.hostname)}var mo=/^[A-Za-z0-9_-]{11}$/;function ho(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 go(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 _o(e){if(e.hostname.toLowerCase()===`youtu.be`){let t=e.pathname.replace(/^\//,``).split(`/`)[0]??``;return mo.test(t)?t:null}if(e.pathname===`/watch`){let t=e.searchParams.get(`v`)??``;return mo.test(t)?t:null}let t=e.pathname.match(/^\/(?:embed|shorts|v)\/([A-Za-z0-9_-]{11})\/?$/);return t?t[1]??null:null}function vo(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:`||!ho(t.hostname))return null;let n=_o(t);if(!n)return null;let r=t.searchParams.get(`t`)??t.searchParams.get(`start`)??``;return{id:n,startSeconds:r.length>0?go(r):null,noCookie:t.hostname.toLowerCase().endsWith(`youtube-nocookie.com`)}}function yo(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}if(r>=0){let e=n[r];if(e.type===`mdxJsxAttribute`&&e.value!=null&&typeof e.value==`object`&&e.value.type===`mdxJsxAttributeValueExpression`&&bo(e.value.value,t))continue}let o=xo(e,t);r>=0?n[r]=o:n.push(o)}return n}function bo(e,t){try{return JSON.stringify(JSON.parse(e))===JSON.stringify(t)}catch{return!1}}function xo(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 So(e,t,n,r){return{type:`mdxJsxFlowElement`,name:e,attributes:yo(t,r),children:n.all(t),data:{}}}function Co(e,t,n){let r=t.attrs.props?.children;return{type:`mdxJsxTextElement`,name:e,attributes:yo(t,n),children:typeof r==`string`&&r!==``?[{type:`text`,value:r}]:[],data:{}}}var wo=[{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`)",colorPicker:!0},{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`}],To=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Image source URL`,accept:x,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`,hidden:!0}],Eo=[{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")`,cssLengthInput:!0},{name:`height`,type:`string`,required:!1,advanced:!0,description:`Embed height as a CSS length (e.g. "26rem", "480px")`,cssLengthInput:!0},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`,hidden:!0}],Do=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Video source URL`,accept:y,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`&&(po(e.src)||uo(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:x,hideWhen:e=>typeof e.src==`string`&&(po(e.src)||uo(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`&&uo(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`&&(po(e.src)||uo(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`&&(vo(e.src)!==null||po(e.src)||uo(e.src))},{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`],defaultValue:`center`,required:!1,omitOnDefault:!0,description:`Alignment within the column`,hidden:!0}],Oo=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`Audio source URL`,accept:w,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`}],ko=[{name:`title`,type:`string`,required:!0,description:`Heading shown inside the <summary>`},{name:`defaultOpen`,type:`boolean`,required:!1,defaultValue:!1,description:`When true, the block 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`}],Ao=[wo[0],wo[1],wo[4],wo[5],wo[6]],jo=[To[0],To[1],To[7]],Mo=[ko[0],ko[1],ko[4],ko[5]],No=[{name:`align`,type:`enum`,enumValues:[`center`,`left`,`right`,`justify`],required:!1,defaultValue:`center`,description:"Block alignment from the `<div align>` attribute."},{name:`tag`,type:`string`,required:!1,defaultValue:`div`,hidden:!0,description:`Source wrapper tag (div or center).`},{name:`sourceAttrs`,type:`string`,required:!1,defaultValue:``,hidden:!0,description:`Raw opener-tag attribute bytes preserved for round-trip.`}],Po=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Alt text (Obsidian alias syntax: `![[file.png|alt text]]`)"}],Fo=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[clip.mp4|title]]`)"}],Io=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Title text (Obsidian alias syntax: `![[song.mp3|title]]`)"}],Lo=[{name:`id`,type:`string`,required:!1,advanced:!0,description:"HTML id attribute for deep-linking (e.g. `#install-tabs`)"}],Ro=[{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`)"}],zo=[{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."}],Bo=[zo[0]],Vo=[zo[0]],Ho=[{name:`chart`,type:`string`,required:!0,hidden:!0,description:`Mermaid chart source (graph / flowchart / sequenceDiagram / class / state / etc.)`}],Uo=[{name:`alias`,type:`string`,required:!1,defaultValue:``,description:"Display name override (Obsidian alias syntax: `![[file.zip|label]]`)"}],Wo=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`File URL`,accept:[`*/*`],autoFocus:!0}],Go=[{name:`src`,type:`string`,required:!0,defaultValue:``,description:`PDF source URL`,accept:C,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`)"}],Ko=[{name:`src`,type:`string`,required:!0,description:"Path to the `.excalidraw` board this embed renders",autoFocus:!0},{name:`title`,type:`string`,required:!1,advanced:!0,description:`Accessible label for the embedded board`}],qo=[{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."}],Jo=[{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 Yo(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function Xo(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function Zo(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=typeof t?.sourceTarget==`string`?t.sourceTarget:null,o=typeof t?.sourceAnchor==`string`?t.sourceAnchor:null,s=typeof t?.sourceAlias==`string`?t.sourceAlias:null,c=r??(i?`${n}#${i}`:n);return{type:`wikiLinkEmbed`,value:c,data:{target:n,anchor:i,alias:r,sourceTarget:a,sourceAnchor:o,sourceAlias:s},children:[{type:`text`,value:c}]}}var Qo=[{name:`Callout`,surface:`canonical`,hasChildren:!0,props:wo,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)=>So(`Callout`,e,t,wo)},{name:`img`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:To,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)=>So(`img`,e,t,To)},{name:`video`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Do,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)=>So(`video`,e,t,Do)},{name:`audio`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Oo,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)=>So(`audio`,e,t,Oo)},{name:`Pdf`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Go,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)=>So(`Pdf`,e,t,Go)},{name:`Excalidraw`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Ko,icon:`PenTool`,category:`embed`,displayName:`Excalidraw`,description:"Embedded snapshot of an `.excalidraw` board, linking to its canvas editor",searchTerms:[`excalidraw`,`board`,`whiteboard`,`sketch`,`drawing`,`canvas`],serialize:(e,t)=>So(`Excalidraw`,e,t,Ko)},{name:`File`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Wo,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)=>So(`File`,e,t,Wo)},{name:`Embed`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Eo,icon:`AppWindow`,category:`embed`,displayName:`Embed`,description:'Inline web embed (iframe) — drop a URL, get a resizable preview pane. For YouTube / Vimeo / Loom prefer `<video src="…">` (player props, click-facade); `<Embed>` auto-rewrites watch URLs as a fallback.',searchTerms:[`embed`,`iframe`,`website`,`page`,`inline`,`frame`,`preview`],placeholder:{label:`Embed a URL`},serialize:(e,t)=>So(`Embed`,e,t,Eo)},{name:`Accordion`,surface:`canonical`,hasChildren:!0,props:ko,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:[`accordion`,`expandable`,`details`,`disclosure`,`collapse`,`fold`],exampleBody:`Body content revealed when the accordion is expanded.`,serialize:(e,t)=>So(`Accordion`,e,t,ko)},{name:`Toggle`,surface:`canonical`,hasChildren:!0,props:ko,icon:`ChevronRight`,category:`content`,displayName:`Toggle`,description:"Standalone expand/collapse block (Notion-style). Same render + props as `<Accordion>` — pick whichever vocabulary matches the vault.",searchTerms:[`toggle`,`collapsible`,`expand`,`details`,`disclosure`,`fold`],exampleBody:`Body content revealed when the toggle is expanded.`,serialize:(e,t)=>So(`Toggle`,e,t,ko)},{name:`Tabs`,surface:`canonical`,hasChildren:!0,emptyChildName:`Tab`,props:Lo,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>
|
|
3
3
|
<Tab label="Two">Body of the second tab panel.</Tab>`,serialize:(e,t)=>So(`Tabs`,e,t,Lo)},{name:`Tab`,surface:`canonical`,hasChildren:!0,props:Ro,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)=>So(`Tab`,e,t,Ro)},{name:`Math`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:zo,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)=>So(`Math`,e,t,zo)},{name:`MermaidFence`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,props:Ho,icon:`Workflow`,category:`content`,displayName:`Mermaid`,placeholder:{label:`Add a Mermaid diagram`},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:qo,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)=>So(`Mirror`,e,t,qo)},{name:`MirrorSource`,surface:`canonical`,hasChildren:!0,props:Jo,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)=>So(`MirrorSource`,e,t,Jo)},{name:`GFMCallout`,surface:`compat`,hasChildren:!0,props:Ao,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:jo,icon:`Image`,category:`media`,displayName:`CommonMark Image`,description:'CommonMark image (``) — read-only compat. Preserves `` 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:Po,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:Zo},{name:`WikiEmbedVideo`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:Fo,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:Zo},{name:`WikiEmbedAudio`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:Io,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:Zo},{name:`WikiEmbedFile`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:Uo,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:Zo},{name:`HtmlDetailsAccordion`,surface:`compat`,hasChildren:!0,props:Mo,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="${Yo(n.name)}"`:``,a=n?.id?` id="${Yo(n.id)}"`:``,o=n?.title?.trim(),s=o?`<summary>${Xo(o)}</summary>`:``;return{type:`mdxJsxFlowElement`,name:`HtmlDetailsAccordion`,attributes:[],children:t.all(e),data:{htmlBoundary:{opener:`<details${r}${i}${a}>\n${s}`,closer:`</details>`}}}}},{name:`HtmlAlignBlock`,surface:`canonical`,hasChildren:!0,props:No,icon:`AlignCenter`,category:`content`,displayName:`Align block`,description:"GitHub-style `<div align>` wrapper. Children render as normal blocks with the alignment applied; the `<div align>` syntax is preserved on round-trip.",searchTerms:[`align`,`center`,`centered`,`div`],serialize:(e,t)=>{let n=e.attrs.props,r=n?.tag===`center`?`center`:`div`,i=typeof n?.align==`string`&&n.align?n.align:null,a=typeof n?.sourceAttrs==`string`?n.sourceAttrs:``,o=/(\balign\s*=\s*)(?:"[^"]*"|'[^']*'|[^\s"'<>]+)/i;return i!==null&&(r===`div`||i!==`center`)?a=o.test(a)?a.replace(o,`$1"${Yo(i)}"`):`${a} align="${Yo(i)}"`:(i===null||r===`center`&&i===`center`)&&(a=a.replace(RegExp(`\\s*${o.source}`,`i`),``)),{type:`mdxJsxFlowElement`,name:`HtmlAlignBlock`,attributes:[],children:t.all(e),data:{htmlBoundary:{opener:`<${r}${a}>`,closer:`</${r}>`}}}}},{name:`DollarMath`,surface:`compat`,hasChildren:!1,isSelfClosing:!0,props:Bo,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:Vo,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??``})}],$o={name:`*`,surface:`canonical`,hasChildren:!0,props:[],description:`Unregistered component — children editable as markdown`,serialize:(e,t)=>So(e.attrs.componentName||`*`,e,t)};function es(){let e=new Map;e.set(`*`,$o);for(let t of Qo)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 ts=_e.create({name:`sourceLiteral`,priority:10,excludes:``,inclusive:!1,addAttributes(){return{sourceRaw:{default:``}}},parseHTML(){return[{tag:`span[data-source-literal]`}]},renderHTML({HTMLAttributes:e}){return[`span`,{"data-source-literal":``,...e},0]}});function ns(e,t){if(typeof e!=`string`||typeof t!=`string`||/[\x00-\x1F\x7F]/.test(e))return!1;let n=e.replaceAll(`\xA0`,` `),r=t.replaceAll(`\xA0`,` `);return n===r||rs(n)===r?!0:ii(e)===t}function rs(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`)}function is(e,t){let{target:n,anchor:r,alias:i}=e;if(!t.separatorCrossed)return e;if(r!==null){let e=cs(r);return{target:n,anchor:e.length>0?e:null,alias:i===null?null:ls(i)}}return{target:cs(n),anchor:null,alias:i===null?null:ls(i)}}function as(e,t,n){let r=e.trim();return r===t?!0:n===`alias`?ls(r)===t:cs(r)===t}function os(e,t,n){return typeof e==`string`&&as(e,t,n)?e:t}function ss(e){return cs(e.trim())===``}function cs(e){return e.endsWith(`\\`)?e.slice(0,-1):e}function ls(e){return e.replace(/\\\|/g,`|`)}function us(e){let t=``,n=0;for(let r of e)r===`\\`?n++:(r===`|`&&n%2==0&&(t+=`\\`),n=0),t+=r;return t}function ds(e){return e.replace(/\|/g,`\\|`)}function fs(e){let t=e.split(`/`).pop()??e,n=t.lastIndexOf(`.`);return n<=0||n===t.length-1?``:t.slice(n+1).toLowerCase()}function ps(e){return e.includes("`")?`~`:"`"}function ms(e,t,n=3){let r=RegExp(`^ {0,3}(\\${e}+)[ \\t]*$`),i=Math.max(3,n);for(let e of t.split(`
|
|
4
4
|
`)){let t=r.exec(e);t&&t[1].length>=i&&(i=t[1].length+1)}return i}var hs=new Set([`break`,`delete`,`emphasis`,`footnoteReference`,`html`,`image`,`imageReference`,`inlineCode`,`link`,`linkReference`,`strong`,`text`]);function gs(e){let t=e.children;Array.isArray(t)&&t.forEach((e,n)=>{if(e.type===`break`){t[n]={type:`html`,value:`<br />`};return}gs(e)})}function _s(e){let t=e.children;if(Array.isArray(t))for(let e of t)(e.type===`inlineCode`||e.type===`html`)&&(e.value.includes(`
|
|
5
5
|
`)&&(e.value=e.value.replace(/[ \t]*\n[ \t]*/g,` `)),e.type===`html`&&e.value.includes(`|`)&&(e.value=ds(e.value))),_s(e)}function vs(e){H(e,`tableCell`,e=>{e.children.some(e=>!hs.has(e.type))&&(e.children=ys(e.children)),gs(e),_s(e)})}function ys(e){let t=[],n=0,r=()=>{t.length>0&&(n+=1)},i=e=>{for(;n>0;)t.push({type:`break`}),--n;t.push(e)},a=e=>{e.split(`
|
package/dist/public/assets/{ContentRulesSection-wbtHcBqr.js → ContentRulesSection-DOJqWd7Z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./label-CvMpFFbN.js";import{i as a,n as o,o as s,s as c,t as l}from"./select-pACXgFe2.js";import{t as u}from"./switch-BKZTXkzu.js";import{n as d}from"./dist-BGzUo_18.js";import{n as f}from"./config-errors-DDAH9fqy.js";import{i as p}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./label-CvMpFFbN.js";import{i as a,n as o,o as s,s as c,t as l}from"./select-pACXgFe2.js";import{t as u}from"./switch-BKZTXkzu.js";import{n as d}from"./dist-BGzUo_18.js";import{n as f}from"./config-errors-DDAH9fqy.js";import{i as p}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-BZrRPx0L.js";import"./saved-themes-client-D09wxYQm.js";import"./markdown-lint-BuEapKhE.js";import{t as m}from"./SettingsSectionHeader-DDNA1hrR.js";var h=r(),g=e();function _(){let e=(0,h.c)(40),{_:r}=n(),{projectConfig:_,projectSynced:v,projectBinding:y}=p(),b=v&&y!==null,x=_?.validation?.links??`warning`,S=_?.validation?.fileTreeIndicators!==!1,C=_?.validation?.suppressLogLinkAdvisories??!0,w;e[0]!==r||e[1]!==y?(w=function(e){if(y===null){d.error(r({id:`dVaXnv`}));return}let t=y.patch({validation:e});t.ok||d.error(r({id:`NrFwux`,values:{0:f(t.error)}}))},e[0]=r,e[1]=y,e[2]=w):w=e[2];let T=w,E;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,g.jsx)(t,{id:`OPOiKn`}),e[3]=E):E=e[3];let D;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,g.jsx)(m,{titleId:`settings-content-rules-title`,title:E,scope:`project`,level:`block`,children:(0,g.jsx)(t,{id:`ge05IJ`})}),e[4]=D):D=e[4];let O;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,g.jsx)(i,{htmlFor:`settings-content-rules-links`,className:`text-sm font-medium`,children:(0,g.jsx)(t,{id:`8ruqQi`})}),e[5]=O):O=e[5];let k;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,g.jsxs)(`div`,{className:`min-w-0`,children:[O,(0,g.jsx)(`p`,{id:`settings-content-rules-links-description`,className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(t,{id:`iqr14Z`})})]}),e[6]=k):k=e[6];let A;e[7]===T?A=e[8]:(A=e=>T({links:e}),e[7]=T,e[8]=A);let j=!b,M;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,g.jsx)(s,{id:`settings-content-rules-links`,"aria-describedby":`settings-content-rules-links-description`,className:`w-36 shrink-0`,"data-testid":`settings-content-rules-links`,children:(0,g.jsx)(c,{})}),e[9]=M):M=e[9];let N;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,g.jsx)(a,{value:`off`,children:(0,g.jsx)(t,{id:`Nwbs0q`})}),e[10]=N):N=e[10];let P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,g.jsx)(a,{value:`warning`,children:(0,g.jsx)(t,{id:`r6y-jM`})}),e[11]=P):P=e[11];let F;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,g.jsxs)(o,{children:[N,P,(0,g.jsx)(a,{value:`error`,children:(0,g.jsx)(t,{id:`SlfejT`})})]}),e[12]=F):F=e[12];let I;e[13]!==x||e[14]!==A||e[15]!==j?(I=(0,g.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3 py-3`,children:[k,(0,g.jsxs)(l,{value:x,onValueChange:A,disabled:j,children:[M,F]})]}),e[13]=x,e[14]=A,e[15]=j,e[16]=I):I=e[16];let L;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,g.jsx)(i,{htmlFor:`settings-content-rules-log-links`,className:`text-sm font-medium`,children:(0,g.jsx)(t,{id:`ea7AYn`})}),e[17]=L):L=e[17];let R;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,g.jsxs)(`div`,{className:`min-w-0`,children:[L,(0,g.jsx)(`p`,{id:`settings-content-rules-log-links-description`,className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(t,{id:`nnhrHd`})})]}),e[18]=R):R=e[18];let z=!b,B;e[19]===T?B=e[20]:(B=e=>T({suppressLogLinkAdvisories:e}),e[19]=T,e[20]=B);let V;e[21]!==C||e[22]!==z||e[23]!==B?(V=(0,g.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3 py-3`,children:[R,(0,g.jsx)(u,{id:`settings-content-rules-log-links`,"aria-describedby":`settings-content-rules-log-links-description`,checked:C,disabled:z,onCheckedChange:B,"data-testid":`settings-content-rules-log-links`})]}),e[21]=C,e[22]=z,e[23]=B,e[24]=V):V=e[24];let H;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,g.jsx)(i,{htmlFor:`settings-content-rules-indicators`,className:`text-sm font-medium`,children:(0,g.jsx)(t,{id:`x3kWeu`})}),e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsxs)(`div`,{className:`min-w-0`,children:[H,(0,g.jsx)(`p`,{id:`settings-content-rules-indicators-description`,className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(t,{id:`ktspdq`})})]}),e[26]=U):U=e[26];let W=!b,G;e[27]===T?G=e[28]:(G=e=>T({fileTreeIndicators:e}),e[27]=T,e[28]=G);let K;e[29]!==S||e[30]!==W||e[31]!==G?(K=(0,g.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3 py-3`,children:[U,(0,g.jsx)(u,{id:`settings-content-rules-indicators`,"aria-describedby":`settings-content-rules-indicators-description`,checked:S,disabled:W,onCheckedChange:G,"data-testid":`settings-content-rules-indicators`})]}),e[29]=S,e[30]=W,e[31]=G,e[32]=K):K=e[32];let q;e[33]!==I||e[34]!==V||e[35]!==K?(q=(0,g.jsxs)(`div`,{className:`divide-y rounded-md border`,children:[I,V,K]}),e[33]=I,e[34]=V,e[35]=K,e[36]=q):q=e[36];let J;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,g.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`settings-content-rules-plugins-note`,children:(0,g.jsx)(t,{id:`YDL7N6`})}),e[37]=J):J=e[37];let Y;return e[38]===q?Y=e[39]:(Y=(0,g.jsxs)(`section`,{"aria-labelledby":`settings-content-rules-title`,className:`space-y-4`,"data-testid":`settings-content-rules`,"data-field":`section:content-rules`,children:[D,q,J]}),e[38]=q,e[39]=Y),Y}export{_ as ContentRulesSection};
|