@inkeep/open-knowledge 0.88.4 → 0.88.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +1 -0
  2. package/dist/cli.mjs +7 -7
  3. package/dist/constants-Bt6puduD.mjs +1 -0
  4. package/dist/{dist-YE1QUVK6.mjs → dist-CVvHVQuh.mjs} +1 -1
  5. package/dist/{dist-BBGeY6nr.mjs → dist-DAAU-wLM.mjs} +1 -1
  6. package/dist/index.d.mts +1 -1
  7. package/dist/index.mjs +119 -119
  8. package/dist/init-BX43J4AG.mjs +1 -0
  9. package/dist/{init-DeovZwa0.mjs → init-By5HDMCa.mjs} +2 -2
  10. package/dist/{launch-json-removal-YCr56oNl.mjs → launch-json-removal-BGcOpHL7.mjs} +1 -1
  11. package/dist/loader-Da_Q5b74.mjs +1 -0
  12. package/dist/{loader-CaZUzouX.mjs → loader-Ui7HnVgy.mjs} +1 -1
  13. package/dist/{md-manager-BGnqyqi1-CSFPyGy0.mjs → md-manager-BGnqyqi1-DW5IsDjR.mjs} +156 -156
  14. package/dist/{open-browser-BuqG6kOx.mjs → open-browser-BLuYnAd6.mjs} +1 -1
  15. package/dist/parse-worker.mjs +1 -1
  16. package/dist/{preview-u7p7GX8K.mjs → preview-CgLoP6aT.mjs} +1 -1
  17. package/dist/preview-PD-DUqnp.mjs +1 -0
  18. package/dist/public/assets/{AboutSection-DoHiqjaH.js → AboutSection-Dk6KkTLD.js} +1 -1
  19. package/dist/public/assets/{AccountSection-dx5z6vfR.js → AccountSection-DMdQ4xcM.js} +1 -1
  20. package/dist/public/assets/{ActivityModeContent-CQrRSeim.js → ActivityModeContent-mR0MBtgI.js} +1 -1
  21. package/dist/public/assets/{AddPropertiesButton-C2CIoZAm.js → AddPropertiesButton-Eyu3Mn2_.js} +1 -1
  22. package/dist/public/assets/{AgentConnectionsSection-DN4d1HNW.js → AgentConnectionsSection-DxQ-OjW3.js} +1 -1
  23. package/dist/public/assets/{AgentDiffPane-BsMl5KoE.js → AgentDiffPane-DncaX777.js} +1 -1
  24. package/dist/public/assets/{AgentIconCluster-gjhntxbl.js → AgentIconCluster-6RCoigPZ.js} +1 -1
  25. package/dist/public/assets/{AttachmentsSection-Be7LvYrV.js → AttachmentsSection-D0K5FLaV.js} +1 -1
  26. package/dist/public/assets/{CodeMirrorPropInput-viDrvKTW.js → CodeMirrorPropInput-B0xn3frp.js} +61 -61
  27. package/dist/public/assets/{ConfigSharingInfoTooltip-BFLyRkPu.js → ConfigSharingInfoTooltip-CJywmyrk.js} +1 -1
  28. package/dist/public/assets/{ConsentDialogBody-DyyNXoO8.js → ConsentDialogBody-DQLbNsL9.js} +1 -1
  29. package/dist/public/assets/{ContentRulesSection-DJa-AAhc.js → ContentRulesSection-BZXw3-Zq.js} +1 -1
  30. package/dist/public/assets/{CopyButton-DM7FN3ou.js → CopyButton-BT2YHECh.js} +1 -1
  31. package/dist/public/assets/{DocumentContext-BKb3GeF8.js → DocumentContext-g-cDYqVv.js} +1 -1
  32. package/dist/public/assets/{EditorModeToggle-C5Eh2kY-.js → EditorModeToggle-bm40hfyi.js} +1 -1
  33. package/dist/public/assets/{ExcalidrawDocEditor-B9826_8K.js → ExcalidrawDocEditor-BiwQRM2B.js} +1 -1
  34. package/dist/public/assets/FeedbackForm-SrqiyGnc.js +1 -0
  35. package/dist/public/assets/{GraphPanel-DkTlYTKG.js → GraphPanel-COXp93Cg.js} +1 -1
  36. package/dist/public/assets/{HotkeysSection-D55HONUJ.js → HotkeysSection-CajedZ--.js} +1 -1
  37. package/dist/public/assets/{ImageAttachments-D1w1uosg.js → ImageAttachments--kYwG922.js} +1 -1
  38. package/dist/public/assets/{ImportSkillDialog-DM-VePNt.js → ImportSkillDialog-DTxSmPAt.js} +1 -1
  39. package/dist/public/assets/{IntegrationsSection-BkGzPQH3.js → IntegrationsSection-BQNs8OE2.js} +1 -1
  40. package/dist/public/assets/{LinkPreviewsSection-BCJshSi5.js → LinkPreviewsSection-fSYr2cXT.js} +1 -1
  41. package/dist/public/assets/{LintConfigEditor-BZ8lUi13.js → LintConfigEditor-BNsJpcQe.js} +1 -1
  42. package/dist/public/assets/{LintingSection-C4KbeWub.js → LintingSection-C6qbTSSp.js} +1 -1
  43. package/dist/public/assets/{ManagedArtifactProperties-C219erka.js → ManagedArtifactProperties-BFjDpWUl.js} +1 -1
  44. package/dist/public/assets/ManagedArtifactProperties-chQ9yE3Q.js +1 -0
  45. package/dist/public/assets/{McpConsentDialogBody-_9U_-_AU.js → McpConsentDialogBody-Cs8EdBNv.js} +1 -1
  46. package/dist/public/assets/{MermaidDocEditor-DOpeqcZb.js → MermaidDocEditor-DeJfa8Di.js} +1 -1
  47. package/dist/public/assets/{NetworkAccessSection-CpPgI3Vu.js → NetworkAccessSection-Bx6Fljc5.js} +1 -1
  48. package/dist/public/assets/{OkCliPathRow-Ci2ChVIJ.js → OkCliPathRow-Dn-a2z6P.js} +1 -1
  49. package/dist/public/assets/{OkignoreSection-CX5Q043q.js → OkignoreSection-jr165zc5.js} +1 -1
  50. package/dist/public/assets/{ProjectTemplatesSection-f4lSAHFv.js → ProjectTemplatesSection-BDL8pwkt.js} +1 -1
  51. package/dist/public/assets/{PropertyDisplayRow-DRAPuvOr.js → PropertyDisplayRow-jPEkDFYU.js} +1 -1
  52. package/dist/public/assets/{PublishToGitHubDialog-BDgmuZZ1.js → PublishToGitHubDialog-D3WS--oe.js} +1 -1
  53. package/dist/public/assets/{ReportBugDialogBody-DqjPW80z.js → ReportBugDialogBody-N9n3BSZV.js} +1 -1
  54. package/dist/public/assets/{ReportBugMenuTrigger-B5oXr3N_.js → ReportBugMenuTrigger-B_QGo0FI.js} +1 -1
  55. package/dist/public/assets/{SchemaConfigEditor-C04mtHFD.js → SchemaConfigEditor-Bri3lm9t.js} +1 -1
  56. package/dist/public/assets/{SearchSection-Dfa3Eu0B.js → SearchSection-Bot6T0ZL.js} +1 -1
  57. package/dist/public/assets/{SessionsHost-KmXA8he7.js → SessionsHost-DrSV4BIY.js} +2 -2
  58. package/dist/public/assets/{SettingsDialogBody-pIN2pxZU.js → SettingsDialogBody-CC-J9ZGQ.js} +2 -2
  59. package/dist/public/assets/{SettingsSectionHeader-CpXcJhPq.js → SettingsSectionHeader-DqND7Pty.js} +1 -1
  60. package/dist/public/assets/{ShareReceiveMissDialog-DLbK0u_N.js → ShareReceiveMissDialog-BHqz3ASe.js} +1 -1
  61. package/dist/public/assets/{SharingSection-B0wr2vDt.js → SharingSection-CP_fHQRg.js} +1 -1
  62. package/dist/public/assets/{SkillCostValue-h4MKJn9R.js → SkillCostValue-B40sE1dq.js} +1 -1
  63. package/dist/public/assets/{SkillInstallMenu-B14_Gl1G.js → SkillInstallMenu-C2iqB9-_.js} +1 -1
  64. package/dist/public/assets/{SkillOriginInline-BgrR-T50.js → SkillOriginInline--34x1DGi.js} +1 -1
  65. package/dist/public/assets/{SkillPluginBundleDialog-C4GtanKU.js → SkillPluginBundleDialog-Duktybbj.js} +1 -1
  66. package/dist/public/assets/{SkillToolbarControls-ChE65ujQ.js → SkillToolbarControls-CjiamSv_.js} +1 -1
  67. package/dist/public/assets/{SkillsManagerSection-AnAwZ1DX.js → SkillsManagerSection-CGK25Vhx.js} +1 -1
  68. package/dist/public/assets/{SlidesPluginSection-K6GcPk6k.js → SlidesPluginSection-D9esoLOb.js} +1 -1
  69. package/dist/public/assets/{SlidesToolbarControls-DZlISnZM.js → SlidesToolbarControls-D20a_7Xo.js} +1 -1
  70. package/dist/public/assets/{SourceEditor-DyQWGKK1.js → SourceEditor-CDsqWnaJ.js} +1 -1
  71. package/dist/public/assets/{SpellingSettings-DdfEMafp.js → SpellingSettings-Umd-UcTV.js} +1 -1
  72. package/dist/public/assets/{SyncSection-CSb8i0Q7.js → SyncSection-Bjkh_LiV.js} +1 -1
  73. package/dist/public/assets/{SyncStatusBadge-BdalyXqa.js → SyncStatusBadge-DiEJsKO_.js} +1 -1
  74. package/dist/public/assets/{TerminalLaunchContext-D0zWlhAb.js → TerminalLaunchContext-CRJ3fsc7.js} +1 -1
  75. package/dist/public/assets/{TerminalPanel-DD-D7eio.js → TerminalPanel-BIsMrJpO.js} +1 -1
  76. package/dist/public/assets/{TerminalSection-P3z2SvRy.js → TerminalSection-B5TkYlKV.js} +1 -1
  77. package/dist/public/assets/{TerminalWindowApp-C74IObOE.js → TerminalWindowApp-CZc2ruFy.js} +1 -1
  78. package/dist/public/assets/{TextDocEditor-XWcD7RkH.js → TextDocEditor-xT10qL3d.js} +1 -1
  79. package/dist/public/assets/{ThemePluginSection-C-SayLL7.js → ThemePluginSection-CRhGurqF.js} +1 -1
  80. package/dist/public/assets/{ThreadView-DAfcX9e4.js → ThreadView-DIaTKhjl.js} +1 -1
  81. package/dist/public/assets/{TimelineDiffPane-Ds27PK-j.js → TimelineDiffPane-BpW3RrqY.js} +1 -1
  82. package/dist/public/assets/{agent-connections-BBFERALo.js → agent-connections-CyCAPZDU.js} +1 -1
  83. package/dist/public/assets/{client-version-DwpRT-B_.js → client-version-B03sIju7.js} +1 -1
  84. package/dist/public/assets/{comment-chips-CowZQTC6.js → comment-chips-weNAtn3U.js} +1 -1
  85. package/dist/public/assets/{config-provider-1vG-B8AF.js → config-provider-rhvkI-p4.js} +1 -1
  86. package/dist/public/assets/{doc-undo-manager-C5b81Ero.js → doc-undo-manager-9Yo3wyyH.js} +1 -1
  87. package/dist/public/assets/{field-controls-CxY76_35.js → field-controls-D3A53IPn.js} +1 -1
  88. package/dist/public/assets/field-controls-fQycOI6A.js +1 -0
  89. package/dist/public/assets/index-2nOQKF9c.js +2209 -0
  90. package/dist/public/assets/{lint-plugins-DCULiHlS.js → lint-plugins-eYd0OhT2.js} +1 -1
  91. package/dist/public/assets/{markdownlint-rule-browser-C56kvk1x.js → markdownlint-rule-browser-CCM0Ntgn.js} +1 -1
  92. package/dist/public/assets/{pending-receive-nav-store-C4Whh-xC.js → pending-receive-nav-store-BN3r9LqM.js} +1 -1
  93. package/dist/public/assets/{preferred-session-events-DdROgEIA.js → preferred-session-events-BBTio6p0.js} +1 -1
  94. package/dist/public/assets/{progress-ChO8H6Yf.js → progress-BswJapXs.js} +1 -1
  95. package/dist/public/assets/{project-paths-DZ-NYdQu.js → project-paths-Cq56bh9f.js} +1 -1
  96. package/dist/public/assets/{restart-collab-server-Uk2ptZCx.js → restart-collab-server-CHlRP7RK.js} +1 -1
  97. package/dist/public/assets/{schema-section-DNLDm-pQ.js → schema-section-BHbbqbRe.js} +1 -1
  98. package/dist/public/assets/{select-pACXgFe2.js → select-Bx_fIuqY.js} +1 -1
  99. package/dist/public/assets/{selection-context-071I5_je.js → selection-context-BPU0RK6_.js} +1 -1
  100. package/dist/public/assets/{src-NBSvqvCK.js → src-Dtle0q-b.js} +1 -1
  101. package/dist/public/assets/{tag-pill-input-DblQVbzJ.js → tag-pill-input-CV6lsM1V.js} +1 -1
  102. package/dist/public/assets/{telemetry-impl-Bc0xgpF5.js → telemetry-impl-Ocl4-goG.js} +1 -1
  103. package/dist/public/assets/{telemetry-startup-MHFMBKQM.js → telemetry-startup-DDWqwm9D.js} +1 -1
  104. package/dist/public/assets/{tooltip-Bz6z4_se.js → tooltip-BjuCvy5N.js} +1 -1
  105. package/dist/public/assets/{typing-burst-detector-DQL4c90f.js → typing-burst-detector-B7I9PgKx.js} +1 -1
  106. package/dist/public/assets/{use-activity-panel-BhnbvbKp.js → use-activity-panel-BfVoPHj2.js} +1 -1
  107. package/dist/public/assets/{use-installed-clis-CRqLKblW.js → use-installed-clis-CYPuE-6E.js} +2 -2
  108. package/dist/public/assets/{use-open-skill-DUNqmgA-.js → use-open-skill-BLrqCx6j.js} +1 -1
  109. package/dist/public/assets/{use-terminal-enabled-Cu7xLs44.js → use-terminal-enabled-DLhb19cN.js} +1 -1
  110. package/dist/public/assets/{use-timeline-entry-diff-Cp1jk5p8.js → use-timeline-entry-diff-CtmKFP2f.js} +1 -1
  111. package/dist/public/index.html +36 -36
  112. package/dist/{registry-probes-D8pcagSq.mjs → registry-probes-Cqii7vvf.mjs} +1 -1
  113. package/dist/{removal-file-path-BGrPI9BX.mjs → removal-file-path-BfRF033R.mjs} +1 -1
  114. package/dist/{repair-launch-json-B4Cxj8Qy.mjs → repair-launch-json-CdjBIyjR.mjs} +1 -1
  115. package/dist/{repair-mcp-configs-DLQGyBHb.mjs → repair-mcp-configs-wYJ8R1hh.mjs} +1 -1
  116. package/dist/{src-u4oTwuA4.mjs → src-CNe12pkG.mjs} +2 -2
  117. package/dist/src-Dg74AhmP.mjs +1 -0
  118. package/dist/start-CfWsRxy2.mjs +1 -0
  119. package/dist/{start-Ckn0VX5-.mjs → start-DK4_qLD8.mjs} +3 -3
  120. package/package.json +4 -4
  121. package/dist/constants-CFaIFgyF.mjs +0 -1
  122. package/dist/init-BHdtUIhB.mjs +0 -1
  123. package/dist/loader-Bdecmrrb.mjs +0 -1
  124. package/dist/preview-l4ny3-dJ.mjs +0 -1
  125. package/dist/public/assets/FeedbackForm-CdWNgAIJ.js +0 -1
  126. package/dist/public/assets/ManagedArtifactProperties-BfrEra8Z.js +0 -1
  127. package/dist/public/assets/field-controls-B5XGrBle.js +0 -1
  128. package/dist/public/assets/index-CLd2bTKo.js +0 -2209
  129. package/dist/src-PWIxAlio.mjs +0 -1
  130. package/dist/start-5sl1RY-X.mjs +0 -1
  131. /package/dist/public/assets/{agent-presence-DrFUej3A.js → agent-presence-DU3TT-KP.js} +0 -0
  132. /package/dist/public/assets/{channel-cli-copy-DBh0Rilf.js → channel-cli-copy-BySq87hR.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{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{a,r as o}from"./dist-CSCUSbQc.js";import{c as s,i as c,l,n as u,o as d,r as f}from"./dist-DTFuvKje.js";import{n as p,t as m}from"./dist-CxbWbOvU.js";import{a as h,i as ee,n as g,r as _,t as v}from"./dist-DXjgFhPl2.js";var y=e(n(),1),b=t(),x=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),S=`VisuallyHidden`,C=y.forwardRef((e,t)=>(0,b.jsx)(l.span,{...e,ref:t,style:{...x,...e.style}}));C.displayName=S;var w=C,[T,E]=s(`Tooltip`,[h]),D=h(),O=`TooltipProvider`,k=700,A=`tooltip.open`,[te,j]=T(O),M=e=>{let{__scopeTooltip:t,delayDuration:n=k,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),s=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,b.jsx)(te,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};M.displayName=O;var N=`Tooltip`,[P,F]=T(N),I=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=j(N,e.__scopeTooltip),d=D(t),[f,p]=y.useState(null),m=u(),h=y.useRef(0),g=o??l.disableHoverableContent,_=s??l.delayDuration,v=y.useRef(!1),[x,S]=c({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),a?.(e)},caller:N}),C=y.useMemo(()=>x?v.current?`delayed-open`:`instant-open`:`closed`,[x]),w=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,S(!0)},[S]),T=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,S(!1)},[S]),E=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,S(!0),h.current=0},_)},[_,S]);return y.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,b.jsx)(ee,{...d,children:(0,b.jsx)(P,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:y.useCallback(()=>{g?T():(window.clearTimeout(h.current),h.current=0)},[T,g]),onOpen:w,onClose:T,disableHoverableContent:g,children:n})})};I.displayName=N;var L=`TooltipTrigger`,R=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=F(L,n),o=j(L,n),s=D(n),c=a(t,y.useRef(null),i.onTriggerChange),u=y.useRef(!1),f=y.useRef(!1),p=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,b.jsx)(v,{asChild:!0,...s,children:(0,b.jsx)(l.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:d(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:d(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:d(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:d(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:d(e.onBlur,i.onClose),onClick:d(e.onClick,i.onClose)})})});R.displayName=L;var z=`TooltipPortal`,[B,V]=T(z,{forceMount:void 0}),H=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=F(z,t);return(0,b.jsx)(B,{scope:t,forceMount:n,children:(0,b.jsx)(f,{present:n||a.open,children:(0,b.jsx)(m,{asChild:!0,container:i,children:r})})})};H.displayName=z;var U=`TooltipContent`,W=y.forwardRef((e,t)=>{let n=V(U,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=F(U,e.__scopeTooltip);return(0,b.jsx)(f,{present:r||o.open,children:o.disableHoverableContent?(0,b.jsx)(Y,{side:i,...a,ref:t}):(0,b.jsx)(G,{side:i,...a,ref:t})})}),G=y.forwardRef((e,t)=>{let n=F(U,e.__scopeTooltip),r=j(U,e.__scopeTooltip),i=y.useRef(null),o=a(t,i),[s,c]=y.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=y.useCallback(()=>{c(null),f(!1)},[f]),m=y.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=re(r,ne(r,n.getBoundingClientRect())),a=ie(t.getBoundingClientRect());c(oe([...i,...a])),f(!0)},[f]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),y.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!ae(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,b.jsx)(Y,{...e,ref:o})}),[K,q]=T(N,{isInside:!1}),J=o(`TooltipContent`),Y=y.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=F(U,n),l=D(n),{onClose:u}=c;return y.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),y.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,b.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,b.jsxs)(_,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,b.jsx)(J,{children:r}),(0,b.jsx)(K,{scope:n,isInside:!0,children:(0,b.jsx)(w,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});W.displayName=U;var X=`TooltipArrow`,Z=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=D(n);return q(X,n).isInside?null:(0,b.jsx)(g,{...i,...r,ref:t})});Z.displayName=X;function ne(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function re(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ie(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ae(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function oe(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),se(t)}function se(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Q=M,ce=I,le=R,ue=H,de=W,fe=Z,$=r();function pe(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,b.jsx)(Q,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function me(e){let t=(0,$.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,b.jsx)(ce,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function he(e){let t=(0,$.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?i:i??`button`,o;return t[4]!==n||t[5]!==r||t[6]!==a?(o=(0,b.jsx)(le,{"data-slot":`tooltip-trigger`,asChild:n,type:a,...r}),t[4]=n,t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function ge(e){let t=(0,$.c)(16),n,r,a,o,s;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5]):({className:r,sideOffset:o,arrow:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s);let c=o===void 0?0:o,l=s===void 0?!0:s,u;t[6]===r?u=t[7]:(u=i(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[6]=r,t[7]=u);let d;t[8]===l?d=t[9]:(d=l?(0,b.jsx)(fe,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}):null,t[8]=l,t[9]=d);let f;return t[10]!==n||t[11]!==a||t[12]!==c||t[13]!==u||t[14]!==d?(f=(0,b.jsx)(ue,{children:(0,b.jsxs)(de,{"data-slot":`tooltip-content`,sideOffset:c,className:u,...a,children:[n,d]})}),t[10]=n,t[11]=a,t[12]=c,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}export{x as a,he as i,ge as n,pe as r,me as t};
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{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{a,r as o}from"./dist-CSCUSbQc.js";import{c as s,i as c,l,n as u,o as d,r as f}from"./dist-DTFuvKje.js";import{n as p,t as m}from"./dist-CxbWbOvU.js";import{a as h,i as ee,n as g,r as _,t as v}from"./dist-DXjgFhPl2.js";var y=e(n(),1),b=t(),x=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),S=`VisuallyHidden`,C=y.forwardRef((e,t)=>(0,b.jsx)(l.span,{...e,ref:t,style:{...x,...e.style}}));C.displayName=S;var w=C,[T,E]=s(`Tooltip`,[h]),D=h(),O=`TooltipProvider`,k=700,A=`tooltip.open`,[te,j]=T(O),M=e=>{let{__scopeTooltip:t,delayDuration:n=k,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),s=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,b.jsx)(te,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};M.displayName=O;var N=`Tooltip`,[P,F]=T(N),I=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=j(N,e.__scopeTooltip),d=D(t),[f,p]=y.useState(null),m=u(),h=y.useRef(0),g=o??l.disableHoverableContent,_=s??l.delayDuration,v=y.useRef(!1),[x,S]=c({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),a?.(e)},caller:N}),C=y.useMemo(()=>x?v.current?`delayed-open`:`instant-open`:`closed`,[x]),w=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,S(!0)},[S]),T=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,S(!1)},[S]),E=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,S(!0),h.current=0},_)},[_,S]);return y.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,b.jsx)(ee,{...d,children:(0,b.jsx)(P,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:y.useCallback(()=>{g?T():(window.clearTimeout(h.current),h.current=0)},[T,g]),onOpen:w,onClose:T,disableHoverableContent:g,children:n})})};I.displayName=N;var L=`TooltipTrigger`,R=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=F(L,n),o=j(L,n),s=D(n),c=a(t,y.useRef(null),i.onTriggerChange),u=y.useRef(!1),f=y.useRef(!1),p=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,b.jsx)(v,{asChild:!0,...s,children:(0,b.jsx)(l.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:d(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:d(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:d(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:d(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:d(e.onBlur,i.onClose),onClick:d(e.onClick,i.onClose)})})});R.displayName=L;var z=`TooltipPortal`,[B,V]=T(z,{forceMount:void 0}),H=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=F(z,t);return(0,b.jsx)(B,{scope:t,forceMount:n,children:(0,b.jsx)(f,{present:n||a.open,children:(0,b.jsx)(m,{asChild:!0,container:i,children:r})})})};H.displayName=z;var U=`TooltipContent`,W=y.forwardRef((e,t)=>{let n=V(U,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=F(U,e.__scopeTooltip);return(0,b.jsx)(f,{present:r||o.open,children:o.disableHoverableContent?(0,b.jsx)(Y,{side:i,...a,ref:t}):(0,b.jsx)(G,{side:i,...a,ref:t})})}),G=y.forwardRef((e,t)=>{let n=F(U,e.__scopeTooltip),r=j(U,e.__scopeTooltip),i=y.useRef(null),o=a(t,i),[s,c]=y.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=y.useCallback(()=>{c(null),f(!1)},[f]),m=y.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=re(r,ne(r,n.getBoundingClientRect())),a=ie(t.getBoundingClientRect());c(oe([...i,...a])),f(!0)},[f]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),y.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!ae(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,b.jsx)(Y,{...e,ref:o})}),[K,q]=T(N,{isInside:!1}),J=o(`TooltipContent`),Y=y.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=F(U,n),l=D(n),{onClose:u}=c;return y.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),y.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,b.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c.open?u:void 0,children:(0,b.jsxs)(_,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,b.jsx)(J,{children:r}),(0,b.jsx)(K,{scope:n,isInside:!0,children:(0,b.jsx)(w,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});W.displayName=U;var X=`TooltipArrow`,Z=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=D(n);return q(X,n).isInside?null:(0,b.jsx)(g,{...i,...r,ref:t})});Z.displayName=X;function ne(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function re(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ie(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ae(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function oe(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),se(t)}function se(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Q=M,ce=I,le=R,ue=H,de=W,fe=Z,$=r();function pe(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,b.jsx)(Q,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function me(e){let t=(0,$.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,b.jsx)(ce,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function he(e){let t=(0,$.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?i:i??`button`,o;return t[4]!==n||t[5]!==r||t[6]!==a?(o=(0,b.jsx)(le,{"data-slot":`tooltip-trigger`,asChild:n,type:a,...r}),t[4]=n,t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function ge(e){let t=(0,$.c)(16),n,r,a,o,s;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5]):({className:r,sideOffset:o,arrow:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s);let c=o===void 0?0:o,l=s===void 0?!0:s,u;t[6]===r?u=t[7]:(u=i(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[6]=r,t[7]=u);let d;t[8]===l?d=t[9]:(d=l?(0,b.jsx)(fe,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}):null,t[8]=l,t[9]=d);let f;return t[10]!==n||t[11]!==a||t[12]!==c||t[13]!==u||t[14]!==d?(f=(0,b.jsx)(ue,{children:(0,b.jsxs)(de,{"data-slot":`tooltip-content`,sideOffset:c,className:u,...a,children:[n,d]})}),t[10]=n,t[11]=a,t[12]=c,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}export{x as a,he as i,ge as n,pe as r,me as t};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{$t as n,Nr as r,Oi as i,On as a,Y as o,Zn as s,en as c,i as l,ji as u,mr as d,nr as f,qn as p,zr as m}from"./DocumentContext-BKb3GeF8.js";import{t as h}from"./react-f2sANaYj.js";import{n as g,r as _}from"./dist-Nvb76hAm.js";import{r as v,t as y}from"./useQuery-ZeEDLtxh.js";import{t as b}from"./compiler-runtime-BfE3aGVn.js";import{t as x}from"./utils-CPqDy6Hr.js";import{i as S,n as C,t as w}from"./tooltip-Bz6z4_se.js";import{n as T,r as E,t as D}from"./collapsible-BKbszYZV.js";import{n as O,t as k}from"./toggle-group-B7p69Qfd.js";import{t as A}from"./button-DzgjsZzC.js";import{y as j}from"./constants-upload-CVKO8P4d.js";import{n as ee}from"./dist-BGzUo_18.js";import{t as M}from"./dist-C_FzPxEX2.js";import{d as N}from"./constants-cc1-Bt4QPTUe.js";import{f as P,v as F}from"./documents-events-BmU3ACXG.js";import{n as I}from"./_envelope-BjFOILGI-BHu_Fgux.js";import{T as L,_t as R,bt as z}from"./schemas-api-BVrasm34.js";import{t as te}from"./note-window-mode-CI3Yju9B.js";import{t as B}from"./createLucideIcon-DdBzwsHe.js";import{t as V}from"./chevron-right-Bofu4lib.js";import{n as ne,t as re}from"./lint-plugin-meta-CtDE2R0v.js";import{t as H}from"./circle-alert-eBm4JPxY.js";import{In as U,Pn as W,dr as G,gr as K,pr as q,sn as J,ut as Y,vt as ie,x as X,xt as ae}from"./CodeMirrorPropInput-viDrvKTW.js";import{t as oe}from"./info-CyR0W2SK.js";import{t as se}from"./refresh-cw-BVQchE6b.js";import{t as ce}from"./sparkles-lfxw6YO9.js";import{t as le}from"./triangle-alert-DFWRwfH7.js";import{t as ue}from"./wrench-DmtZXcHB.js";import{t as de}from"./badge-DcyFOLs8.js";import{c as fe}from"./use-settings-route-BGtkup9E.js";import{l as pe,s as me}from"./doc-hash-DnaMfJ4U.js";import{t as he}from"./diagnostic-breadcrumb-Mg7sdCfQ.js";import{n as ge,t as _e}from"./perf-CYJlqBBt.js";import{T as ve,x as ye}from"./config-provider-1vG-B8AF.js";import{t as be}from"./skeleton-2Ewnato7.js";import{A as xe}from"./navigation-targets-2KeX0-Gp.js";import{J as Se,K as Ce,Mt as we,Nt as Te,X as Ee,wt as De}from"./dist-CoJBCixp.js";import{n as Oe,r as ke}from"./PageListContext-BV0kcssj.js";import{a as Ae,c as je,i as Me,n as Ne,r as Pe,s as Fe,t as Ie}from"./panel-eNhYruJz.js";import{d as Le,h as Re,u as ze,y as Be}from"./markdown-lint-ABdPsjuJ.js";import{a as Ve,c as He,d as Ue}from"./lint-config-client-Bd8ngCU8.js";var We=B(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Ge=56,Ke=2,qe=150,Je=2e3;function Ye(e,t,n){return e.top+e.height/2-(n+t)/2}function Xe(e,t){let n=Math.max(0,t.scrollHeight-t.clientHeight);return Math.max(0,Math.min(e,n))}function Ze(e){let{docName:t,container:n,measureTarget:r,placement:i,intent:a,grade:o,landedMode:c,transition:l,onOutcome:u,onDiscardQueuedTarget:d,toolbarOffset:m=Ge,driftThresholdPx:h=Ke,quietMs:g=qe,abandonAfterMs:_=Je}=e,v=e.contentColumn??n.firstElementChild,y=p(t,`landing`),b=s(t,{yieldsToNavigation:a===`toggle`,supersede:()=>N(`superseded`)}),x=n.style.overflowAnchor;n.style.overflowAnchor=`none`,l&&ge(`ok/mode-switch/transition`,{from:l.from,to:l.to,grade:o});let S=!1,C=null,w,T,E=0,D,O=()=>{let e=r();return e===null?null:Xe(i===`center`?Ye(e,n.clientHeight,m):e.top-m,n)},k=()=>{let e=O();if(e===null)return{measurable:!1,moved:!1};C=e;let t=Math.abs(n.scrollTop-e)>h;return t&&(n.scrollTop=e),{measurable:!0,moved:t}},A=()=>n.scrollTop-(O()??C??n.scrollTop),j=()=>{w&&clearTimeout(w),T&&clearTimeout(T),E&&cancelAnimationFrame(E),D?.disconnect(),n.removeEventListener(`wheel`,F),n.removeEventListener(`touchstart`,F),window.removeEventListener(`keydown`,I,!0),n.removeEventListener(`contentvisibilityautostatechange`,L,!0),n.style.overflowAnchor=x,y.release(),b.release()},ee=()=>{if(S)return;S=!0;let e;try{k(),e=A(),C!==null&&f({docName:t,container:n,targetScrollTop:n.scrollTop,mode:c})}finally{j()}ge(`ok/landing/land`,{grade:o,delta:e}),u?.({status:`landed`,delta:e})},M=()=>{if(S)return;S=!0;let e=C??n.scrollTop,t;try{t=A()}finally{j()}ge(`ok/landing/abandoned`,{grade:o,target:e,delta:t}),u?.({status:`abandoned`,delta:t})},N=e=>{S||(S=!0,j(),e===`mode-flip`&&d?.(),u?.({status:`cancelled`,reason:e}))},P=()=>{w&&clearTimeout(w),w=setTimeout(ee,g)};function F(){N(`user-scroll`)}function I(e){e.composedPath().includes(n)&&F()}function L(){if(S)return;let{measurable:e,moved:t}=k();e&&(t||w===void 0)&&P()}try{k().measurable&&P(),n.addEventListener(`contentvisibilityautostatechange`,L,!0),n.addEventListener(`wheel`,F,{passive:!0}),n.addEventListener(`touchstart`,F,{passive:!0}),window.addEventListener(`keydown`,I,!0),typeof ResizeObserver<`u`&&v&&(D=new ResizeObserver(L),D.observe(v)),E=requestAnimationFrame(L),T=setTimeout(M,_)}catch(e){throw S=!0,j(),e}return{cancel:N}}function Qe(e){switch(e){case`bulletList`:case`orderedList`:case`taskList`:case`list`:return`list`;case`codeBlock`:case`code`:return`code`;case`horizontalRule`:case`thematicBreak`:return`thematicBreak`;case`jsxComponent`:case`mdxJsxFlowElement`:case`mdxJsxTextElement`:return`jsx`;case`htmlBlock`:case`html`:return`html`;default:return e}}function $e(e){return typeof e!=`object`||!e?``:`value`in e&&typeof e.value==`string`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map($e).join(``):``}function et(e,t){let{frontmatter:n,body:r}=z(e),i=n===``?0:n.split(`
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{$t as n,Nr as r,Oi as i,On as a,Y as o,Zn as s,en as c,i as l,ji as u,mr as d,nr as f,qn as p,zr as m}from"./DocumentContext-g-cDYqVv.js";import{t as h}from"./react-f2sANaYj.js";import{n as g,r as _}from"./dist-Nvb76hAm.js";import{r as v,t as y}from"./useQuery-ZeEDLtxh.js";import{t as b}from"./compiler-runtime-BfE3aGVn.js";import{t as x}from"./utils-CPqDy6Hr.js";import{i as S,n as C,t as w}from"./tooltip-BjuCvy5N.js";import{n as T,r as E,t as D}from"./collapsible-BKbszYZV.js";import{n as O,t as k}from"./toggle-group-B7p69Qfd.js";import{t as A}from"./button-DzgjsZzC.js";import{y as j}from"./constants-upload-CVKO8P4d.js";import{n as ee}from"./dist-BGzUo_18.js";import{t as M}from"./dist-C_FzPxEX2.js";import{d as N}from"./constants-cc1-Bt4QPTUe.js";import{f as P,v as F}from"./documents-events-BmU3ACXG.js";import{n as I}from"./_envelope-BjFOILGI-BHu_Fgux.js";import{T as L,_t as R,bt as z}from"./schemas-api-BVrasm34.js";import{t as te}from"./note-window-mode-CI3Yju9B.js";import{t as B}from"./createLucideIcon-DdBzwsHe.js";import{t as V}from"./chevron-right-Bofu4lib.js";import{n as ne,t as re}from"./lint-plugin-meta-CtDE2R0v.js";import{t as H}from"./circle-alert-eBm4JPxY.js";import{In as U,Pn as W,dr as G,gr as K,pr as q,sn as J,ut as Y,vt as ie,x as X,xt as ae}from"./CodeMirrorPropInput-B0xn3frp.js";import{t as oe}from"./info-CyR0W2SK.js";import{t as se}from"./refresh-cw-BVQchE6b.js";import{t as ce}from"./sparkles-lfxw6YO9.js";import{t as le}from"./triangle-alert-DFWRwfH7.js";import{t as ue}from"./wrench-DmtZXcHB.js";import{t as de}from"./badge-DcyFOLs8.js";import{c as fe}from"./use-settings-route-BGtkup9E.js";import{l as pe,s as me}from"./doc-hash-DnaMfJ4U.js";import{t as he}from"./diagnostic-breadcrumb-Mg7sdCfQ.js";import{n as ge,t as _e}from"./perf-CYJlqBBt.js";import{T as ve,x as ye}from"./config-provider-rhvkI-p4.js";import{t as be}from"./skeleton-2Ewnato7.js";import{A as xe}from"./navigation-targets-2KeX0-Gp.js";import{J as Se,K as Ce,Mt as we,Nt as Te,X as Ee,wt as De}from"./dist-CoJBCixp.js";import{n as Oe,r as ke}from"./PageListContext-BV0kcssj.js";import{a as Ae,c as je,i as Me,n as Ne,r as Pe,s as Fe,t as Ie}from"./panel-eNhYruJz.js";import{d as Le,h as Re,u as ze,y as Be}from"./markdown-lint-ABdPsjuJ.js";import{a as Ve,c as He,d as Ue}from"./lint-config-client-Bd8ngCU8.js";var We=B(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Ge=56,Ke=2,qe=150,Je=2e3;function Ye(e,t,n){return e.top+e.height/2-(n+t)/2}function Xe(e,t){let n=Math.max(0,t.scrollHeight-t.clientHeight);return Math.max(0,Math.min(e,n))}function Ze(e){let{docName:t,container:n,measureTarget:r,placement:i,intent:a,grade:o,landedMode:c,transition:l,onOutcome:u,onDiscardQueuedTarget:d,toolbarOffset:m=Ge,driftThresholdPx:h=Ke,quietMs:g=qe,abandonAfterMs:_=Je}=e,v=e.contentColumn??n.firstElementChild,y=p(t,`landing`),b=s(t,{yieldsToNavigation:a===`toggle`,supersede:()=>N(`superseded`)}),x=n.style.overflowAnchor;n.style.overflowAnchor=`none`,l&&ge(`ok/mode-switch/transition`,{from:l.from,to:l.to,grade:o});let S=!1,C=null,w,T,E=0,D,O=()=>{let e=r();return e===null?null:Xe(i===`center`?Ye(e,n.clientHeight,m):e.top-m,n)},k=()=>{let e=O();if(e===null)return{measurable:!1,moved:!1};C=e;let t=Math.abs(n.scrollTop-e)>h;return t&&(n.scrollTop=e),{measurable:!0,moved:t}},A=()=>n.scrollTop-(O()??C??n.scrollTop),j=()=>{w&&clearTimeout(w),T&&clearTimeout(T),E&&cancelAnimationFrame(E),D?.disconnect(),n.removeEventListener(`wheel`,F),n.removeEventListener(`touchstart`,F),window.removeEventListener(`keydown`,I,!0),n.removeEventListener(`contentvisibilityautostatechange`,L,!0),n.style.overflowAnchor=x,y.release(),b.release()},ee=()=>{if(S)return;S=!0;let e;try{k(),e=A(),C!==null&&f({docName:t,container:n,targetScrollTop:n.scrollTop,mode:c})}finally{j()}ge(`ok/landing/land`,{grade:o,delta:e}),u?.({status:`landed`,delta:e})},M=()=>{if(S)return;S=!0;let e=C??n.scrollTop,t;try{t=A()}finally{j()}ge(`ok/landing/abandoned`,{grade:o,target:e,delta:t}),u?.({status:`abandoned`,delta:t})},N=e=>{S||(S=!0,j(),e===`mode-flip`&&d?.(),u?.({status:`cancelled`,reason:e}))},P=()=>{w&&clearTimeout(w),w=setTimeout(ee,g)};function F(){N(`user-scroll`)}function I(e){e.composedPath().includes(n)&&F()}function L(){if(S)return;let{measurable:e,moved:t}=k();e&&(t||w===void 0)&&P()}try{k().measurable&&P(),n.addEventListener(`contentvisibilityautostatechange`,L,!0),n.addEventListener(`wheel`,F,{passive:!0}),n.addEventListener(`touchstart`,F,{passive:!0}),window.addEventListener(`keydown`,I,!0),typeof ResizeObserver<`u`&&v&&(D=new ResizeObserver(L),D.observe(v)),E=requestAnimationFrame(L),T=setTimeout(M,_)}catch(e){throw S=!0,j(),e}return{cancel:N}}function Qe(e){switch(e){case`bulletList`:case`orderedList`:case`taskList`:case`list`:return`list`;case`codeBlock`:case`code`:return`code`;case`horizontalRule`:case`thematicBreak`:return`thematicBreak`;case`jsxComponent`:case`mdxJsxFlowElement`:case`mdxJsxTextElement`:return`jsx`;case`htmlBlock`:case`html`:return`html`;default:return e}}function $e(e){return typeof e!=`object`||!e?``:`value`in e&&typeof e.value==`string`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map($e).join(``):``}function et(e,t){let{frontmatter:n,body:r}=z(e),i=n===``?0:n.split(`
2
2
  `).length-1;try{return{blocks:t.parseToEditorMdast(r).children.map(e=>({start:(e.position?.start.line??1/0)+i,end:(e.position?.end.line??-1/0)+i,kind:Qe(e.type),text:$e(e)})),fmLineCount:i}}catch{return performance.mark(`ok/block-spans/parse-failed`),{blocks:[],fmLineCount:i}}}function tt(e,t){let{blocks:n,fmLineCount:r}=et(e,t);return{spans:n.map(e=>({start:e.start,end:e.end})),fmLineCount:r}}function nt(e,t){if(e.length===0)return null;let n=0,r=e.length-1,i=e.length-1;for(;n<=r;){let a=n+r>>1,o=e[a];o!==void 0&&o.end>=t?(i=a,r=a-1):n=a+1}return i}function rt(e){let t=0;for(let n=e.childCount-1;n>=0;n--){let r=e.child(n);if(r.type.name!==`paragraph`||r.content.size!==0)break;t++}return t===e.childCount?0:e.childCount}function it(e,t,n){let r=e.childCount,i=Math.max(0,Math.min(t,r)),a=Math.max(i,Math.min(n,r));if(a<=i)return null;let o=0;for(let t=0;t<i;t++)o+=e.child(t).nodeSize;let s=o;for(let t=i;t<a;t++)o+=e.child(t).nodeSize;let c=o,l=e.content.size,u=Math.max(0,Math.min(s,l)),d=Math.max(u,Math.min(c,l));return d<=u?null:{from:u,to:d}}function at(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
3
3
  `&&t.push(n+1);return t}function ot(e,t,n){return t<=1?0:t-1>=e.length?n:e[t-1]??n}function st(e,t){let n=0,r=e.length-1,i=1;for(;n<=r;){let a=n+r>>1;(e[a]??0)<=t?(i=a+1,n=a+1):r=a-1}return i}function ct(e,t,n){return Math.max(t,Math.min(e,n))}function lt(e,t){let n=e=>e.replace(/\s+/g,` `).trim();return n(e)===n(t)}function ut(e,t){return t.inRange?t.tripwireOk?lt(e.content,t.text)?`exact`:e.kind===t.kind?`same-type-ordinal`:`ordinal`:`ordinal`:`clamped`}function dt(e){let t=null,n=null;function r(r){return n!==null&&t===r?n:(n={blocks:et(r,e).blocks,lineStarts:at(r)},t=r,n)}return{captureFromWysiwyg(e,t,n){if(e.childCount===0)return null;let r=ct(t,0,e.content.size),i=0,a=e.childCount-1,o=0;for(let t=0;t<e.childCount;t++){let n=e.child(t).nodeSize;if(r<i+n){a=t,o=i+1;break}i+=n,o=i+1}let s=e.child(a),c={blockIndex:a,kind:Qe(s.type.name),content:s.textContent};return n?.refine&&(c.selectionInBlock=Math.max(0,r-o)),c},captureFromSource(e,t,n){let{blocks:i,lineStarts:a}=r(e);if(i.length===0)return null;let o=ct(t,0,e.length),s=nt(i,st(a,o));if(s===null)return null;let c=i[s];if(!c)return null;let l={blockIndex:s,kind:c.kind,content:c.text};if(n?.refine){let t=ot(a,c.start,e.length);l.selectionInBlock=Math.max(0,o-t)}return l},resolveInSource(e,{source:t,doc:n}){let{blocks:i,lineStarts:a}=r(t);if(i.length===0)return null;let o=e.blockIndex>=0&&e.blockIndex<i.length,s=rt(n)===i.length,c=i[ct(e.blockIndex,0,i.length-1)],l=ot(a,c.start,t.length),u=Math.min(ot(a,c.end+1,t.length),t.length),d=ut(e,{inRange:o,tripwireOk:s,kind:c.kind,text:c.text}),f=l;return d===`exact`&&e.selectionInBlock!==void 0&&(f=ct(l+e.selectionInBlock,l,u)),{blockStart:l,blockEnd:u,point:f,confidence:d}},resolveInWysiwyg(e,{source:t,doc:n}){let i=rt(n);if(i===0)return null;let{blocks:a}=r(t),o=e.blockIndex>=0&&e.blockIndex<i,s=i===a.length,c=ct(e.blockIndex,0,i-1),l=it(n,c,c+1);if(l===null)return null;let u=n.child(c),d=ut(e,{inRange:o,tripwireOk:s,kind:Qe(u.type.name),text:u.textContent});return{blockStart:l.from,blockEnd:l.to,point:l.from,confidence:d}}}}var ft=we.define(),pt=we.define(),mt=Ce.mark({class:n}),ht=Te.define({create(){return Ce.none},update(e,t){let n=e.map(t.changes);for(let e of t.effects)e.is(ft)?n=Ce.set([mt.range(e.value.from,e.value.to)]):e.is(pt)&&(n=Ce.none);return n},provide:e=>Se.decorations.from(e)}),gt=new WeakMap,_t=Ee.define(e=>({destroy(){let t=gt.get(e);t!==void 0&&(clearTimeout(t),gt.delete(e))}}));function vt(e,t,n,r){let i=c(e.state.doc.length,t,n,r);if(!i)return;e.dispatch({effects:ft.of(i)});let a=gt.get(e);a!==void 0&&clearTimeout(a);let o=setTimeout(()=>{gt.delete(e),e.dispatch({effects:pt.of(null)})},ie);gt.set(e,o)}function yt(){return[ht,_t]}var bt=3e4;function xt(){let e=new Map,t=e=>e?Date.now()-e.rememberedAt>bt?null:e.navigation:null;return{remember(t,n){e.set(t,{navigation:n,rememberedAt:Date.now()})},peek(n){return t(e.get(n))},consume(n){let r=e.get(n);return e.delete(n),t(r)},clear(t){e.delete(t)},clearForTest(){e.clear()}}}var St=xt(),Ct=xt(),wt=St.remember,Tt=St.peek,Et=St.consume,Dt=St.clear;St.clearForTest;var Ot=Ct.remember,kt=Ct.peek,At=Ct.consume,jt=Ct.clear;Ct.clearForTest;function Mt(e,t,n){return{start:ve(e,t),end:ve(e,n)}}function Nt(e,t){let n=ye(e.start,t),r=ye(e.end,t);return n===null||r===null||r.index<=n.index?null:n.index}var Pt=`open-knowledge:view-in-source`,Ft=null;function It(){return Ft??=dt(Y()),Ft}function Lt(e,t,n,r,i=`toggle`){let a=r.captureFromWysiwyg(e,t,{refine:i===`jump`});if(!a)return null;let o=r.resolveInSource(a,{source:n.toString(),doc:e});return{kind:`selection-offset`,intent:i,anchor:a,pin:o?Mt(n,o.blockStart,o.blockEnd):void 0}}function Rt(e){let{editor:t,docName:n,ytext:r}=e,i=G(t);if(!i)return;let a=i.state.selection.from,o=Lt(i.state.doc,a,r,It(),`jump`);o&&wt(n,o),window.dispatchEvent(new CustomEvent(Pt,{detail:{docName:n}}))}function zt(e,t,n,r,i){let a=r.captureFromSource(e,t);if(!a)return null;let o=i?r.resolveInSource(a,{source:e,doc:i}):null;return{kind:`selection-offset`,anchor:a,pin:o?Mt(n,o.blockStart,o.blockEnd):void 0}}function Bt(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=Nt(e.pin,i);if(t===null){let t=a.resolveInWysiwyg(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInWysiwyg(o,{source:n,doc:r})}return a.resolveInWysiwyg(e.anchor,{source:n,doc:r})}function Vt(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=Nt(e.pin,i);if(t===null){let t=a.resolveInSource(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInSource(o,{source:n,doc:r})}return a.resolveInSource(e.anchor,{source:n,doc:r})}function Ht(e,t){try{return e.coordsAtPos(t)}catch{return null}}function Ut(e,t,n){let r=Math.max(0,Math.min(n,e.state.doc.length)),i=t.getBoundingClientRect().top,a=Ht(e,r);if(a)return{top:a.top-i+t.scrollTop,height:a.bottom-a.top};try{let n=e.lineBlockAt(r);return{top:e.documentTop-i+t.scrollTop+n.top,height:n.height}}catch{return null}}function Wt(e,t){if(e.isDestroyed)return null;try{let n=e.nodeDOM(t);if(n instanceof HTMLElement)return n;let{node:r}=e.domAtPos(t);return r instanceof HTMLElement?r:r.parentElement}catch{return null}}function Gt(e,t,n){if(e.isDestroyed)return null;let r=Wt(e,Math.max(0,Math.min(n,e.state.doc.content.size)));if(!r)return null;let i=r.getBoundingClientRect(),a=t.getBoundingClientRect().top;return{top:i.top-a+t.scrollTop,height:i.height}}function Kt(){return typeof document>`u`?null:a()}function qt(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2,i=X();for(let t of[i+1,i+12,i+40]){let i=e.posAtCoords({left:r,top:n.top+t});if(i)return i.pos}return null}function Jt(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2,i=X();for(let t of[i+1,i+12,i+40]){let i=e.posAtCoords({x:r,y:n.top+t});if(i!==null)return i}return null}function Yt(e){let{from:t,to:n,docName:r,ytext:i}=e;t===`wysiwyg`&&n===`source`?Xt(r,i):t===`source`&&n===`wysiwyg`&&Zt(r,i)}function Xt(e,t){let n=Tt(e);if(n&&n.kind!==`selection-offset`)return;let r=d(e);if(!r)return;let i=G(r);if(!i)return;let a=Kt();if(!a)return;let o=qt(i,a);if(o===null)return;let s=Lt(i.state.doc,o,t,It());s&&wt(e,s)}function Zt(e,t){let n=W(e);if(!n)return;let r=Kt();if(!r)return;let i=Jt(n,r);if(i===null)return;let a=d(e),o=a?G(a)?.state.doc:void 0,s=zt(t.toString(),i,t,It(),o);s&&Ot(e,s)}function Qt(e){let{view:t,docName:n,navigation:r,ydoc:i,transition:a}=e,o=d(n),c=o?G(o)?.state.doc:void 0;if(!c)return null;let l=Vt(r,{source:t.state.doc.toString(),pmDoc:c,ydoc:i,resolver:It()});if(!l)return null;let u=Kt();if(!u)return null;let f=l,p=r.intent===`jump`,m=p?f.point:f.blockStart;t.dispatch({effects:Se.scrollIntoView(m,{y:`start`})});let h=!1,g=null,_=s(n,{yieldsToNavigation:!p,supersede:()=>{h=!0,_.release()}}),v=e=>{if(!h){if(Ht(t,m)===null&&e<8){requestAnimationFrame(()=>v(e+1));return}try{p&&(t.dispatch({selection:De.cursor(m)}),t.focus())}finally{_.release()}g=Ze({docName:n,container:u,contentColumn:t.contentDOM,measureTarget:()=>Ut(t,u,m),placement:p?`center`:`top`,intent:p?`jump`:`toggle`,grade:f.confidence,landedMode:`source`,transition:a,toolbarOffset:X(),onOutcome:p?e=>{e.status===`landed`&&vt(t,f.blockStart,f.blockEnd,f.confidence)}:void 0,onDiscardQueuedTarget:()=>Dt(n)})}};return v(0),{cancel:e=>{h=!0,_.release(),g?.cancel(e)}}}function $t(e){let{editor:t,docName:n,navigation:r,ydoc:i,transition:a}=e,o=G(t);if(!o)return null;let s=Bt(r,{source:i.getText(`source`).toString(),pmDoc:o.state.doc,ydoc:i,resolver:It()});if(!s)return null;let c=Kt();if(!c)return null;let l=s;return Ze({docName:n,container:c,contentColumn:o.dom,measureTarget:()=>Gt(o,c,l.point),placement:`top`,intent:`toggle`,grade:l.confidence,landedMode:`wysiwyg`,transition:a,toolbarOffset:X(),onDiscardQueuedTarget:()=>jt(n)})}var en={words:0,chars:0,tokens:0},tn=/[ -〿぀-ゟ゠-ヿ㐀-䶿一-鿿豈-﫿＀-￯฀-๿ក-៿]/,nn=/[\p{L}\p{N}]/u,rn=new Set([`text`,`inlineCode`,`code`,`tag`]),an=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),on=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function sn(e,t){if(!e)return;let n=e.type;if(!an.has(n)){if(rn.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
4
4
  `));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)sn(n,t);if(on.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{i as t}from"./DocumentContext-BKb3GeF8.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{v as i}from"./documents-events-BmU3ACXG.js";import{n as a}from"./_envelope-BjFOILGI-BHu_Fgux.js";import{n as o,t as s}from"./schemas-api-BVrasm34.js";import{xt as c}from"./CodeMirrorPropInput-viDrvKTW.js";import{n as l}from"./agent-presence-DrFUej3A.js";import{t as u}from"./lru-string-cache-2BECYUJH.js";var d=r(),f=e(n(),1),p=500,m=64;async function h(e){let t=`/api/agent-activity?agentId=${encodeURIComponent(e)}`,n=await fetch(t),r;try{r=await n.json()}catch(e){throw new c(`Could not parse /api/agent-activity response.`,{cause:e,status:n.status})}if(!n.ok){let e=a.safeParse(r);throw e.success?Error(e.data.title):new c(`/api/agent-activity returned a non-RFC-9457 error response.`,{cause:e.error,status:n.status})}let i=s.safeParse(r);if(!i.success)throw new c(`/api/agent-activity returned a body that did not match AgentActivitySuccessSchema.`,{cause:i.error,status:n.status});return i.data}async function g(e,t,n){let r=`/api/agent-burst-diff?agentId=${encodeURIComponent(e)}&docName=${encodeURIComponent(t)}&keptCount=${n}`,i=await fetch(r),s;try{s=await i.json()}catch(e){throw new c(`Could not parse /api/agent-burst-diff response.`,{cause:e,status:i.status})}if(!i.ok){let e=a.safeParse(s);throw e.success?Error(e.data.title):new c(`/api/agent-burst-diff returned a non-RFC-9457 error response.`,{cause:e.error,status:i.status})}let l=o.safeParse(s);if(!l.success)throw new c(`/api/agent-burst-diff returned a body that did not match AgentBurstDiffSuccessSchema.`,{cause:l.error,status:i.status});let{diff:u,before:d,after:f,properties:p}=l.data;return{diff:u,before:d,after:f,properties:p}}function _(e){let n=(0,d.c)(23),{systemProvider:r}=t(),[a,o]=(0,f.useState)(null),[s,c]=(0,f.useState)(`idle`),[l,_]=(0,f.useState)(null),b;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new u(m),n[0]=b):b=n[0];let x=(0,f.useRef)(b),S=(0,f.useRef)(0),C;n[1]===r?C=n[2]:(C=e=>{let t=S.current+=1;c(`loading`),_(null),h(e).then(n=>{if(S.current!==t)return;let i=y(r,e);o({...n,writingDocs:i}),c(`ready`)}).catch(e=>{S.current===t&&(_(e instanceof Error?e.message:String(e)),c(`error`))})},n[1]=r,n[2]=C);let w=C,T;n[3]!==e||n[4]!==w?(T=()=>{if(!e){S.current+=1,o(null),c(`idle`),_(null),x.current.clear();return}x.current.clear(),w(e);let t=null,n=i(n=>{n.includes(`session-activity`)&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,w(e)},p))});return()=>{t&&clearTimeout(t),n()}},n[3]=e,n[4]=w,n[5]=T):T=n[5];let E;n[6]===e?E=n[7]:(E=[e],n[6]=e,n[7]=E),(0,f.useEffect)(T,E);let D,O;n[8]!==e||n[9]!==r?(D=()=>{if(!e||!r)return;let t=()=>{if(!r.awareness)return;let t=y(r,e);o(e=>!e||v(e.writingDocs,t)?e:{...e,writingDocs:t})},n=r.awareness;if(!n||typeof n.on!=`function`){t();return}n.on(`update`,t),t();let i=setInterval(t,1e3);return()=>{clearInterval(i),typeof n.off==`function`&&n.off(`update`,t)}},O=[e,r],n[8]=e,n[9]=r,n[10]=D,n[11]=O):(D=n[10],O=n[11]),(0,f.useEffect)(D,O);let k;n[12]===e?k=n[13]:(k=async(t,n)=>{if(!e)return``;let r=`${t}\0${n}`,i=x.current.get(r);if(i!==void 0)return i;let{diff:a}=await g(e,t,n);return x.current.set(r,a),a},n[12]=e,n[13]=k);let A=k,j;n[14]!==e||n[15]!==w?(j=()=>{e&&w(e)},n[14]=e,n[15]=w,n[16]=j):j=n[16];let M=j,N;return n[17]!==a||n[18]!==l||n[19]!==A||n[20]!==M||n[21]!==s?(N={data:a,status:s,error:l,reload:M,fetchBurstDiff:A},n[17]=a,n[18]=l,n[19]=A,n[20]=M,n[21]=s,n[22]=N):N=n[22],N}function v(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function y(e,t){let n=new Set;if(!e)return n;let r=e.awareness;if(!l(r))return n;let i=[t,t.startsWith(`agent-`)?t.slice(6):`agent-${t}`];for(let e of r.getStates().values()){let t=e.agentPresence;if(t)for(let e of i){let r=t[e];r&&r.mode===`writing`&&r.currentDoc&&n.add(r.currentDoc)}}return n}export{_ as n,g as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{i as t}from"./DocumentContext-g-cDYqVv.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{v as i}from"./documents-events-BmU3ACXG.js";import{n as a}from"./_envelope-BjFOILGI-BHu_Fgux.js";import{n as o,t as s}from"./schemas-api-BVrasm34.js";import{xt as c}from"./CodeMirrorPropInput-B0xn3frp.js";import{n as l}from"./agent-presence-DU3TT-KP.js";import{t as u}from"./lru-string-cache-2BECYUJH.js";var d=r(),f=e(n(),1),p=500,m=64;async function h(e){let t=`/api/agent-activity?agentId=${encodeURIComponent(e)}`,n=await fetch(t),r;try{r=await n.json()}catch(e){throw new c(`Could not parse /api/agent-activity response.`,{cause:e,status:n.status})}if(!n.ok){let e=a.safeParse(r);throw e.success?Error(e.data.title):new c(`/api/agent-activity returned a non-RFC-9457 error response.`,{cause:e.error,status:n.status})}let i=s.safeParse(r);if(!i.success)throw new c(`/api/agent-activity returned a body that did not match AgentActivitySuccessSchema.`,{cause:i.error,status:n.status});return i.data}async function g(e,t,n){let r=`/api/agent-burst-diff?agentId=${encodeURIComponent(e)}&docName=${encodeURIComponent(t)}&keptCount=${n}`,i=await fetch(r),s;try{s=await i.json()}catch(e){throw new c(`Could not parse /api/agent-burst-diff response.`,{cause:e,status:i.status})}if(!i.ok){let e=a.safeParse(s);throw e.success?Error(e.data.title):new c(`/api/agent-burst-diff returned a non-RFC-9457 error response.`,{cause:e.error,status:i.status})}let l=o.safeParse(s);if(!l.success)throw new c(`/api/agent-burst-diff returned a body that did not match AgentBurstDiffSuccessSchema.`,{cause:l.error,status:i.status});let{diff:u,before:d,after:f,properties:p}=l.data;return{diff:u,before:d,after:f,properties:p}}function _(e){let n=(0,d.c)(23),{systemProvider:r}=t(),[a,o]=(0,f.useState)(null),[s,c]=(0,f.useState)(`idle`),[l,_]=(0,f.useState)(null),b;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new u(m),n[0]=b):b=n[0];let x=(0,f.useRef)(b),S=(0,f.useRef)(0),C;n[1]===r?C=n[2]:(C=e=>{let t=S.current+=1;c(`loading`),_(null),h(e).then(n=>{if(S.current!==t)return;let i=y(r,e);o({...n,writingDocs:i}),c(`ready`)}).catch(e=>{S.current===t&&(_(e instanceof Error?e.message:String(e)),c(`error`))})},n[1]=r,n[2]=C);let w=C,T;n[3]!==e||n[4]!==w?(T=()=>{if(!e){S.current+=1,o(null),c(`idle`),_(null),x.current.clear();return}x.current.clear(),w(e);let t=null,n=i(n=>{n.includes(`session-activity`)&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,w(e)},p))});return()=>{t&&clearTimeout(t),n()}},n[3]=e,n[4]=w,n[5]=T):T=n[5];let E;n[6]===e?E=n[7]:(E=[e],n[6]=e,n[7]=E),(0,f.useEffect)(T,E);let D,O;n[8]!==e||n[9]!==r?(D=()=>{if(!e||!r)return;let t=()=>{if(!r.awareness)return;let t=y(r,e);o(e=>!e||v(e.writingDocs,t)?e:{...e,writingDocs:t})},n=r.awareness;if(!n||typeof n.on!=`function`){t();return}n.on(`update`,t),t();let i=setInterval(t,1e3);return()=>{clearInterval(i),typeof n.off==`function`&&n.off(`update`,t)}},O=[e,r],n[8]=e,n[9]=r,n[10]=D,n[11]=O):(D=n[10],O=n[11]),(0,f.useEffect)(D,O);let k;n[12]===e?k=n[13]:(k=async(t,n)=>{if(!e)return``;let r=`${t}\0${n}`,i=x.current.get(r);if(i!==void 0)return i;let{diff:a}=await g(e,t,n);return x.current.set(r,a),a},n[12]=e,n[13]=k);let A=k,j;n[14]!==e||n[15]!==w?(j=()=>{e&&w(e)},n[14]=e,n[15]=w,n[16]=j):j=n[16];let M=j,N;return n[17]!==a||n[18]!==l||n[19]!==A||n[20]!==M||n[21]!==s?(N={data:a,status:s,error:l,reload:M,fetchBurstDiff:A},n[17]=a,n[18]=l,n[19]=A,n[20]=M,n[21]=s,n[22]=N):N=n[22],N}function v(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function y(e,t){let n=new Set;if(!e)return n;let r=e.awareness;if(!l(r))return n;let i=[t,t.startsWith(`agent-`)?t.slice(6):`agent-${t}`];for(let e of r.getStates().values()){let t=e.agentPresence;if(t)for(let e of i){let r=t[e];r&&r.mode===`writing`&&r.currentDoc&&n.add(r.currentDoc)}}return n}export{_ as n,g as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ReportBugDialogBody-DqjPW80z.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./checkbox-CKD8LETI.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./check-B2OLRY33.js","./createLucideIcon-DdBzwsHe.js","./minus-DdRxss3A.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./collapsible-BKbszYZV.js","./chevron-right-Bofu4lib.js","./circle-alert-eBm4JPxY.js","./spinner-Bx8xD6f8.js","./bug-report-send-manager-6c_xUTXw.js","./trace-api-nQInEDYS.js","./propagation-api-dgM6YInk.js","./contact-email-store-B_5aVbhf.js","./BugReportHistory-BLhnqvOw.js","./chevron-down-CEv6N8LG.js","./folder-open-COGOeTzI.js","./trash-2-Blf9Cydx.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./button-DzgjsZzC.js","./platform-labels-DDy1ouuX.js","./dist-C_FzPxEX2.js","./constants-product-BVSOzxVs.js","./triangle-alert-DFWRwfH7.js","./schemas-B93JY9Ef.js","./ImageAttachments-D1w1uosg.js","./tooltip-Bz6z4_se.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./paperclip-FfP_WlTp.js","./x-wldAHzfP.js","./file-tree-adapter-BoFbTGGE.js","./file-tree-rename-validation-BZbYm35X.js","./file-tree-utils-w-NVNUx5.js","./constants-cc1-Bt4QPTUe.js","./util-doc-name-DRKmy6g9.js","./navigation-targets-2KeX0-Gp.js","./doc-paths-C1iU3JM4.js","./constants-upload-CVKO8P4d.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./doc-hash-DnaMfJ4U.js","./input-CgydZJoC.js","./textarea-DkcNoPBJ.js","./image-attachment-Chp6ejuJ.js","./tool-list-format-ahklHT7Z.js","./acp-thread-protocol-EC8X7m2Z.js","./dialog-CAxu_6pu.js","./electron-drag-strip-D9GZhMg_.js","./es2015-Dtr4fzLT.js","./channel-cli-copy-DBh0Rilf.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{t as i}from"./compiler-runtime-BfE3aGVn.js";var a=i(),o=e(r(),1),s=n(),c=(0,o.lazy)(()=>t(()=>import(`./ReportBugDialogBody-DqjPW80z.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]),import.meta.url));function l(e){let t=(0,a.c)(17),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({capture:n,onClose:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let l=n!==null,[d,f]=(0,o.useState)(l),[p,m]=(0,o.useState)(n),[h,g]=(0,o.useState)(!1),_=(0,o.useRef)(0);l&&!d&&f(!0),n!==null&&n!==p&&m(n);let v=n??p,y,b;if(t[4]!==l||t[5]!==i.crashInvite?(y=()=>{if(!l)return;let e=_.current+=1;g(!1);let t=window.okDesktop?.bugReport?.crashDumpAvailability;return i.crashInvite===void 0&&typeof t==`function`&&t().then(t=>{_.current===e&&g(t.available)}).catch(u),()=>{_.current+=1}},b=[l,i.crashInvite],t[4]=l,t[5]=i.crashInvite,t[6]=y,t[7]=b):(y=t[6],b=t[7]),(0,o.useEffect)(y,b),!d)return null;let x;t[8]===r?x=t[9]:(x=e=>{e||r()},t[8]=r,t[9]=x);let S=v?.screenshot??null,C=v?.pointerMarked??!1,w;return t[10]!==h||t[11]!==l||t[12]!==i||t[13]!==x||t[14]!==S||t[15]!==C?(w=(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(c,{...i,open:l,onOpenChange:x,screenshot:S,pointerMarked:C,crashDumpAvailable:h})}),t[10]=h,t[11]=l,t[12]=i,t[13]=x,t[14]=S,t[15]=C,t[16]=w):w=t[16],w}function u(e){console.warn(`[bug-report] crash-dump availability probe failed:`,e)}var d=0,f=0,p=!1,m=null;function h(){if(typeof window>`u`)return()=>{};if(m!==null)return m;let e=new AbortController,t={passive:!0,signal:e.signal};return window.addEventListener(`pointermove`,e=>{d=e.clientX,f=e.clientY,p=!0},t),window.addEventListener(`pointerout`,e=>{e.relatedTarget===null&&(p=!1)},t),m=()=>{e.abort(),p=!1,m=null},m}function g(){return p?{x:d,y:f}:null}var _=Object.freeze({screenshot:null,pointerMarked:!1}),v=`data-bug-report-capturing`,y=0;function b(){return y+=1,document.documentElement.setAttribute(v,``),()=>{--y,y===0&&document.documentElement.removeAttribute(v)}}var x=`[data-bug-report-launcher]`,S=1e3;function C(){return new Promise(e=>requestAnimationFrame(()=>e()))}async function w(e){try{await C(),await C();let e=Array.from(document.querySelectorAll(x)).flatMap(e=>e.getAnimations?.({subtree:!0})??[]);await Promise.race([Promise.allSettled(e.map(e=>e.finished)),new Promise(e=>setTimeout(e,S))])}finally{e()}}var T=1200;function E(){let e=g();if(e===null)return null;let t=document.createElement(`div`);return t.className=`ok-pointer-marker`,t.setAttribute(`aria-hidden`,`true`),t.style.left=`${e.x}px`,t.style.top=`${e.y}px`,document.body.append(t),()=>t.remove()}function D(e){return new Promise(t=>{let n=!1,r=e=>{n||(n=!0,clearTimeout(i),t(e))},i=setTimeout(()=>{console.warn(`[bug-report] screenshot capture did not settle within ${T}ms; revealing without one`),r(null)},T);requestAnimationFrame(()=>{requestAnimationFrame(()=>{n||e().then(r,e=>{console.warn(`[bug-report] screenshot capture failed:`,e),r(null)})})})})}async function O(e){let t=window.okDesktop?.bugReport?.captureScreenshot;if(typeof t!=`function`)return _;let n=null,r=null;try{e.launcherBorne?n=b():r=E();let i=await D(t);return{screenshot:i,pointerMarked:i!==null&&r!==null}}finally{r?.(),n!==null&&w(n)}}var k={kind:`idle`};function A(e){let t=k;return{start(n,r){if(t.kind!==`idle`)return;let i=O(n);t={kind:`capturing`,pending:i};let a=()=>t.kind===`capturing`&&t.pending===i;i.then(n=>{a()&&(t=k,r?.(),e(n),t={kind:`open`})},e=>{throw a()&&(t=k),e})},close(){t=k,e(null)}}}function j(){let e=(0,a.c)(8),[t,n]=(0,o.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>A(n),e[0]=r):r=e[0];let[i]=(0,o.useState)(r),s,c;e[1]===i?(s=e[2],c=e[3]):(s=()=>()=>i.close(),c=[i],e[1]=i,e[2]=s,e[3]=c),(0,o.useEffect)(s,c);let l;return e[4]!==t||e[5]!==i.close||e[6]!==i.start?(l={capture:t,start:i.start,close:i.close},e[4]=t,e[5]=i.close,e[6]=i.start,e[7]=l):l=e[7],l}function M(){let e=(0,a.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={},e[0]=t):t=e[0];let[n,r]=(0,o.useState)(t),i,s;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=window.okDesktop?.terminal;if(typeof e?.cliInstalledMap!=`function`)return;let t=!1,n=()=>{e.cliInstalledMap().then(e=>{t||r(e)}).catch(N)};return n(),window.addEventListener(`focus`,n),()=>{t=!0,window.removeEventListener(`focus`,n)}},s=[],e[1]=i,e[2]=s):(i=e[1],s=e[2]),(0,o.useEffect)(i,s),n}function N(e){console.warn(`[terminal] cliInstalledMap probe failed:`,e)}export{l as a,h as i,_ as n,j as r,M as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ReportBugDialogBody-N9n3BSZV.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./checkbox-CKD8LETI.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./check-B2OLRY33.js","./createLucideIcon-DdBzwsHe.js","./minus-DdRxss3A.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./collapsible-BKbszYZV.js","./chevron-right-Bofu4lib.js","./circle-alert-eBm4JPxY.js","./spinner-Bx8xD6f8.js","./bug-report-send-manager-6c_xUTXw.js","./trace-api-nQInEDYS.js","./propagation-api-dgM6YInk.js","./contact-email-store-B_5aVbhf.js","./BugReportHistory-BLhnqvOw.js","./chevron-down-CEv6N8LG.js","./folder-open-COGOeTzI.js","./trash-2-Blf9Cydx.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./button-DzgjsZzC.js","./platform-labels-DDy1ouuX.js","./dist-C_FzPxEX2.js","./constants-product-BVSOzxVs.js","./triangle-alert-DFWRwfH7.js","./schemas-B93JY9Ef.js","./ImageAttachments--kYwG922.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./paperclip-FfP_WlTp.js","./x-wldAHzfP.js","./file-tree-adapter-BoFbTGGE.js","./file-tree-rename-validation-BZbYm35X.js","./file-tree-utils-w-NVNUx5.js","./constants-cc1-Bt4QPTUe.js","./util-doc-name-DRKmy6g9.js","./navigation-targets-2KeX0-Gp.js","./doc-paths-C1iU3JM4.js","./constants-upload-CVKO8P4d.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./doc-hash-DnaMfJ4U.js","./input-CgydZJoC.js","./textarea-DkcNoPBJ.js","./image-attachment-Chp6ejuJ.js","./tool-list-format-ahklHT7Z.js","./acp-thread-protocol-EC8X7m2Z.js","./dialog-CAxu_6pu.js","./electron-drag-strip-D9GZhMg_.js","./es2015-Dtr4fzLT.js","./channel-cli-copy-BySq87hR.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{t as i}from"./compiler-runtime-BfE3aGVn.js";var a=i(),o=e(r(),1),s=n(),c=(0,o.lazy)(()=>t(()=>import(`./ReportBugDialogBody-N9n3BSZV.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]),import.meta.url));function l(e){let t=(0,a.c)(17),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({capture:n,onClose:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let l=n!==null,[d,f]=(0,o.useState)(l),[p,m]=(0,o.useState)(n),[h,g]=(0,o.useState)(!1),_=(0,o.useRef)(0);l&&!d&&f(!0),n!==null&&n!==p&&m(n);let v=n??p,y,b;if(t[4]!==l||t[5]!==i.crashInvite?(y=()=>{if(!l)return;let e=_.current+=1;g(!1);let t=window.okDesktop?.bugReport?.crashDumpAvailability;return i.crashInvite===void 0&&typeof t==`function`&&t().then(t=>{_.current===e&&g(t.available)}).catch(u),()=>{_.current+=1}},b=[l,i.crashInvite],t[4]=l,t[5]=i.crashInvite,t[6]=y,t[7]=b):(y=t[6],b=t[7]),(0,o.useEffect)(y,b),!d)return null;let x;t[8]===r?x=t[9]:(x=e=>{e||r()},t[8]=r,t[9]=x);let S=v?.screenshot??null,C=v?.pointerMarked??!1,w;return t[10]!==h||t[11]!==l||t[12]!==i||t[13]!==x||t[14]!==S||t[15]!==C?(w=(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(c,{...i,open:l,onOpenChange:x,screenshot:S,pointerMarked:C,crashDumpAvailable:h})}),t[10]=h,t[11]=l,t[12]=i,t[13]=x,t[14]=S,t[15]=C,t[16]=w):w=t[16],w}function u(e){console.warn(`[bug-report] crash-dump availability probe failed:`,e)}var d=0,f=0,p=!1,m=null;function h(){if(typeof window>`u`)return()=>{};if(m!==null)return m;let e=new AbortController,t={passive:!0,signal:e.signal};return window.addEventListener(`pointermove`,e=>{d=e.clientX,f=e.clientY,p=!0},t),window.addEventListener(`pointerout`,e=>{e.relatedTarget===null&&(p=!1)},t),m=()=>{e.abort(),p=!1,m=null},m}function g(){return p?{x:d,y:f}:null}var _=Object.freeze({screenshot:null,pointerMarked:!1}),v=`data-bug-report-capturing`,y=0;function b(){return y+=1,document.documentElement.setAttribute(v,``),()=>{--y,y===0&&document.documentElement.removeAttribute(v)}}var x=`[data-bug-report-launcher]`,S=1e3;function C(){return new Promise(e=>requestAnimationFrame(()=>e()))}async function w(e){try{await C(),await C();let e=Array.from(document.querySelectorAll(x)).flatMap(e=>e.getAnimations?.({subtree:!0})??[]);await Promise.race([Promise.allSettled(e.map(e=>e.finished)),new Promise(e=>setTimeout(e,S))])}finally{e()}}var T=1200;function E(){let e=g();if(e===null)return null;let t=document.createElement(`div`);return t.className=`ok-pointer-marker`,t.setAttribute(`aria-hidden`,`true`),t.style.left=`${e.x}px`,t.style.top=`${e.y}px`,document.body.append(t),()=>t.remove()}function D(e){return new Promise(t=>{let n=!1,r=e=>{n||(n=!0,clearTimeout(i),t(e))},i=setTimeout(()=>{console.warn(`[bug-report] screenshot capture did not settle within ${T}ms; revealing without one`),r(null)},T);requestAnimationFrame(()=>{requestAnimationFrame(()=>{n||e().then(r,e=>{console.warn(`[bug-report] screenshot capture failed:`,e),r(null)})})})})}async function O(e){let t=window.okDesktop?.bugReport?.captureScreenshot;if(typeof t!=`function`)return _;let n=null,r=null;try{e.launcherBorne?n=b():r=E();let i=await D(t);return{screenshot:i,pointerMarked:i!==null&&r!==null}}finally{r?.(),n!==null&&w(n)}}var k={kind:`idle`};function A(e){let t=k;return{start(n,r){if(t.kind!==`idle`)return;let i=O(n);t={kind:`capturing`,pending:i};let a=()=>t.kind===`capturing`&&t.pending===i;i.then(n=>{a()&&(t=k,r?.(),e(n),t={kind:`open`})},e=>{throw a()&&(t=k),e})},close(){t=k,e(null)}}}function j(){let e=(0,a.c)(8),[t,n]=(0,o.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>A(n),e[0]=r):r=e[0];let[i]=(0,o.useState)(r),s,c;e[1]===i?(s=e[2],c=e[3]):(s=()=>()=>i.close(),c=[i],e[1]=i,e[2]=s,e[3]=c),(0,o.useEffect)(s,c);let l;return e[4]!==t||e[5]!==i.close||e[6]!==i.start?(l={capture:t,start:i.start,close:i.close},e[4]=t,e[5]=i.close,e[6]=i.start,e[7]=l):l=e[7],l}function M(){let e=(0,a.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={},e[0]=t):t=e[0];let[n,r]=(0,o.useState)(t),i,s;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=window.okDesktop?.terminal;if(typeof e?.cliInstalledMap!=`function`)return;let t=!1,n=()=>{e.cliInstalledMap().then(e=>{t||r(e)}).catch(N)};return n(),window.addEventListener(`focus`,n),()=>{t=!0,window.removeEventListener(`focus`,n)}},s=[],e[1]=i,e[2]=s):(i=e[1],s=e[2]),(0,o.useEffect)(i,s),n}function N(e){console.warn(`[terminal] cliInstalledMap probe failed:`,e)}export{l as a,h as i,_ as n,j as r,M as t};
@@ -1 +1 @@
1
- import{i as e}from"./DocumentContext-BKb3GeF8.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{n}from"./dist-BGzUo_18.js";import{t as r}from"./dist-C_FzPxEX2.js";import{S as i}from"./constants-cc1-Bt4QPTUe.js";import{d as a,r as o}from"./documents-events-BmU3ACXG.js";import{_ as s,l as c,v as l}from"./doc-hash-DnaMfJ4U.js";import{u}from"./navigation-targets-2KeX0-Gp.js";import{_ as d}from"./skills-api-UsV4esNc.js";import{n as f,t as p}from"./use-skills-DtKZux5S.js";import{n as m}from"./open-managed-artifact-tab-D8EGUen_.js";var h=t(),g=null,_=new Set;function v(){return g}function y(e){return _.add(e),()=>{_.delete(e)}}function b(){for(let e of _)e()}function x(e){g!==null&&g.scope===e.scope&&g.name===e.name||(g=e,b())}function S(){g!==null&&(g=null,b())}function C(){let t=(0,h.c)(4),{openTarget:g}=e(),_=p(),v;return t[0]!==g||t[1]!==_.data||t[2]!==_.status?(v=(e,t,p)=>{let h=n=>{_.status===`ready`&&_.data.some(n=>n.scope===e&&n.name===t)||(o(e,t),f(e,t).then(()=>a(e,t))),g({kind:`doc`,target:n,docName:n},p?.replaceActive?{tabBehavior:`replace-active`}:void 0);let r=c(n);p?.replaceHistory?l(r):s(r)},v=_.status===`ready`?_.data.find(n=>n.scope===e&&n.name===t&&(p?.host===void 0?n.hostQualifier===void 0:n.hostQualifier===p.host)):void 0;if(v?.ignored===!0&&v.managed!==!0){let n=v;(async()=>{try{let n=await d(e),r=n.ok?n.skills.find(n=>n.scope===e&&n.name===t&&(p?.host===void 0?n.hostQualifier===void 0:n.hostQualifier===p.host)):void 0;if(r&&r.ignored!==!0){h(u(r));return}}catch{}x({scope:n.scope,name:n.name})})();return}let y=w;if(v?.managed===!0&&v.absolutePath!==void 0){m({flavor:`builtin`,source:y(v.absolutePath),name:v.name,subtitle:``,level:v.scope});return}if(v&&v.scope===`project`&&v.managed!==!0&&v.canonicalPath!==void 0&&v.absolutePath!==void 0){m({flavor:`linked`,source:y(v.absolutePath),name:v.name,subtitle:``,level:v.scope});return}if(v)return h(u(v));if(e===`project`&&p?.path)return h(p.path.replace(/\.mdx?$/i,``));if(e===`global`)return h(i(e,t,p?.host));(async()=>{try{let i=await d(`project`);if(!i.ok){n.error(r._({id:`IO8REi`,values:{0:i.error,name:t}}));return}let a=i.skills.find(n=>n.scope===e&&n.name===t);if(!a){n.error(r._({id:`9uRLEH`,values:{name:t}}));return}h(u(a))}catch(e){let i=e;n.error(r._({id:`IO8REi`,values:{0:i instanceof Error?i.message:String(i),name:t}}))}})()},t[0]=g,t[1]=_.data,t[2]=_.status,t[3]=v):v=t[3],v}function w(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t>0?e.slice(0,t):e}export{y as a,x as i,S as n,v as r,C as t};
1
+ import{i as e}from"./DocumentContext-g-cDYqVv.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{n}from"./dist-BGzUo_18.js";import{t as r}from"./dist-C_FzPxEX2.js";import{S as i}from"./constants-cc1-Bt4QPTUe.js";import{d as a,r as o}from"./documents-events-BmU3ACXG.js";import{_ as s,l as c,v as l}from"./doc-hash-DnaMfJ4U.js";import{u}from"./navigation-targets-2KeX0-Gp.js";import{_ as d}from"./skills-api-UsV4esNc.js";import{n as f,t as p}from"./use-skills-DtKZux5S.js";import{n as m}from"./open-managed-artifact-tab-D8EGUen_.js";var h=t(),g=null,_=new Set;function v(){return g}function y(e){return _.add(e),()=>{_.delete(e)}}function b(){for(let e of _)e()}function x(e){g!==null&&g.scope===e.scope&&g.name===e.name||(g=e,b())}function S(){g!==null&&(g=null,b())}function C(){let t=(0,h.c)(4),{openTarget:g}=e(),_=p(),v;return t[0]!==g||t[1]!==_.data||t[2]!==_.status?(v=(e,t,p)=>{let h=n=>{_.status===`ready`&&_.data.some(n=>n.scope===e&&n.name===t)||(o(e,t),f(e,t).then(()=>a(e,t))),g({kind:`doc`,target:n,docName:n},p?.replaceActive?{tabBehavior:`replace-active`}:void 0);let r=c(n);p?.replaceHistory?l(r):s(r)},v=_.status===`ready`?_.data.find(n=>n.scope===e&&n.name===t&&(p?.host===void 0?n.hostQualifier===void 0:n.hostQualifier===p.host)):void 0;if(v?.ignored===!0&&v.managed!==!0){let n=v;(async()=>{try{let n=await d(e),r=n.ok?n.skills.find(n=>n.scope===e&&n.name===t&&(p?.host===void 0?n.hostQualifier===void 0:n.hostQualifier===p.host)):void 0;if(r&&r.ignored!==!0){h(u(r));return}}catch{}x({scope:n.scope,name:n.name})})();return}let y=w;if(v?.managed===!0&&v.absolutePath!==void 0){m({flavor:`builtin`,source:y(v.absolutePath),name:v.name,subtitle:``,level:v.scope});return}if(v&&v.scope===`project`&&v.managed!==!0&&v.canonicalPath!==void 0&&v.absolutePath!==void 0){m({flavor:`linked`,source:y(v.absolutePath),name:v.name,subtitle:``,level:v.scope});return}if(v)return h(u(v));if(e===`project`&&p?.path)return h(p.path.replace(/\.mdx?$/i,``));if(e===`global`)return h(i(e,t,p?.host));(async()=>{try{let i=await d(`project`);if(!i.ok){n.error(r._({id:`IO8REi`,values:{0:i.error,name:t}}));return}let a=i.skills.find(n=>n.scope===e&&n.name===t);if(!a){n.error(r._({id:`9uRLEH`,values:{name:t}}));return}h(u(a))}catch(e){let i=e;n.error(r._({id:`IO8REi`,values:{0:i instanceof Error?i.message:String(i),name:t}}))}})()},t[0]=g,t[1]=_.data,t[2]=_.status,t[3]=v):v=t[3],v}function w(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t>0?e.slice(0,t):e}export{y as a,x as i,S as n,v as r,C as t};
@@ -1 +1 @@
1
- import{t as e}from"./compiler-runtime-BfE3aGVn.js";import{n as t}from"./config-errors-CHiUH8-1.js";import{i as n}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-1vG-B8AF.js";import{t as r}from"./trace-api-nQInEDYS.js";var i=e(),a=`open-knowledge-app`;function o(e){try{r.getTracer(a).startSpan(e).end()}catch(e){console.warn(`[terminal-telemetry] span emit failed:`,e instanceof Error?e:String(e))}}function s(){o(`ok.desktop.terminalOpened`)}function c(){o(`ok.desktop.shellConsentGranted`)}function l(){let e=(0,i.c)(3),{projectLocalConfig:t,projectLocalSynced:r}=n(),a=t?.terminal?.enabled??null,o;return e[0]!==r||e[1]!==a?(o={enabled:a,synced:r},e[0]=r,e[1]=a,e[2]=o):o=e[2],o}function u(){let e=(0,i.c)(2),{projectLocalBinding:r,projectLocalSynced:a}=n();if(r===null||!a)return null;let o;return e[0]===r?o=e[1]:(o=e=>{let n=r.patch({terminal:{enabled:e}});return n.ok&&e&&c(),n.ok?{ok:!0}:{ok:!1,error:t(n.error)}},e[0]=r,e[1]=o),o}export{u as n,s as r,l as t};
1
+ import{t as e}from"./compiler-runtime-BfE3aGVn.js";import{n as t}from"./config-errors-CHiUH8-1.js";import{i as n}from"./use-apply-config-theme-CYFG76sS.js";import"./config-provider-rhvkI-p4.js";import{t as r}from"./trace-api-nQInEDYS.js";var i=e(),a=`open-knowledge-app`;function o(e){try{r.getTracer(a).startSpan(e).end()}catch(e){console.warn(`[terminal-telemetry] span emit failed:`,e instanceof Error?e:String(e))}}function s(){o(`ok.desktop.terminalOpened`)}function c(){o(`ok.desktop.shellConsentGranted`)}function l(){let e=(0,i.c)(3),{projectLocalConfig:t,projectLocalSynced:r}=n(),a=t?.terminal?.enabled??null,o;return e[0]!==r||e[1]!==a?(o={enabled:a,synced:r},e[0]=r,e[1]=a,e[2]=o):o=e[2],o}function u(){let e=(0,i.c)(2),{projectLocalBinding:r,projectLocalSynced:a}=n();if(r===null||!a)return null;let o;return e[0]===r?o=e[1]:(o=e=>{let n=r.patch({terminal:{enabled:e}});return n.ok&&e&&c(),n.ok?{ok:!0}:{ok:!1,error:t(n.error)}},e[0]=r,e[1]=o),o}export{u as n,s as r,l as t};
@@ -1,4 +1,4 @@
1
- import{o as e,t}from"./chunk-CYidjpOJ.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{A as r,D as i,F as a,I as o,Jt as s,L as c,M as l,N as u,O as d,P as f,Ut as p,_ as m,g as h,i as g,j as _,k as v,qt as y}from"./DocumentContext-BKb3GeF8.js";import{t as b}from"./react-f2sANaYj.js";import{n as x,r as S}from"./dist-Nvb76hAm.js";import{t as C}from"./react-dom-DPxgxlDT.js";import{t as w}from"./compiler-runtime-BfE3aGVn.js";import{t as ee}from"./react-error-boundary-6ac6QM6R.js";import{T,X as E,Y as D,_t as O,at as te,dt as ne,it as re,lt as ie,mt as k,n as ae,pt as A}from"./dist-Dc8tD1th.js";import{Yt as oe,bt as j,it as se}from"./schemas-api-BVrasm34.js";import{c as ce}from"./Mermaid-DH1HLMlB.js";import{h as M,i as le,l as ue,n as de,t as fe}from"./PropertyDisplayRow-DRAPuvOr.js";import{Ct as pe,at as me,ct as he,nt as ge,ot as _e,rt as ve,tt as ye,ut as be,wt as xe}from"./CodeMirrorPropInput-viDrvKTW.js";import{t as Se}from"./minus-DdRxss3A.js";import{n as Ce,t as we}from"./plus-CXQ-oViZ.js";import{t as Te}from"./libesm-DKFmHwvW.js";var N=w(),P=n(),F=200;function Ee(e){let t=(0,N.c)(27),{delta:n,open:r,onOpenChange:i}=e;if(n.unparseable!==null){let e;return t[0]===n.unparseable?e=t[1]:(e=(0,P.jsx)(je,{regions:n.unparseable}),t[0]=n.unparseable,t[1]=e),e}if(n.changes.length===0)return null;let a,o,s,c,l,u,d,f,p;if(t[2]!==n.changes||t[3]!==i||t[4]!==r){let e=n.changes.slice(0,50);o=n.changes.length-e.length,a=de,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,P.jsx)(x,{id:`l_UFPv`}),t[14]=s):s=t[14],c=n.changes.length,l=`property-diff-block`,u=`border-b border-border py-3`,d=r,f=i,p=e.map(De),t[2]=n.changes,t[3]=i,t[4]=r,t[5]=a,t[6]=o,t[7]=s,t[8]=c,t[9]=l,t[10]=u,t[11]=d,t[12]=f,t[13]=p}else a=t[5],o=t[6],s=t[7],c=t[8],l=t[9],u=t[10],d=t[11],f=t[12],p=t[13];let m;t[15]===o?m=t[16]:(m=o>0&&(0,P.jsx)(`p`,{className:`px-2 pt-1 text-xs text-muted-foreground italic`,children:(0,P.jsx)(x,{id:`6qFchx`,values:{omitted:o}})}),t[15]=o,t[16]=m);let h;return t[17]!==a||t[18]!==s||t[19]!==c||t[20]!==l||t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==p||t[25]!==m?(h=(0,P.jsxs)(a,{title:s,count:c,testId:l,className:u,open:d,onOpenChange:f,children:[p,m]}),t[17]=a,t[18]=s,t[19]=c,t[20]=l,t[21]=u,t[22]=d,t[23]=f,t[24]=p,t[25]=m,t[26]=h):h=t[26],h}function De(e){return(0,P.jsx)(Oe,{change:e},`${e.kind}-${e.key}`)}function Oe(e){let t=(0,N.c)(22),{change:n}=e,{_:r}=S(),i=ue[oe(n.kind===`removed`?n.before:n.after)],a;t[0]!==r||t[1]!==n.kind?(a=n.kind===`added`?{KindIcon:we,kindLabel:r({id:`hp8OtS`})}:n.kind===`removed`?{KindIcon:Se,kindLabel:r({id:`eps54V`})}:{KindIcon:Ce,kindLabel:r({id:`cNsIJf`})},t[0]=r,t[1]=n.kind,t[2]=a):a=t[2];let{KindIcon:o,kindLabel:s}=a,c;t[3]===o?c=t[4]:(c=(0,P.jsx)(o,{"aria-hidden":`true`,className:`size-3.5`}),t[3]=o,t[4]=c);let l;t[5]===s?l=t[6]:(l=(0,P.jsx)(`span`,{className:`sr-only`,children:s}),t[5]=s,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,P.jsxs)(`span`,{className:`flex size-7 shrink-0 items-center justify-center text-muted-foreground`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]===i?d=t[11]:(d=(0,P.jsx)(i,{"aria-hidden":`true`,className:`size-3.5`}),t[10]=i,t[11]=d);let f;t[12]===n?f=t[13]:(f=(0,P.jsx)(ke,{change:n}),t[12]=n,t[13]=f);let p;t[14]!==n.key||t[15]!==d||t[16]!==f?(p=(0,P.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,P.jsx)(fe,{icon:d,label:n.key,dataKey:n.key,children:f})}),t[14]=n.key,t[15]=d,t[16]=f,t[17]=p):p=t[17];let m;return t[18]!==n.key||t[19]!==u||t[20]!==p?(m=(0,P.jsxs)(`div`,{"data-property-change":``,"data-key":n.key,"data-testid":`property-diff-row`,className:`flex items-start gap-1`,children:[u,p]}),t[18]=n.key,t[19]=u,t[20]=p,t[21]=m):m=t[21],m}function ke(e){let t=(0,N.c)(17),{change:n}=e;if(n.kind===`added`){let e;return t[0]!==n.after||t[1]!==n.key?(e=(0,P.jsx)(I,{value:n.after,keyName:n.key}),t[0]=n.after,t[1]=n.key,t[2]=e):e=t[2],e}if(n.kind===`removed`){let e;return t[3]!==n.before||t[4]!==n.key?(e=(0,P.jsx)(I,{value:n.before,keyName:n.key,removed:!0}),t[3]=n.before,t[4]=n.key,t[5]=e):e=t[5],e}let r=M(n.before)||M(n.after)?`flex flex-col gap-1`:`flex flex-wrap items-center gap-1.5`,i;t[6]!==n.before||t[7]!==n.key?(i=(0,P.jsx)(I,{value:n.before,keyName:n.key,removed:!0}),t[6]=n.before,t[7]=n.key,t[8]=i):i=t[8];let a;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted-foreground`,children:`→`}),t[9]=a):a=t[9];let o;t[10]!==n.after||t[11]!==n.key?(o=(0,P.jsx)(I,{value:n.after,keyName:n.key}),t[10]=n.after,t[11]=n.key,t[12]=o):o=t[12];let s;return t[13]!==r||t[14]!==i||t[15]!==o?(s=(0,P.jsxs)(`div`,{className:r,"data-testid":`property-diff-change-pair`,children:[i,a,o]}),t[13]=r,t[14]=i,t[15]=o,t[16]=s):s=t[16],s}function I(e){let t=(0,N.c)(17),{value:n,keyName:r,removed:i}=e,a=i===void 0?!1:i;if(M(n)){let e=a?`opacity-70`:void 0,i;t[0]!==r||t[1]!==n?(i=(0,P.jsx)(le,{keyName:r,value:n}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let o;return t[3]!==e||t[4]!==i?(o=(0,P.jsx)(`div`,{className:e,children:i}),t[3]=e,t[4]=i,t[5]=o):o=t[5],o}let o,s,c,l;if(t[6]!==a||t[7]!==n){let e=Array.isArray(n)?n.filter(Ae).join(`, `):String(n),r=e.length>F;o=a?`px-1 text-sm break-words text-muted-foreground line-through`:`px-1 text-sm break-words`,s=r?e:void 0,c=`property-diff-value`,l=r?`${e.slice(0,F)}…`:e,t[6]=a,t[7]=n,t[8]=o,t[9]=s,t[10]=c,t[11]=l}else o=t[8],s=t[9],c=t[10],l=t[11];let u;return t[12]!==o||t[13]!==s||t[14]!==c||t[15]!==l?(u=(0,P.jsx)(`span`,{className:o,title:s,"data-testid":c,children:l}),t[12]=o,t[13]=s,t[14]=c,t[15]=l,t[16]=u):u=t[16],u}function Ae(e){return typeof e==`string`}function je(e){let t=(0,N.c)(10),{regions:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground italic`,children:(0,P.jsx)(x,{id:`wFyXOW`})}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,P.jsx)(x,{id:`EmSrGB`}),t[1]=i):i=t[1];let a;t[2]===n.before?a=t[3]:(a=(0,P.jsx)(L,{label:i,text:n.before}),t[2]=n.before,t[3]=a);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,P.jsx)(x,{id:`NawEr2`}),t[4]=o):o=t[4];let s;t[5]===n.after?s=t[6]:(s=(0,P.jsx)(L,{label:o,text:n.after}),t[5]=n.after,t[6]=s);let c;return t[7]!==a||t[8]!==s?(c=(0,P.jsxs)(`div`,{className:`border-b border-border px-4 py-3`,"data-testid":`property-diff-unparseable`,"data-property-change":``,children:[r,(0,P.jsxs)(`div`,{className:`mt-2 grid gap-2 sm:grid-cols-2`,children:[a,s]})]}),t[7]=a,t[8]=s,t[9]=c):c=t[9],c}function L(e){let t=(0,N.c)(7),{label:n,text:r}=e,i;t[0]===n?i=t[1]:(i=(0,P.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:n}),t[0]=n,t[1]=i);let a=r===``?`—`:r,o;t[2]===a?o=t[3]:(o=(0,P.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted px-2 py-1.5 font-mono text-xs whitespace-pre-wrap`,children:a}),t[2]=a,t[3]=o);let s;return t[4]!==i||t[5]!==o?(s=(0,P.jsxs)(`div`,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=s):s=t[6],s}var R=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.unescapeToken=t,e.escapeToken=n;function t(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function n(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.Pointer=function(){function e(e){e===void 0&&(e=[``]),this.tokens=e}return e.fromJSON=function(n){var r=n.split(`/`).map(t);if(r[0]!==``)throw Error(`Invalid JSON Pointer: ${n}`);return new e(r)},e.prototype.toString=function(){return this.tokens.map(n).join(`/`)},e.prototype.evaluate=function(e){for(var t=null,n=``,r=e,i=1,a=this.tokens.length;i<a;i++)t=r,n=this.tokens[i],!(n==`__proto__`||n==`constructor`||n==`prototype`)&&(r=(t||{})[n]);return{parent:t,key:n,value:r}},e.prototype.get=function(e){return this.evaluate(e).value},e.prototype.set=function(e,t){var n=this.evaluate(e);n.parent&&(n.parent[n.key]=t)},e.prototype.push=function(e){this.tokens.push(e)},e.prototype.add=function(t){return new e(this.tokens.concat(String(t)))},e.prototype.parent=function(){return new e(this.tokens.length>1?this.tokens.slice(0,-1):[``])},e}()})),z=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasOwnProperty=void 0,e.objectType=t,e.clone=r,e.hasOwnProperty=Object.prototype.hasOwnProperty;function t(e){return e===void 0?`undefined`:e===null?`null`:Array.isArray(e)?`array`:typeof e}function n(e){return typeof e==`object`&&!!e}function r(t){if(!n(t))return t;if(t.constructor==Array){for(var i=t.length,a=Array(i),o=0;o<i;o++)a[o]=r(t[o]);return a}if(t.constructor==Date)return new Date(+t);var s={};for(var c in t)e.hasOwnProperty.call(t,c)&&(s[c]=r(t[c]));return s}})),B=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDestructive=n,e.subtract=r,e.intersection=i,e.diffArrays=l,e.diffObjects=u,e.diffAny=d;var t=z();function n(e){var t=e.op;return t===`remove`||t===`replace`||t===`copy`||t===`move`}function r(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&!(t.hasOwnProperty.call(n,i)&&n[i]!==void 0)&&r.push(i);return r}function i(e){for(var n=e.length,r={},i=0;i<n;i++){var a=e[i];for(var o in a)t.hasOwnProperty.call(a,o)&&a[o]!==void 0&&(r[o]=(r[o]||0)+1)}for(var o in r)r[o]<n&&delete r[o];return Object.keys(r)}function a(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&t.hasOwnProperty.call(n,i)&&n[i]!==void 0&&r.push(i);return r}function o(e){return e.op===`add`}function s(e){return e.op===`remove`}function c(e,t){return{operations:e.operations.concat(t),cost:e.cost+1}}function l(e,t,n,r){r===void 0&&(r=d);var i=Math.max(e.length,t.length),a=new Map([[0,{operations:[],cost:0}]]);function l(o,s){var u=o*i+s,d=a.get(u);if(d===void 0){if(o>0&&s>0&&!r(e[o-1],t[s-1],n.add(String(o-1))).length)d=l(o-1,s-1);else{var f=[];if(o>0){var p=l(o-1,s),m={op:`remove`,index:o-1};f.push(c(p,m))}if(s>0){var h=l(o,s-1),g={op:`add`,index:o-1,value:t[s-1]};f.push(c(h,g))}if(o>0&&s>0){var _=l(o-1,s-1),v={op:`replace`,index:o-1,original:e[o-1],value:t[s-1]};f.push(c(_,v))}d=f.sort(function(e,t){return e.cost-t.cost})[0]}a.set(u,d)}return d}var u=isNaN(e.length)||e.length<=0?0:e.length;return l(u,isNaN(t.length)||t.length<=0?0:t.length).operations.reduce(function(e,t){var i=e[0],a=e[1];if(o(t)){var c=t.index+1+a,l=c<u+a?String(c):`-`,d={op:t.op,path:n.add(l).toString(),value:t.value};return[i.concat(d),a+1]}else if(s(t)){var d={op:t.op,path:n.add(String(t.index+a)).toString()};return[i.concat(d),a-1]}else{var f=n.add(String(t.index+a)),p=r(t.original,t.value,f);return[i.concat.apply(i,p),a]}},[[],0])[0]}function u(e,t,n,i){i===void 0&&(i=d);var o=[];return r(e,t).forEach(function(e){o.push({op:`remove`,path:n.add(e).toString()})}),r(t,e).forEach(function(e){o.push({op:`add`,path:n.add(e).toString(),value:t[e]})}),a(e,t).forEach(function(r){o.push.apply(o,i(e[r],t[r],n.add(r)))}),o}function d(e,n,r,i){if(i===void 0&&(i=d),e===n)return[];var a=(0,t.objectType)(e),o=(0,t.objectType)(n);return a==`array`&&o==`array`?l(e,n,r,i):a==`object`&&o==`object`?u(e,n,r,i):[{op:`replace`,path:r.toString(),value:n}]}})),Me=t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidOperationError=e.TestError=e.MissingError=void 0,e.add=l,e.remove=u,e.replace=d,e.move=f,e.copy=p,e.test=m,e.apply=g;var n=R(),r=z(),i=B(),a=function(e){t(n,e);function n(t){var n=e.call(this,`Value required at path: ${t}`)||this;return n.path=t,n.name=`MissingError`,n}return n}(Error);e.MissingError=a;var o=function(e){t(n,e);function n(t,n){var r=e.call(this,`Test failed: ${t} != ${n}`)||this;return r.actual=t,r.expected=n,r.name=`TestError`,r}return n}(Error);e.TestError=o;function s(e,t,n){if(Array.isArray(e))if(t==`-`)e.push(n);else{var r=parseInt(t,10);e.splice(r,0,n)}else e[t]=n}function c(e,t){if(Array.isArray(e)){var n=parseInt(t,10);e.splice(n,1)}else delete e[t]}function l(e,t,i){var o=n.Pointer.fromJSON(t.path);if(i?.implicitArrayCreation&&o.tokens[o.tokens.length-1]===`-`){var c=o.parent().evaluate(e);c.value===void 0&&(0,r.objectType)(c.parent)===`object`&&(c.parent[c.key]=[])}var l=o.evaluate(e);return l.parent===void 0||i?.implicitArrayCreation&&l.key===`-`&&!Array.isArray(l.parent)?new a(t.path):(s(l.parent,l.key,(0,r.clone)(t.value)),null)}function u(e,t,r){var i=n.Pointer.fromJSON(t.path).evaluate(e);return i.value===void 0?new a(t.path):(c(i.parent,i.key),null)}function d(e,t,i){var o=n.Pointer.fromJSON(t.path).evaluate(e);if(o.parent===null)return new a(t.path);if(Array.isArray(o.parent)){if(parseInt(o.key,10)>=o.parent.length)return new a(t.path)}else if(o.value===void 0)return new a(t.path);return o.parent[o.key]=(0,r.clone)(t.value),null}function f(e,t,r){var i=n.Pointer.fromJSON(t.from).evaluate(e);if(i.value===void 0)return new a(t.from);var o=n.Pointer.fromJSON(t.path).evaluate(e);return o.parent===void 0?new a(t.path):(c(i.parent,i.key),s(o.parent,o.key,i.value),null)}function p(e,t,i){var o=n.Pointer.fromJSON(t.from).evaluate(e);if(o.value===void 0)return new a(t.from);var c=n.Pointer.fromJSON(t.path).evaluate(e);return c.parent===void 0?new a(t.path):(s(c.parent,c.key,(0,r.clone)(o.value)),null)}function m(e,t,r){var a=n.Pointer.fromJSON(t.path).evaluate(e);return(0,i.diffAny)(a.value,t.value,new n.Pointer).length?new o(a.value,t.value):null}var h=function(e){t(n,e);function n(t){var n=e.call(this,`Invalid operation: ${t.op}`)||this;return n.operation=t,n.name=`InvalidOperationError`,n}return n}(Error);e.InvalidOperationError=h;function g(e,t,n){switch(t.op){case`add`:return l(e,t,n);case`remove`:return u(e,t,n);case`replace`:return d(e,t,n);case`move`:return f(e,t,n);case`copy`:return p(e,t,n);case`test`:return m(e,t,n)}return new h(t)}})),Ne=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.applyPatch=i,e.createPatch=o;var t=R();Object.defineProperty(e,`Pointer`,{enumerable:!0,get:function(){return t.Pointer}});var n=Me(),r=B();function i(e,t,r){return t.map(function(t){return(0,n.apply)(e,t,r)})}function a(e){function t(n,i,a){var o=e(n,i,a);return Array.isArray(o)?o:(0,r.diffAny)(n,i,a,t)}return t}function o(e,n,i){var o=new t.Pointer;return(i?a(i):r.diffAny)(e,n,o)}})),V=e(b(),1),Pe=e(C(),1),H=Ne();function U(){}U.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(Fe(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function Fe(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var Ie=new U;function Le(e,t,n){return Ie.diff(e,t,n)}var Re=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ze=/\S/,W=new U;W.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ze.test(e)&&!ze.test(t)},W.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Re.test(t[n])&&Re.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function Be(e,t,n){return W.diff(e,t,n)}var Ve=new U;Ve.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1
+ import{o as e,t}from"./chunk-CYidjpOJ.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{A as r,D as i,F as a,I as o,Jt as s,L as c,M as l,N as u,O as d,P as f,Ut as p,_ as m,g as h,i as g,j as _,k as v,qt as y}from"./DocumentContext-g-cDYqVv.js";import{t as b}from"./react-f2sANaYj.js";import{n as x,r as S}from"./dist-Nvb76hAm.js";import{t as C}from"./react-dom-DPxgxlDT.js";import{t as w}from"./compiler-runtime-BfE3aGVn.js";import{t as ee}from"./react-error-boundary-6ac6QM6R.js";import{T,X as E,Y as D,_t as O,at as te,dt as ne,it as re,lt as ie,mt as k,n as ae,pt as A}from"./dist-Dc8tD1th.js";import{Yt as oe,bt as j,it as se}from"./schemas-api-BVrasm34.js";import{c as ce}from"./Mermaid-DH1HLMlB.js";import{h as M,i as le,l as ue,n as de,t as fe}from"./PropertyDisplayRow-jPEkDFYU.js";import{Ct as pe,at as me,ct as he,nt as ge,ot as _e,rt as ve,tt as ye,ut as be,wt as xe}from"./CodeMirrorPropInput-B0xn3frp.js";import{t as Se}from"./minus-DdRxss3A.js";import{n as Ce,t as we}from"./plus-CXQ-oViZ.js";import{t as Te}from"./libesm-DKFmHwvW.js";var N=w(),P=n(),F=200;function Ee(e){let t=(0,N.c)(27),{delta:n,open:r,onOpenChange:i}=e;if(n.unparseable!==null){let e;return t[0]===n.unparseable?e=t[1]:(e=(0,P.jsx)(je,{regions:n.unparseable}),t[0]=n.unparseable,t[1]=e),e}if(n.changes.length===0)return null;let a,o,s,c,l,u,d,f,p;if(t[2]!==n.changes||t[3]!==i||t[4]!==r){let e=n.changes.slice(0,50);o=n.changes.length-e.length,a=de,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,P.jsx)(x,{id:`l_UFPv`}),t[14]=s):s=t[14],c=n.changes.length,l=`property-diff-block`,u=`border-b border-border py-3`,d=r,f=i,p=e.map(De),t[2]=n.changes,t[3]=i,t[4]=r,t[5]=a,t[6]=o,t[7]=s,t[8]=c,t[9]=l,t[10]=u,t[11]=d,t[12]=f,t[13]=p}else a=t[5],o=t[6],s=t[7],c=t[8],l=t[9],u=t[10],d=t[11],f=t[12],p=t[13];let m;t[15]===o?m=t[16]:(m=o>0&&(0,P.jsx)(`p`,{className:`px-2 pt-1 text-xs text-muted-foreground italic`,children:(0,P.jsx)(x,{id:`6qFchx`,values:{omitted:o}})}),t[15]=o,t[16]=m);let h;return t[17]!==a||t[18]!==s||t[19]!==c||t[20]!==l||t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==p||t[25]!==m?(h=(0,P.jsxs)(a,{title:s,count:c,testId:l,className:u,open:d,onOpenChange:f,children:[p,m]}),t[17]=a,t[18]=s,t[19]=c,t[20]=l,t[21]=u,t[22]=d,t[23]=f,t[24]=p,t[25]=m,t[26]=h):h=t[26],h}function De(e){return(0,P.jsx)(Oe,{change:e},`${e.kind}-${e.key}`)}function Oe(e){let t=(0,N.c)(22),{change:n}=e,{_:r}=S(),i=ue[oe(n.kind===`removed`?n.before:n.after)],a;t[0]!==r||t[1]!==n.kind?(a=n.kind===`added`?{KindIcon:we,kindLabel:r({id:`hp8OtS`})}:n.kind===`removed`?{KindIcon:Se,kindLabel:r({id:`eps54V`})}:{KindIcon:Ce,kindLabel:r({id:`cNsIJf`})},t[0]=r,t[1]=n.kind,t[2]=a):a=t[2];let{KindIcon:o,kindLabel:s}=a,c;t[3]===o?c=t[4]:(c=(0,P.jsx)(o,{"aria-hidden":`true`,className:`size-3.5`}),t[3]=o,t[4]=c);let l;t[5]===s?l=t[6]:(l=(0,P.jsx)(`span`,{className:`sr-only`,children:s}),t[5]=s,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,P.jsxs)(`span`,{className:`flex size-7 shrink-0 items-center justify-center text-muted-foreground`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]===i?d=t[11]:(d=(0,P.jsx)(i,{"aria-hidden":`true`,className:`size-3.5`}),t[10]=i,t[11]=d);let f;t[12]===n?f=t[13]:(f=(0,P.jsx)(ke,{change:n}),t[12]=n,t[13]=f);let p;t[14]!==n.key||t[15]!==d||t[16]!==f?(p=(0,P.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,P.jsx)(fe,{icon:d,label:n.key,dataKey:n.key,children:f})}),t[14]=n.key,t[15]=d,t[16]=f,t[17]=p):p=t[17];let m;return t[18]!==n.key||t[19]!==u||t[20]!==p?(m=(0,P.jsxs)(`div`,{"data-property-change":``,"data-key":n.key,"data-testid":`property-diff-row`,className:`flex items-start gap-1`,children:[u,p]}),t[18]=n.key,t[19]=u,t[20]=p,t[21]=m):m=t[21],m}function ke(e){let t=(0,N.c)(17),{change:n}=e;if(n.kind===`added`){let e;return t[0]!==n.after||t[1]!==n.key?(e=(0,P.jsx)(I,{value:n.after,keyName:n.key}),t[0]=n.after,t[1]=n.key,t[2]=e):e=t[2],e}if(n.kind===`removed`){let e;return t[3]!==n.before||t[4]!==n.key?(e=(0,P.jsx)(I,{value:n.before,keyName:n.key,removed:!0}),t[3]=n.before,t[4]=n.key,t[5]=e):e=t[5],e}let r=M(n.before)||M(n.after)?`flex flex-col gap-1`:`flex flex-wrap items-center gap-1.5`,i;t[6]!==n.before||t[7]!==n.key?(i=(0,P.jsx)(I,{value:n.before,keyName:n.key,removed:!0}),t[6]=n.before,t[7]=n.key,t[8]=i):i=t[8];let a;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted-foreground`,children:`→`}),t[9]=a):a=t[9];let o;t[10]!==n.after||t[11]!==n.key?(o=(0,P.jsx)(I,{value:n.after,keyName:n.key}),t[10]=n.after,t[11]=n.key,t[12]=o):o=t[12];let s;return t[13]!==r||t[14]!==i||t[15]!==o?(s=(0,P.jsxs)(`div`,{className:r,"data-testid":`property-diff-change-pair`,children:[i,a,o]}),t[13]=r,t[14]=i,t[15]=o,t[16]=s):s=t[16],s}function I(e){let t=(0,N.c)(17),{value:n,keyName:r,removed:i}=e,a=i===void 0?!1:i;if(M(n)){let e=a?`opacity-70`:void 0,i;t[0]!==r||t[1]!==n?(i=(0,P.jsx)(le,{keyName:r,value:n}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let o;return t[3]!==e||t[4]!==i?(o=(0,P.jsx)(`div`,{className:e,children:i}),t[3]=e,t[4]=i,t[5]=o):o=t[5],o}let o,s,c,l;if(t[6]!==a||t[7]!==n){let e=Array.isArray(n)?n.filter(Ae).join(`, `):String(n),r=e.length>F;o=a?`px-1 text-sm break-words text-muted-foreground line-through`:`px-1 text-sm break-words`,s=r?e:void 0,c=`property-diff-value`,l=r?`${e.slice(0,F)}…`:e,t[6]=a,t[7]=n,t[8]=o,t[9]=s,t[10]=c,t[11]=l}else o=t[8],s=t[9],c=t[10],l=t[11];let u;return t[12]!==o||t[13]!==s||t[14]!==c||t[15]!==l?(u=(0,P.jsx)(`span`,{className:o,title:s,"data-testid":c,children:l}),t[12]=o,t[13]=s,t[14]=c,t[15]=l,t[16]=u):u=t[16],u}function Ae(e){return typeof e==`string`}function je(e){let t=(0,N.c)(10),{regions:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground italic`,children:(0,P.jsx)(x,{id:`wFyXOW`})}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,P.jsx)(x,{id:`EmSrGB`}),t[1]=i):i=t[1];let a;t[2]===n.before?a=t[3]:(a=(0,P.jsx)(L,{label:i,text:n.before}),t[2]=n.before,t[3]=a);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,P.jsx)(x,{id:`NawEr2`}),t[4]=o):o=t[4];let s;t[5]===n.after?s=t[6]:(s=(0,P.jsx)(L,{label:o,text:n.after}),t[5]=n.after,t[6]=s);let c;return t[7]!==a||t[8]!==s?(c=(0,P.jsxs)(`div`,{className:`border-b border-border px-4 py-3`,"data-testid":`property-diff-unparseable`,"data-property-change":``,children:[r,(0,P.jsxs)(`div`,{className:`mt-2 grid gap-2 sm:grid-cols-2`,children:[a,s]})]}),t[7]=a,t[8]=s,t[9]=c):c=t[9],c}function L(e){let t=(0,N.c)(7),{label:n,text:r}=e,i;t[0]===n?i=t[1]:(i=(0,P.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:n}),t[0]=n,t[1]=i);let a=r===``?`—`:r,o;t[2]===a?o=t[3]:(o=(0,P.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted px-2 py-1.5 font-mono text-xs whitespace-pre-wrap`,children:a}),t[2]=a,t[3]=o);let s;return t[4]!==i||t[5]!==o?(s=(0,P.jsxs)(`div`,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=s):s=t[6],s}var R=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.unescapeToken=t,e.escapeToken=n;function t(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function n(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.Pointer=function(){function e(e){e===void 0&&(e=[``]),this.tokens=e}return e.fromJSON=function(n){var r=n.split(`/`).map(t);if(r[0]!==``)throw Error(`Invalid JSON Pointer: ${n}`);return new e(r)},e.prototype.toString=function(){return this.tokens.map(n).join(`/`)},e.prototype.evaluate=function(e){for(var t=null,n=``,r=e,i=1,a=this.tokens.length;i<a;i++)t=r,n=this.tokens[i],!(n==`__proto__`||n==`constructor`||n==`prototype`)&&(r=(t||{})[n]);return{parent:t,key:n,value:r}},e.prototype.get=function(e){return this.evaluate(e).value},e.prototype.set=function(e,t){var n=this.evaluate(e);n.parent&&(n.parent[n.key]=t)},e.prototype.push=function(e){this.tokens.push(e)},e.prototype.add=function(t){return new e(this.tokens.concat(String(t)))},e.prototype.parent=function(){return new e(this.tokens.length>1?this.tokens.slice(0,-1):[``])},e}()})),z=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasOwnProperty=void 0,e.objectType=t,e.clone=r,e.hasOwnProperty=Object.prototype.hasOwnProperty;function t(e){return e===void 0?`undefined`:e===null?`null`:Array.isArray(e)?`array`:typeof e}function n(e){return typeof e==`object`&&!!e}function r(t){if(!n(t))return t;if(t.constructor==Array){for(var i=t.length,a=Array(i),o=0;o<i;o++)a[o]=r(t[o]);return a}if(t.constructor==Date)return new Date(+t);var s={};for(var c in t)e.hasOwnProperty.call(t,c)&&(s[c]=r(t[c]));return s}})),B=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDestructive=n,e.subtract=r,e.intersection=i,e.diffArrays=l,e.diffObjects=u,e.diffAny=d;var t=z();function n(e){var t=e.op;return t===`remove`||t===`replace`||t===`copy`||t===`move`}function r(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&!(t.hasOwnProperty.call(n,i)&&n[i]!==void 0)&&r.push(i);return r}function i(e){for(var n=e.length,r={},i=0;i<n;i++){var a=e[i];for(var o in a)t.hasOwnProperty.call(a,o)&&a[o]!==void 0&&(r[o]=(r[o]||0)+1)}for(var o in r)r[o]<n&&delete r[o];return Object.keys(r)}function a(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&t.hasOwnProperty.call(n,i)&&n[i]!==void 0&&r.push(i);return r}function o(e){return e.op===`add`}function s(e){return e.op===`remove`}function c(e,t){return{operations:e.operations.concat(t),cost:e.cost+1}}function l(e,t,n,r){r===void 0&&(r=d);var i=Math.max(e.length,t.length),a=new Map([[0,{operations:[],cost:0}]]);function l(o,s){var u=o*i+s,d=a.get(u);if(d===void 0){if(o>0&&s>0&&!r(e[o-1],t[s-1],n.add(String(o-1))).length)d=l(o-1,s-1);else{var f=[];if(o>0){var p=l(o-1,s),m={op:`remove`,index:o-1};f.push(c(p,m))}if(s>0){var h=l(o,s-1),g={op:`add`,index:o-1,value:t[s-1]};f.push(c(h,g))}if(o>0&&s>0){var _=l(o-1,s-1),v={op:`replace`,index:o-1,original:e[o-1],value:t[s-1]};f.push(c(_,v))}d=f.sort(function(e,t){return e.cost-t.cost})[0]}a.set(u,d)}return d}var u=isNaN(e.length)||e.length<=0?0:e.length;return l(u,isNaN(t.length)||t.length<=0?0:t.length).operations.reduce(function(e,t){var i=e[0],a=e[1];if(o(t)){var c=t.index+1+a,l=c<u+a?String(c):`-`,d={op:t.op,path:n.add(l).toString(),value:t.value};return[i.concat(d),a+1]}else if(s(t)){var d={op:t.op,path:n.add(String(t.index+a)).toString()};return[i.concat(d),a-1]}else{var f=n.add(String(t.index+a)),p=r(t.original,t.value,f);return[i.concat.apply(i,p),a]}},[[],0])[0]}function u(e,t,n,i){i===void 0&&(i=d);var o=[];return r(e,t).forEach(function(e){o.push({op:`remove`,path:n.add(e).toString()})}),r(t,e).forEach(function(e){o.push({op:`add`,path:n.add(e).toString(),value:t[e]})}),a(e,t).forEach(function(r){o.push.apply(o,i(e[r],t[r],n.add(r)))}),o}function d(e,n,r,i){if(i===void 0&&(i=d),e===n)return[];var a=(0,t.objectType)(e),o=(0,t.objectType)(n);return a==`array`&&o==`array`?l(e,n,r,i):a==`object`&&o==`object`?u(e,n,r,i):[{op:`replace`,path:r.toString(),value:n}]}})),Me=t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidOperationError=e.TestError=e.MissingError=void 0,e.add=l,e.remove=u,e.replace=d,e.move=f,e.copy=p,e.test=m,e.apply=g;var n=R(),r=z(),i=B(),a=function(e){t(n,e);function n(t){var n=e.call(this,`Value required at path: ${t}`)||this;return n.path=t,n.name=`MissingError`,n}return n}(Error);e.MissingError=a;var o=function(e){t(n,e);function n(t,n){var r=e.call(this,`Test failed: ${t} != ${n}`)||this;return r.actual=t,r.expected=n,r.name=`TestError`,r}return n}(Error);e.TestError=o;function s(e,t,n){if(Array.isArray(e))if(t==`-`)e.push(n);else{var r=parseInt(t,10);e.splice(r,0,n)}else e[t]=n}function c(e,t){if(Array.isArray(e)){var n=parseInt(t,10);e.splice(n,1)}else delete e[t]}function l(e,t,i){var o=n.Pointer.fromJSON(t.path);if(i?.implicitArrayCreation&&o.tokens[o.tokens.length-1]===`-`){var c=o.parent().evaluate(e);c.value===void 0&&(0,r.objectType)(c.parent)===`object`&&(c.parent[c.key]=[])}var l=o.evaluate(e);return l.parent===void 0||i?.implicitArrayCreation&&l.key===`-`&&!Array.isArray(l.parent)?new a(t.path):(s(l.parent,l.key,(0,r.clone)(t.value)),null)}function u(e,t,r){var i=n.Pointer.fromJSON(t.path).evaluate(e);return i.value===void 0?new a(t.path):(c(i.parent,i.key),null)}function d(e,t,i){var o=n.Pointer.fromJSON(t.path).evaluate(e);if(o.parent===null)return new a(t.path);if(Array.isArray(o.parent)){if(parseInt(o.key,10)>=o.parent.length)return new a(t.path)}else if(o.value===void 0)return new a(t.path);return o.parent[o.key]=(0,r.clone)(t.value),null}function f(e,t,r){var i=n.Pointer.fromJSON(t.from).evaluate(e);if(i.value===void 0)return new a(t.from);var o=n.Pointer.fromJSON(t.path).evaluate(e);return o.parent===void 0?new a(t.path):(c(i.parent,i.key),s(o.parent,o.key,i.value),null)}function p(e,t,i){var o=n.Pointer.fromJSON(t.from).evaluate(e);if(o.value===void 0)return new a(t.from);var c=n.Pointer.fromJSON(t.path).evaluate(e);return c.parent===void 0?new a(t.path):(s(c.parent,c.key,(0,r.clone)(o.value)),null)}function m(e,t,r){var a=n.Pointer.fromJSON(t.path).evaluate(e);return(0,i.diffAny)(a.value,t.value,new n.Pointer).length?new o(a.value,t.value):null}var h=function(e){t(n,e);function n(t){var n=e.call(this,`Invalid operation: ${t.op}`)||this;return n.operation=t,n.name=`InvalidOperationError`,n}return n}(Error);e.InvalidOperationError=h;function g(e,t,n){switch(t.op){case`add`:return l(e,t,n);case`remove`:return u(e,t,n);case`replace`:return d(e,t,n);case`move`:return f(e,t,n);case`copy`:return p(e,t,n);case`test`:return m(e,t,n)}return new h(t)}})),Ne=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.applyPatch=i,e.createPatch=o;var t=R();Object.defineProperty(e,`Pointer`,{enumerable:!0,get:function(){return t.Pointer}});var n=Me(),r=B();function i(e,t,r){return t.map(function(t){return(0,n.apply)(e,t,r)})}function a(e){function t(n,i,a){var o=e(n,i,a);return Array.isArray(o)?o:(0,r.diffAny)(n,i,a,t)}return t}function o(e,n,i){var o=new t.Pointer;return(i?a(i):r.diffAny)(e,n,o)}})),V=e(b(),1),Pe=e(C(),1),H=Ne();function U(){}U.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(Fe(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function Fe(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var Ie=new U;function Le(e,t,n){return Ie.diff(e,t,n)}var Re=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ze=/\S/,W=new U;W.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ze.test(e)&&!ze.test(t)},W.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Re.test(t[n])&&Re.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function Be(e,t,n){return W.diff(e,t,n)}var Ve=new U;Ve.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
2
2
  `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var He=new U;He.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Ue=new U;Ue.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function G(e){"@babel/helpers - typeof";return G=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G(e)}var We=Object.prototype.toString,K=new U;K.useLongestToken=!0,K.tokenize=Ve.tokenize,K.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(q(e,null,null,i),i,` `)},K.equals=function(e,t){return U.prototype.equals.call(K,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function q(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(We.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=q(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),G(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=q(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var J=new U;J.tokenize=function(e){return e.slice()},J.join=J.removeEmpty=function(e){return e};function Ge(e,t){let n=t.content.findDiffStart(e.content);if(n===null)return!1;let{a:r,b:i}=t.content.findDiffEnd(e.content),a=n-Math.min(r,i);return a>0&&(e.resolve(n-a).depth<t.resolve(r+a).depth?n-=a:(r+=a,i+=a)),new A(n,i,t.slice(n,r))}function Ke(e){if(!e.steps.length)return;let t=new k(e.docs[0]),n=e.steps.slice();for(;n.length;){let e=n.shift();for(;n.length&&e.merge(n[0]);){let r=n.shift();e=e instanceof A&&r instanceof A?Ge(t.doc,r.apply(e.apply(t.doc).doc).doc):e.merge(r)}t.step(e)}return t}function Y(e){let t=new k(e);return t.removeMark(0,e.nodeSize-2),t.doc}function qe(e,t){let n=t.split(`/`);for(n.shift();n.length;){if(typeof e!=`object`)throw Error();let t=n.shift();e=e[t]}return e}function X(e){return JSON.parse(JSON.stringify(e))}var Je=class{fromDoc;toDoc;complexSteps;wordDiffs;simplifyDiff;schema;tr;currentJSON;finalJSON;ops;constructor(e,t,n={}){let r={complexSteps:!0,wordDiffs:!1,simplifyDiff:!0,...n};this.fromDoc=e,this.toDoc=t,this.complexSteps=r.complexSteps,this.wordDiffs=r.wordDiffs,this.simplifyDiff=r.simplifyDiff,this.schema=e.type.schema,this.tr=new k(e),this.currentJSON={},this.finalJSON={},this.ops=[]}init(){return this.complexSteps?(this.currentJSON=Y(this.fromDoc).toJSON(),this.finalJSON=Y(this.toDoc).toJSON(),this.ops=(0,H.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps(),this.recreateChangeMarkSteps()):(this.currentJSON=this.fromDoc.toJSON(),this.finalJSON=this.toDoc.toJSON(),this.ops=(0,H.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps()),this.simplifyDiff&&(this.tr=Ke(this.tr)||this.tr),this.tr}recreateChangeContentSteps(){let e=[];for(;this.ops.length;){let t=this.ops.shift();e.push(t);let n,r=X(this.currentJSON),i=t.path.split(`/`);for(;n==null;){(0,H.applyPatch)(r,[t]);try{n=this.schema.nodeFromJSON(r),n.check()}catch{if(n=null,this.ops.length>0)t=this.ops.shift(),e.push(t);else throw Error(`No valid diff possible applying ${t.path}`)}}this.complexSteps&&e.length===1&&(i.includes(`attrs`)||i.includes(`type`))?(this.addSetNodeMarkup(),e=[]):e.length===1&&t.op===`replace`&&i[i.length-1]===`text`?(this.addReplaceTextSteps(t,r),e=[]):this.addReplaceStep(n,r)&&(e=[])}}addSetNodeMarkup(){let e=this.schema.nodeFromJSON(this.currentJSON),t=this.schema.nodeFromJSON(this.finalJSON),n=t.content.findDiffStart(e.content),r=e.nodeAt(n),i=t.nodeAt(n);if(n!=null){let e=r.type===i.type?null:i.type;try{this.tr.setNodeMarkup(n,e,i.attrs,i.marks)}catch(t){if(e&&t.message.includes(`Invalid content`))this.tr.replaceWith(n,n+r.nodeSize,i);else throw t}return this.currentJSON=Y(this.tr.doc).toJSON(),this.ops=(0,H.createPatch)(this.currentJSON,this.finalJSON),!0}return!1}recreateChangeMarkSteps(){this.toDoc.descendants((e,t)=>{if(!e.isInline)return!0;this.tr.doc.nodesBetween(t,t+e.nodeSize,(n,r)=>{if(!n.isInline)return!0;let i=Math.max(t,r),a=Math.min(t+e.nodeSize,r+n.nodeSize);n.marks.forEach(t=>{t.isInSet(e.marks)||this.tr.removeMark(i,a,t)}),e.marks.forEach(e=>{e.isInSet(n.marks)||this.tr.addMark(i,a,e)})})})}addReplaceStep(e,t){let n=Ge(this.schema.nodeFromJSON(this.currentJSON),e);if(!n)return!1;if(!this.tr.maybeStep(n).failed)return this.currentJSON=t,!0;throw Error(`No valid step found.`)}addReplaceTextSteps(e,t){let n={...e,value:`xx`},r={...e,value:`yy`},i=X(this.currentJSON),a=X(this.currentJSON);(0,H.applyPatch)(i,[n]),(0,H.applyPatch)(a,[r]);let o=this.schema.nodeFromJSON(i),s=this.schema.nodeFromJSON(a),c=e.value,l=qe(this.currentJSON,e.path),u=this.wordDiffs?Be(l,c):Le(l,c),d=o.content.findDiffStart(s.content),f=o.resolve(d+1).marks();for(;u.length;){let e=u.shift();if(e.added){let t=this.schema.nodeFromJSON({type:`text`,text:e.value}).mark(f);if(u.length&&u[0].removed){let e=u.shift();this.tr.replaceWith(d,d+e.value.length,t)}else this.tr.insert(d,t);d+=e.value.length}else if(e.removed)if(u.length&&u[0].added){let t=u.shift(),n=this.schema.nodeFromJSON({type:`text`,text:t.value}).mark(f);this.tr.replaceWith(d,d+e.value.length,n),d+=t.value.length}else this.tr.delete(d,d+e.value.length);else d+=e.value.length}this.currentJSON=t}};function Ye(e,t,n={}){return new Je(e,t,n).init()}var Xe=new Set([`list`,`bulletList`,`orderedList`,`taskList`]);function Ze(e){let t=[];return e.forEach((e,n)=>{if(Xe.has(e.type.name)){let r=n+1,i=0;e.forEach(e=>{let n=r+i;t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`}),i+=e.nodeSize})}else t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`})}),t}function Qe(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--)i[a][n]=e[a].key===t[n].key?i[a+1][n+1]+1:Math.max(i[a+1][n],i[a][n+1]);let a=[],o=0,s=0;for(;o<n&&s<r;)e[o].key===t[s].key?(a.push({type:`same`,b:t[s]}),o++,s++):i[o+1][s]>=i[o][s+1]?(a.push({type:`del`,a:e[o]}),o++):(a.push({type:`ins`,b:t[s]}),s++);for(;o<n;)a.push({type:`del`,a:e[o++]});for(;s<r;)a.push({type:`ins`,b:t[s++]});return a}function $e(e,t){let n=Qe(Ze(e),Ze(t)),r=[],i=0;for(let e of n)e.type===`same`?i=e.b.to:e.type===`ins`?(r.push({fromA:0,toA:0,fromB:e.b.from,toB:e.b.to}),i=e.b.to):r.push({fromA:e.a.from,toA:e.a.to,fromB:i,toB:i});return r}var et=400;function tt(e,t,n){return t.nodeFromJSON(e.parseWithFallback(n))}function nt(e,t){let n=t.filter(e=>e.toB>e.fromB),r=[];return e.steps.forEach((t,i)=>{let a=t instanceof ie?`add`:t instanceof ne?`remove`:null;if(a===null)return;let o=t,s=e.mapping.slice(i+1),c=s.map(o.from,-1),l=s.map(o.to,1);if(l<=c||n.some(e=>e.fromB<=c&&l<=e.toB))return;let u=e.mapping.slice(0,i).invert(),d=u.map(o.from),f=u.map(o.to);f<=d||r.push({fromA:d,toA:f,fromB:c,toB:l,markName:o.mark.type.name,kind:a})}),r}function rt(e,t,n,r){if(e.length>2e5||t.length>2e5)return{ok:!1,reason:`ceiling`};let i,a;try{i=tt(r,n,e),a=tt(r,n,t)}catch{return{ok:!1,reason:`parse`}}let o=a,s=null;try{s=Ye(i,a,{complexSteps:!0,wordDiffs:!0,simplifyDiff:!0}),o=s.doc}catch{}let c=$e(i,o),l=s?nt(s,c):[];return c.length+l.length>et?{ok:!1,reason:`ceiling`}:{ok:!0,afterDoc:o,beforeDoc:i,changes:c,markChanges:l}}var it=`.ok-diff-ins, .ok-diff-ins-block, [data-diff-deleted]`;function at(e){return e.changes.length+2*e.markChanges.length}function ot(e){let t=!1;return e.forEach(e=>{e.isBlock&&(t=!0)}),t}function st(e){if(e.childCount===0)return!1;let t=!0;return e.forEach(e=>{e.type.name!==`listItem`&&e.type.name!==`taskItem`&&(t=!1)}),t}function ct(e,t,n){let r=document.createElement(n?`div`:`span`);r.className=n?`ok-diff-del ok-diff-del-block`:`ok-diff-del`,r.setAttribute(`data-diff-deleted`,``);let i=e.serializeFragment(t);if(n&&st(t)){let e=document.createElement(`ul`);e.appendChild(i),r.appendChild(e)}else r.appendChild(i);return r}var Z=new WeakMap;function lt(e,t,n){let r=O.fromSchema(e);return new O({...r.nodes,jsxComponent:e=>{let r=t(e);return n.push(r.destroy),{dom:r.dom,contentDOM:r.contentDOM}}},r.marks)}function ut(e,t,n,r){let i=ot(t);return D.widget(e,()=>{let e=[],a=ct(lt(n,r,e),t,i);return Z.set(a,e),a},{side:-1,ignoreSelection:!0,marks:[],destroy:e=>{for(let t of Z.get(e)??[])t();Z.delete(e)}})}function dt(e,t,n,r,i,a){let o=[];for(let e of r){let n=t.slice(e.fromA,e.toA);o.push(ut(e.fromB,n.content,i,a)),o.push(D.inline(e.fromB,e.toB,{class:`ok-diff-ins`},{inclusiveEnd:!0}))}for(let e of n)if(e.toB>e.fromB&&o.push(D.node(e.fromB,e.toB,{class:`ok-diff-ins-block`})),e.toA>e.fromA){let n=t.slice(e.fromA,e.toA);o.push(ut(e.fromB,n.content,i,a))}return E.create(e,o)}function ft(e){return e.attrs.props??{}}function pt(e,t){return e.name===`Mirror`?!0:e.name===`Excalidraw`&&y(t.src)}function mt(e){let t=typeof e.src==`string`?e.src:``,n=typeof e.anchor==`string`?e.anchor:``;return n?`${t}#${n}`:t}function ht(e,t){let n=new Set(e.props.map(e=>e.name));return{...t,...n.has(`defaultOpen`)?{defaultOpen:!0}:{},...n.has(`autoplay`)?{autoplay:!1}:{},...n.has(`loop`)?{loop:!1}:{},...n.has(`controls`)?{controls:!0}:{}}}function gt(e){return{className:d,..._(p(e.attrs.componentName),ft(e))}}function _t(e){let t=a(e).split(`
3
3
  `),n=t.findIndex(e=>e.trimEnd().endsWith(`>`));return t.slice(0,n+1).join(`
4
4
  `)}function vt(e){let t=(0,N.c)(8),{node:n,heading:r,children:i}=e,o;t[0]===r?o=t[1]:(o=(0,P.jsx)(`div`,{className:`flex gap-2 text-xs font-mono text-foreground px-2 py-1`,children:r}),t[0]=r,t[1]=o);let s;t[2]!==i||t[3]!==n?(s=n.childCount>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`code`,{className:`block whitespace-pre-wrap px-2 text-xs text-foreground`,children:_t(n)}),i]}):(0,P.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted px-3 py-2 text-sm`,children:(0,P.jsx)(`code`,{children:a(n)})}),t[2]=i,t[3]=n,t[4]=s):s=t[4];let c;return t[5]!==o||t[6]!==s?(c=(0,P.jsxs)(`div`,{"data-diff-jsx-source":``,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function yt(e){let t=(0,N.c)(42),{node:n,docName:r,children:i}=e,{_:a}=S(),d=String(n.attrs.componentName??``),f,m,h,g,_,y,b,x,C,w;if(t[0]!==a||t[1]!==i||t[2]!==r||t[3]!==n||t[4]!==d){w=Symbol.for(`react.early_return_sentinel`);bb0:{let e=p(d),S=e.displayName??e.name;if(e.name===`*`){let e;t[15]!==a||t[16]!==d?(e=a({id:`sJWhgo`,values:{unregisteredComponentName:d}}),t[15]=a,t[16]=d,t[17]=e):e=t[17];let r;t[18]!==i||t[19]!==n||t[20]!==e?(r=(0,P.jsx)(vt,{node:n,heading:e,children:i}),t[18]=i,t[19]=n,t[20]=e,t[21]=r):r=t[21],w=r;break bb0}let T=u(e,v(n.attrs,e.reactNodePropNames),r);if(c(e,ft(n))||pt(e,T)){let{Icon:r}=o(e),a=mt(T),s=(0,P.jsxs)(`div`,{"data-diff-jsx-reference":``,className:`flex items-center gap-2 rounded-md border border-dashed border-border px-3 py-2 text-sm text-foreground`,children:[(0,P.jsx)(r,{size:16,"aria-hidden":`true`}),(0,P.jsx)(`span`,{children:S}),a?(0,P.jsx)(`code`,{className:`truncate`,children:a}):null]}),c=n.childCount>0?i:null,l;t[22]!==s||t[23]!==c?(l=(0,P.jsxs)(P.Fragment,{children:[s,c]}),t[22]=s,t[23]=c,t[24]=l):l=t[24],w=l;break bb0}let E=e.Component;g=ee,x=(t,n)=>{l(e.name,d,t,n)},C=()=>(0,P.jsx)(vt,{node:n,heading:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`span`,{children:S}),(0,P.jsx)(`span`,{children:a({id:`V_DjMe`})})]}),children:i}),h=s,b=!1,m=ce,y=null,f=E,_=ht(e,T)}t[0]=a,t[1]=i,t[2]=r,t[3]=n,t[4]=d,t[5]=f,t[6]=m,t[7]=h,t[8]=g,t[9]=_,t[10]=y,t[11]=b,t[12]=x,t[13]=C,t[14]=w}else f=t[5],m=t[6],h=t[7],g=t[8],_=t[9],y=t[10],b=t[11],x=t[12],C=t[13],w=t[14];if(w!==Symbol.for(`react.early_return_sentinel`))return w;let T;t[25]!==f||t[26]!==i||t[27]!==_?(T=(0,P.jsx)(f,{..._,children:i}),t[25]=f,t[26]=i,t[27]=_,t[28]=T):T=t[28];let E;t[29]!==m||t[30]!==y||t[31]!==T?(E=(0,P.jsx)(m,{value:y,children:T}),t[29]=m,t[30]=y,t[31]=T,t[32]=E):E=t[32];let D;t[33]!==h||t[34]!==b||t[35]!==E?(D=(0,P.jsx)(h,{value:b,children:E}),t[33]=h,t[34]=b,t[35]=E,t[36]=D):D=t[36];let O;return t[37]!==g||t[38]!==x||t[39]!==C||t[40]!==D?(O=(0,P.jsx)(g,{onError:x,fallbackRender:C,children:D}),t[37]=g,t[38]=x,t[39]=C,t[40]=D,t[41]=O):O=t[41],O}function bt(e){let t=(0,N.c)(27),{node:n,editor:i,extension:a}=e,o,s,c,l,u,d,m;if(t[0]!==i||t[1]!==a.options||t[2]!==n){let e=p(n.attrs.componentName);c=ve,t[10]===n?m=t[11]:(m=gt(n),t[10]=n,t[11]=m),s=yt,u=n,t[12]!==i||t[13]!==a.options?(d=f(a.options,i),t[12]=i,t[13]=a.options,t[14]=d):d=t[14],o=ge,l=r(e,n),t[0]=i,t[1]=a.options,t[2]=n,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=m}else o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],m=t[9];let h;t[15]!==o||t[16]!==l?(h=(0,P.jsx)(o,{className:l}),t[15]=o,t[16]=l,t[17]=h):h=t[17];let g;t[18]!==s||t[19]!==u||t[20]!==d||t[21]!==h?(g=(0,P.jsx)(s,{node:u,docName:d,children:h}),t[18]=s,t[19]=u,t[20]=d,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==c||t[24]!==m||t[25]!==g?(_=(0,P.jsx)(c,{...m,children:g}),t[23]=c,t[24]=m,t[25]=g,t[26]=_):_=t[26],_}var xt=i.extend({addNodeView(){return me(bt)}});function St(e){let t=(0,N.c)(16),{node:n,docName:i,contentDOM:a}=e,o;t[0]===n?o=t[1]:(o=gt(n),t[0]=n,t[1]=o);let s;t[2]===n?s=t[3]:(s=r(p(n.attrs.componentName),n),t[2]=n,t[3]=s);let c;t[4]===a?c=t[5]:(c=e=>{e&&a.parentNode!==e&&e.appendChild(a)},t[4]=a,t[5]=c);let l;t[6]!==s||t[7]!==c?(l=(0,P.jsx)(`div`,{className:s,ref:c}),t[6]=s,t[7]=c,t[8]=l):l=t[8];let u;t[9]!==i||t[10]!==n||t[11]!==l?(u=(0,P.jsx)(yt,{node:n,docName:i,children:l}),t[9]=i,t[10]=n,t[11]=l,t[12]=u):u=t[12];let d;return t[13]!==o||t[14]!==u?(d=(0,P.jsx)(`div`,{...o,children:u}),t[13]=o,t[14]=u,t[15]=d):d=t[15],d}function Ct(e,t){let n=document.createElement(`div`);n.setAttribute(`data-node-view-content-react`,``);let r=new _e(St,{editor:e,props:{node:t,docName:pe(e),contentDOM:n}});return{dom:r.element,contentDOM:n,destroy:()=>r.destroy()}}var wt=new Set([`slashCommand`,`blockDragHandle`,`blockMover`,`tableInsertControls`,`trailingAffordance`,`fileHandler`,`gfmAutolink`,`inlineLinkInputRule`,`keyboardNav`,`tiptapFindReplace`,`selectionState`,`sourceDirtyObserver`,`tabFocusTrap`]),Tt=m.filter(e=>!wt.has(e.name)).map(e=>e.name===`jsxComponent`?xt:e),Et=T(Tt);function Dt(e,t){return rt(e,t,Et,be())}var Ot=ae.create({name:`renderedDiffDecorations`,addOptions(){return{diff:null}},addProseMirrorPlugins(){let{diff:e}=this.options,t=this.editor,n=e?dt(e.afterDoc,e.beforeDoc,e.changes,e.markChanges,Et,e=>Ct(t,e)):E.empty;return[new re({key:new te(`renderedDiffDecorations`),props:{decorations:()=>n}})]}});function kt(e){let t=(0,N.c)(28),{diff:n,docName:r}=e,i;if(t[0]!==n||t[1]!==r){let e=h(Tt,r),a;t[3]===n?a=t[4]:(a=Ot.configure({diff:n}),t[3]=n,t[4]=a),i=[...e,a],t[0]=n,t[1]=r,t[2]=i}else i=t[2];let a;t[5]===n.afterDoc?a=t[6]:(a=n.afterDoc.toJSON(),t[5]=n.afterDoc,t[6]=a);let o;t[7]===r?o=t[8]:(o=e=>{let{editor:t}=e;return xe(t,r)},t[7]=r,t[8]=o);let s;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(s={attributes:{class:`pt-4`}},t[9]=s):s=t[9];let c;t[10]!==i||t[11]!==a||t[12]!==o?(c={editable:!1,extensions:i,content:a,onBeforeCreate:o,editorProps:s},t[10]=i,t[11]=a,t[12]=o,t[13]=c):c=t[13];let l;t[14]!==n||t[15]!==r?(l=[n,r],t[14]=n,t[15]=r,t[16]=l):l=t[16];let u=he(c,l),[d]=(0,V.useState)(At),f=(0,V.useRef)(null),p,m;t[17]===d?(p=t[18],m=t[19]):(p=()=>{let e=f.current;if(e)return e.appendChild(d),()=>{d.parentNode===e&&e.removeChild(d)}},m=[d],t[17]=d,t[18]=p,t[19]=m),(0,V.useLayoutEffect)(p,m);let g;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,P.jsx)(`div`,{className:`tiptap-editor`,children:(0,P.jsx)(`div`,{ref:f,style:{display:`contents`}})}),t[20]=g):g=t[20];let _;t[21]===u?_=t[22]:(_=(0,P.jsx)(ye,{editor:u,className:`tiptap-editor-portal-content`}),t[21]=u,t[22]=_);let v;t[23]!==d||t[24]!==_?(v=(0,Pe.createPortal)(_,d),t[23]=d,t[24]=_,t[25]=v):v=t[25];let y;return t[26]===v?y=t[27]:(y=(0,P.jsxs)(`div`,{className:`ok-rendered-diff editor-doc-scroll min-h-0 flex-1`,"data-testid":`rendered-diff-view`,children:[g,v]}),t[26]=v,t[27]=y),y}function At(){let e=document.createElement(`div`);return e.style.display=`contents`,e}var jt=`[data-property-change]`,Mt=`[data-content] > [data-line-type="change-addition"], [data-content] > [data-line-type="change-deletion"]`;function Nt(e){let t=[];for(let n of e.querySelectorAll(`diffs-container`)){let e=n.shadowRoot;e&&t.push(...e.querySelectorAll(Mt))}return t}function Pt(e,t){let n=new Map;return{sync(){for(let r of e.querySelectorAll(`diffs-container`)){let e=r.shadowRoot;if(e===null||n.has(e))continue;let i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0}),n.set(e,i)}},disconnect(){for(let e of n.values())e.disconnect();n.clear()}}}function Ft(e){let t=Nt(e),n=[],r=null;for(let e of t)(r===null||e.previousElementSibling!==r)&&n.push(e),r=e;return n}function Q(e){let t=0,n=0;for(let r of e.split(`
@@ -86,7 +86,7 @@
86
86
  -->
87
87
  <script>(() => { try { const raw = localStorage.getItem('ok-language-v1'); if (!raw) return; const o = JSON.parse(raw); if (typeof o?.locale !== 'string' || !/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{2,8})*$/.test(o.locale)) return; document.documentElement.lang = o.locale; document.documentElement.dir = o.dir === 'rtl' ? 'rtl' : 'ltr'; } catch {} })();</script>
88
88
  <style>html { background-color: #fafafa } html.dark { background-color: #0b0b0b }</style>
89
- <script type="module" crossorigin src="./assets/index-CLd2bTKo.js"></script>
89
+ <script type="module" crossorigin src="./assets/index-2nOQKF9c.js"></script>
90
90
  <link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
91
91
  <link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
92
92
  <link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
@@ -127,14 +127,14 @@
127
127
  <link rel="modulepreload" crossorigin href="./assets/dist-BGzUo_18.js">
128
128
  <link rel="modulepreload" crossorigin href="./assets/messages-Q2aFEeTO.js">
129
129
  <link rel="modulepreload" crossorigin href="./assets/use-apply-config-language-B_oVrEAw.js">
130
- <link rel="modulepreload" crossorigin href="./assets/client-version-DwpRT-B_.js">
130
+ <link rel="modulepreload" crossorigin href="./assets/client-version-B03sIju7.js">
131
131
  <link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
132
132
  <link rel="modulepreload" crossorigin href="./assets/use-apply-config-theme-CYFG76sS.js">
133
133
  <link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-8k1Gcfxa.js">
134
134
  <link rel="modulepreload" crossorigin href="./assets/css-color-to-hex-CP6Q3H0q.js">
135
135
  <link rel="modulepreload" crossorigin href="./assets/constants-upload-CVKO8P4d.js">
136
136
  <link rel="modulepreload" crossorigin href="./assets/saved-themes-client-Cq80E6xi.js">
137
- <link rel="modulepreload" crossorigin href="./assets/config-provider-1vG-B8AF.js">
137
+ <link rel="modulepreload" crossorigin href="./assets/config-provider-rhvkI-p4.js">
138
138
  <link rel="modulepreload" crossorigin href="./assets/dist-Dc8tD1th.js">
139
139
  <link rel="modulepreload" crossorigin href="./assets/ccount-s_UaBrax.js">
140
140
  <link rel="modulepreload" crossorigin href="./assets/lib-CZXZ01YL.js">
@@ -157,7 +157,7 @@
157
157
  <link rel="modulepreload" crossorigin href="./assets/documents-fetch-ZX1mUge_.js">
158
158
  <link rel="modulepreload" crossorigin href="./assets/note-window-mode-CI3Yju9B.js">
159
159
  <link rel="modulepreload" crossorigin href="./assets/structural-freshness-C6rR7cV3-VXiZX15w.js">
160
- <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-viDrvKTW.js">
160
+ <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-B0xn3frp.js">
161
161
  <link rel="modulepreload" crossorigin href="./assets/dist-CSCUSbQc.js">
162
162
  <link rel="modulepreload" crossorigin href="./assets/dist-DTFuvKje.js">
163
163
  <link rel="modulepreload" crossorigin href="./assets/dist-CRjqnzU7.js">
@@ -167,11 +167,11 @@
167
167
  <link rel="modulepreload" crossorigin href="./assets/es2015-Dtr4fzLT.js">
168
168
  <link rel="modulepreload" crossorigin href="./assets/bundle-mjs-SHeFpKGC.js">
169
169
  <link rel="modulepreload" crossorigin href="./assets/utils-CPqDy6Hr.js">
170
- <link rel="modulepreload" crossorigin href="./assets/tooltip-Bz6z4_se.js">
170
+ <link rel="modulepreload" crossorigin href="./assets/tooltip-BjuCvy5N.js">
171
171
  <link rel="modulepreload" crossorigin href="./assets/dist-DBXmXNZF.js">
172
172
  <link rel="modulepreload" crossorigin href="./assets/check-B2OLRY33.js">
173
173
  <link rel="modulepreload" crossorigin href="./assets/chevron-down-CEv6N8LG.js">
174
- <link rel="modulepreload" crossorigin href="./assets/select-pACXgFe2.js">
174
+ <link rel="modulepreload" crossorigin href="./assets/select-Bx_fIuqY.js">
175
175
  <link rel="modulepreload" crossorigin href="./assets/electron-drag-strip-D9GZhMg_.js">
176
176
  <link rel="modulepreload" crossorigin href="./assets/dist-BsJYDohW.js">
177
177
  <link rel="modulepreload" crossorigin href="./assets/button-DzgjsZzC.js">
@@ -212,7 +212,7 @@
212
212
  <link rel="modulepreload" crossorigin href="./assets/search-BoiwnBpA.js">
213
213
  <link rel="modulepreload" crossorigin href="./assets/sparkles-lfxw6YO9.js">
214
214
  <link rel="modulepreload" crossorigin href="./assets/react-error-boundary-6ac6QM6R.js">
215
- <link rel="modulepreload" crossorigin href="./assets/CopyButton-DM7FN3ou.js">
215
+ <link rel="modulepreload" crossorigin href="./assets/CopyButton-BT2YHECh.js">
216
216
  <link rel="modulepreload" crossorigin href="./assets/config-errors-CHiUH8-1.js">
217
217
  <link rel="modulepreload" crossorigin href="./assets/schemas-cc1-B-Y7IUGl.js">
218
218
  <link rel="modulepreload" crossorigin href="./assets/documents-events-BmU3ACXG.js">
@@ -240,19 +240,19 @@
240
240
  <link rel="modulepreload" crossorigin href="./assets/storage-scope-BLQBiE_R.js">
241
241
  <link rel="modulepreload" crossorigin href="./assets/use-workspace-C7oiH0Lx.js">
242
242
  <link rel="modulepreload" crossorigin href="./assets/utils-random-uuid-CE1X6bNM.js">
243
- <link rel="modulepreload" crossorigin href="./assets/DocumentContext-BKb3GeF8.js">
243
+ <link rel="modulepreload" crossorigin href="./assets/DocumentContext-g-cDYqVv.js">
244
244
  <link rel="modulepreload" crossorigin href="./assets/dist-BKgU0kag.js">
245
245
  <link rel="modulepreload" crossorigin href="./assets/dist-d2WYntJB.js">
246
246
  <link rel="modulepreload" crossorigin href="./assets/dist-C0nuYMFu.js">
247
247
  <link rel="modulepreload" crossorigin href="./assets/dropdown-menu-5XqyQTVx.js">
248
- <link rel="modulepreload" crossorigin href="./assets/comment-chips-CowZQTC6.js">
248
+ <link rel="modulepreload" crossorigin href="./assets/comment-chips-weNAtn3U.js">
249
249
  <link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-BoFbTGGE.js">
250
250
  <link rel="modulepreload" crossorigin href="./assets/tool-list-format-ahklHT7Z.js">
251
251
  <link rel="modulepreload" crossorigin href="./assets/acp-thread-protocol-EC8X7m2Z.js">
252
252
  <link rel="modulepreload" crossorigin href="./assets/image-attachment-Chp6ejuJ.js">
253
253
  <link rel="modulepreload" crossorigin href="./assets/workspace-paths-BjilyZF6.js">
254
254
  <link rel="modulepreload" crossorigin href="./assets/acp-tool-call-input-B6Z0o0iM.js">
255
- <link rel="modulepreload" crossorigin href="./assets/progress-ChO8H6Yf.js">
255
+ <link rel="modulepreload" crossorigin href="./assets/progress-BswJapXs.js">
256
256
  <link rel="modulepreload" crossorigin href="./assets/radio-group-G1GR05Rb.js">
257
257
  <link rel="modulepreload" crossorigin href="./assets/separator-D7s_9ZwH.js">
258
258
  <link rel="modulepreload" crossorigin href="./assets/toggle-group-B7p69Qfd.js">
@@ -261,15 +261,15 @@
261
261
  <link rel="modulepreload" crossorigin href="./assets/markdown-lint-ABdPsjuJ.js">
262
262
  <link rel="modulepreload" crossorigin href="./assets/format-DUHlUJ5L.js">
263
263
  <link rel="modulepreload" crossorigin href="./assets/braces--g9Mwtim.js">
264
- <link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-DRAPuvOr.js">
264
+ <link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-jPEkDFYU.js">
265
265
  <link rel="modulepreload" crossorigin href="./assets/grip-vertical-DNbkgWZL.js">
266
- <link rel="modulepreload" crossorigin href="./assets/SkillCostValue-h4MKJn9R.js">
266
+ <link rel="modulepreload" crossorigin href="./assets/SkillCostValue-B40sE1dq.js">
267
267
  <link rel="modulepreload" crossorigin href="./assets/textarea-DkcNoPBJ.js">
268
- <link rel="modulepreload" crossorigin href="./assets/selection-context-071I5_je.js">
268
+ <link rel="modulepreload" crossorigin href="./assets/selection-context-BPU0RK6_.js">
269
269
  <link rel="modulepreload" crossorigin href="./assets/lint-config-client-Bd8ngCU8.js">
270
270
  <link rel="modulepreload" crossorigin href="./assets/use-skills-DtKZux5S.js">
271
271
  <link rel="modulepreload" crossorigin href="./assets/folder-config-api-bcenjdj4.js">
272
- <link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-C219erka.js">
272
+ <link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-BFjDpWUl.js">
273
273
  <link rel="modulepreload" crossorigin href="./assets/arrow-up-right-nJaICi16.js">
274
274
  <link rel="modulepreload" crossorigin href="./assets/git-merge-VDBzSZBV.js">
275
275
  <link rel="modulepreload" crossorigin href="./assets/refresh-cw-BVQchE6b.js">
@@ -281,7 +281,7 @@
281
281
  <link rel="modulepreload" crossorigin href="./assets/use-git-sync-status-2jy5qKEq.js">
282
282
  <link rel="modulepreload" crossorigin href="./assets/keyboard-shortcuts-D5fo2XHL.js">
283
283
  <link rel="modulepreload" crossorigin href="./assets/use-settings-route-BGtkup9E.js">
284
- <link rel="modulepreload" crossorigin href="./assets/SyncStatusBadge-BdalyXqa.js">
284
+ <link rel="modulepreload" crossorigin href="./assets/SyncStatusBadge-DiEJsKO_.js">
285
285
  <link rel="modulepreload" crossorigin href="./assets/cursor-pH0WlPzE.js">
286
286
  <link rel="modulepreload" crossorigin href="./assets/agent-registry-DFOT0lVX.js">
287
287
  <link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-maJiImvv.js">
@@ -291,32 +291,32 @@
291
291
  <link rel="modulepreload" crossorigin href="./assets/copilot-CmkvU8CH.js">
292
292
  <link rel="modulepreload" crossorigin href="./assets/OpenInAgentMenuItem-D0YuEr4G.js">
293
293
  <link rel="modulepreload" crossorigin href="./assets/mascot-outline-CtS592mc.js">
294
- <link rel="modulepreload" crossorigin href="./assets/AgentIconCluster-gjhntxbl.js">
294
+ <link rel="modulepreload" crossorigin href="./assets/AgentIconCluster-6RCoigPZ.js">
295
295
  <link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-BeJ4Reff.js">
296
296
  <link rel="modulepreload" crossorigin href="./assets/dist-BzicVdNV.js">
297
297
  <link rel="modulepreload" crossorigin href="./assets/context-menu-D6QSuT0b.js">
298
- <link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-B14_Gl1G.js">
298
+ <link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-C2iqB9-_.js">
299
299
  <link rel="modulepreload" crossorigin href="./assets/DeleteConfirmationDialog-CN6XZx5m.js">
300
300
  <link rel="modulepreload" crossorigin href="./assets/monitor-IXzxTnmk.js">
301
301
  <link rel="modulepreload" crossorigin href="./assets/field-DtEiTjHS.js">
302
- <link rel="modulepreload" crossorigin href="./assets/agent-connections-BBFERALo.js">
302
+ <link rel="modulepreload" crossorigin href="./assets/agent-connections-CyCAPZDU.js">
303
303
  <link rel="modulepreload" crossorigin href="./assets/bool-pref-pcNhKZb_.js">
304
- <link rel="modulepreload" crossorigin href="./assets/TerminalLaunchContext-D0zWlhAb.js">
304
+ <link rel="modulepreload" crossorigin href="./assets/TerminalLaunchContext-CRJ3fsc7.js">
305
305
  <link rel="modulepreload" crossorigin href="./assets/agent-launcher-labels-CKD6Vuny.js">
306
306
  <link rel="modulepreload" crossorigin href="./assets/terminal-cli-display-BdUsuvVO.js">
307
307
  <link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-D8EGUen_.js">
308
- <link rel="modulepreload" crossorigin href="./assets/use-open-skill-DUNqmgA-.js">
308
+ <link rel="modulepreload" crossorigin href="./assets/use-open-skill-BLrqCx6j.js">
309
309
  <link rel="modulepreload" crossorigin href="./assets/platform-labels-DDy1ouuX.js">
310
310
  <link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-FO6gFDPG.js">
311
- <link rel="modulepreload" crossorigin href="./assets/AddPropertiesButton-C2CIoZAm.js">
311
+ <link rel="modulepreload" crossorigin href="./assets/AddPropertiesButton-Eyu3Mn2_.js">
312
312
  <link rel="modulepreload" crossorigin href="./assets/case-sensitive-DIxypOE0.js">
313
313
  <link rel="modulepreload" crossorigin href="./assets/chevron-left-C5T97PNU.js">
314
314
  <link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-CtDE2R0v.js">
315
315
  <link rel="modulepreload" crossorigin href="./assets/wrench-DmtZXcHB.js">
316
316
  <link rel="modulepreload" crossorigin href="./assets/panel-eNhYruJz.js">
317
- <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-DQL4c90f.js">
317
+ <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-B7I9PgKx.js">
318
318
  <link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-CsiJb9Ou.js">
319
- <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-C4Whh-xC.js">
319
+ <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-BN3r9LqM.js">
320
320
  <link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-Bezm5Jki.js">
321
321
  <link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-Br7k8Gq4.js">
322
322
  <link rel="modulepreload" crossorigin href="./assets/contact-email-store-B_5aVbhf.js">
@@ -325,7 +325,7 @@
325
325
  <link rel="modulepreload" crossorigin href="./assets/package-PkCmIx3S.js">
326
326
  <link rel="modulepreload" crossorigin href="./assets/panel-right-open-D4M8nGPT.js">
327
327
  <link rel="modulepreload" crossorigin href="./assets/overlay-layers-CKMAjef3.js">
328
- <link rel="modulepreload" crossorigin href="./assets/preferred-session-events-DdROgEIA.js">
328
+ <link rel="modulepreload" crossorigin href="./assets/preferred-session-events-BBTio6p0.js">
329
329
  <link rel="modulepreload" crossorigin href="./assets/panel-right-close-Bsh1pCmh.js">
330
330
  <link rel="modulepreload" crossorigin href="./assets/rotate-ccw-DeMl2ou7.js">
331
331
  <link rel="modulepreload" crossorigin href="./assets/square-pen-DU3t-IcD.js">
@@ -335,18 +335,18 @@
335
335
  <link rel="modulepreload" crossorigin href="./assets/dist-DMhg0Xyd.js">
336
336
  <link rel="modulepreload" crossorigin href="./assets/dist-ucvNbATJ.js">
337
337
  <link rel="modulepreload" crossorigin href="./assets/text-viewer-languages-CDBOzWaI.js">
338
- <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-C5Eh2kY-.js">
339
- <link rel="modulepreload" crossorigin href="./assets/ImageAttachments-D1w1uosg.js">
338
+ <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-bm40hfyi.js">
339
+ <link rel="modulepreload" crossorigin href="./assets/ImageAttachments--kYwG922.js">
340
340
  <link rel="modulepreload" crossorigin href="./assets/TemplateRow-DAMw2W8v.js">
341
- <link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-BFLyRkPu.js">
341
+ <link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-CJywmyrk.js">
342
342
  <link rel="modulepreload" crossorigin href="./assets/RowDisclosure-BpaiWVwL.js">
343
- <link rel="modulepreload" crossorigin href="./assets/project-paths-DZ-NYdQu.js">
344
- <link rel="modulepreload" crossorigin href="./assets/PublishToGitHubDialog-BDgmuZZ1.js">
345
- <link rel="modulepreload" crossorigin href="./assets/use-installed-clis-CRqLKblW.js">
346
- <link rel="modulepreload" crossorigin href="./assets/ReportBugMenuTrigger-B5oXr3N_.js">
343
+ <link rel="modulepreload" crossorigin href="./assets/project-paths-Cq56bh9f.js">
344
+ <link rel="modulepreload" crossorigin href="./assets/PublishToGitHubDialog-D3WS--oe.js">
345
+ <link rel="modulepreload" crossorigin href="./assets/use-installed-clis-CYPuE-6E.js">
346
+ <link rel="modulepreload" crossorigin href="./assets/ReportBugMenuTrigger-B_QGo0FI.js">
347
347
  <link rel="modulepreload" crossorigin href="./assets/SkillModeBanner-BLTTRSBJ.js">
348
348
  <link rel="modulepreload" crossorigin href="./assets/use-skill-targets-CHzDmIG8.js">
349
- <link rel="modulepreload" crossorigin href="./assets/SkillPluginBundleDialog-C4GtanKU.js">
349
+ <link rel="modulepreload" crossorigin href="./assets/SkillPluginBundleDialog-Duktybbj.js">
350
350
  <link rel="modulepreload" crossorigin href="./assets/app-menubar-gate-CO6NcM5E.js">
351
351
  <link rel="modulepreload" crossorigin href="./assets/use-semantic-search-status-BzadL1_f.js">
352
352
  <link rel="modulepreload" crossorigin href="./assets/agent-diff-store-BScyIbOO.js">
@@ -359,15 +359,15 @@
359
359
  <link rel="modulepreload" crossorigin href="./assets/alert-BEwM2iOp.js">
360
360
  <link rel="modulepreload" crossorigin href="./assets/input-group-CBuVp6zh.js">
361
361
  <link rel="modulepreload" crossorigin href="./assets/use-skill-origin-DSpPNIP8.js">
362
- <link rel="modulepreload" crossorigin href="./assets/use-terminal-enabled-Cu7xLs44.js">
362
+ <link rel="modulepreload" crossorigin href="./assets/use-terminal-enabled-DLhb19cN.js">
363
363
  <link rel="modulepreload" crossorigin href="./assets/catalog-BWH8_QmX.js">
364
- <link rel="modulepreload" crossorigin href="./assets/agent-presence-DrFUej3A.js">
364
+ <link rel="modulepreload" crossorigin href="./assets/agent-presence-DU3TT-KP.js">
365
365
  <link rel="modulepreload" crossorigin href="./assets/auth-prompt-store-Br5SQeuk.js">
366
366
  <link rel="modulepreload" crossorigin href="./assets/auth-state-cache-MEl9L_dR.js">
367
- <link rel="modulepreload" crossorigin href="./assets/channel-cli-copy-DBh0Rilf.js">
367
+ <link rel="modulepreload" crossorigin href="./assets/channel-cli-copy-BySq87hR.js">
368
368
  <link rel="modulepreload" crossorigin href="./assets/config-validation-events-88awVkQh.js">
369
369
  <link rel="modulepreload" crossorigin href="./assets/lazy-with-preload-D3RC_59J.js">
370
- <link rel="modulepreload" crossorigin href="./assets/restart-collab-server-Uk2ptZCx.js">
370
+ <link rel="modulepreload" crossorigin href="./assets/restart-collab-server-CHlRP7RK.js">
371
371
  <link rel="modulepreload" crossorigin href="./assets/save-held-message-dN-7e5gG.js">
372
372
  <link rel="modulepreload" crossorigin href="./assets/receive-store-COv5nLRi.js">
373
373
  <link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-CiImBSvA.js">