@marimo-team/frontend 0.25.2-dev99 → 0.25.3-dev10

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 (441) hide show
  1. package/dist/assets/{CellStatus-Bj7PvY_u.js → CellStatus-nZpuDkm7.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-C5UW0p9I.js → ConnectedDataExplorerComponent-t8fH_TNc.js} +1 -1
  3. package/dist/assets/{ErrorBoundary-CG6gtgym.js → ErrorBoundary-B4n9EnHB.js} +2 -2
  4. package/dist/assets/{I18nProvider-BFOBKCJB.js → I18nProvider-Cg2I_s1_.js} +1 -1
  5. package/dist/assets/{ImageComparisonComponent-pCLPT6RA.js → ImageComparisonComponent-Bq-l26rq.js} +1 -1
  6. package/dist/assets/{Inputs-BlygJyl1.js → Inputs-BsQm29hD.js} +1 -1
  7. package/dist/assets/JsonOutput-BxB0NL8w.js +11 -0
  8. package/dist/assets/{LazyAnyLanguageCodeMirror-CeTd_wFt.js → LazyAnyLanguageCodeMirror-CKcCbG2G.js} +2 -2
  9. package/dist/assets/MarimoErrorOutput-BTy4MOzX.js +10 -0
  10. package/dist/assets/{Plot-CNtRAZBG.js → Plot-B8w5_jU-.js} +1 -1
  11. package/dist/assets/{RenderHTML-C7QcdAgB.js → RenderHTML-9bMgbYmo.js} +1 -1
  12. package/dist/assets/{RunButton-A__3wcpF.js → RunButton-CFQUNN5c.js} +1 -1
  13. package/dist/assets/__vite-browser-external-CYO_P3S8.js +1 -0
  14. package/dist/assets/__vite-browser-external-FeDVGZU8.js +1 -0
  15. package/dist/assets/{abnfDiagram-VCTEODGH-BuHNQB7l.js → abnfDiagram-VCTEODGH-3eD1PSvc.js} +1 -1
  16. package/dist/assets/add-cell-with-ai-f_MnLCwI.js +76 -0
  17. package/dist/assets/{add-connection-dialog-bl8dqCVs.js → add-connection-dialog-CoE_PhuD.js} +1 -1
  18. package/dist/assets/{agent-panel-BPLrf7mA.js → agent-panel-BWZz24jK.js} +5 -5
  19. package/dist/assets/ai-model-dropdown-zm-2fXzf.js +13 -0
  20. package/dist/assets/{alert-MrQXRIin.js → alert-DTaqCu_d.js} +1 -1
  21. package/dist/assets/{alert-dialog-DlL1c-bx.js → alert-dialog-BaPGzeOK.js} +1 -1
  22. package/dist/assets/{any-language-editor-DtOWujZJ.js → any-language-editor-BLCAD3yx.js} +1 -1
  23. package/dist/assets/app-config-button-BhU0ulYs.js +1 -0
  24. package/dist/assets/{architectureDiagram-5GKGNRK7-DvIXijdN.js → architectureDiagram-5GKGNRK7-Bx_zXJUH.js} +1 -1
  25. package/dist/assets/arrow-down-C9Bslqr3.js +1 -0
  26. package/dist/assets/arrow-left-BaPN-xbg.js +1 -0
  27. package/dist/assets/arrow-right-Cgit4Nk2.js +1 -0
  28. package/dist/assets/{badge-DFf033uX.js → badge-crT3E0Rm.js} +1 -1
  29. package/dist/assets/ban-YzvUro5I.js +1 -0
  30. package/dist/assets/{blob-Bx8A10xl.js → blob-iOBwGaP9.js} +1 -1
  31. package/dist/assets/{blockDiagram-I7D4REHJ-DGAMO17L.js → blockDiagram-I7D4REHJ-CuwUGEGQ.js} +1 -1
  32. package/dist/assets/{bot-message-square-BfGaNy9r.js → bot-message-square-8xmbrehG.js} +1 -1
  33. package/dist/assets/{bundle.esm-CklCb9AD.js → bundle.esm-D3tw5rqW.js} +1 -1
  34. package/dist/assets/{button-M49xxKoi.js → button-COI-NGrx.js} +1 -1
  35. package/dist/assets/{c4Diagram-7LVT6UL2-qqO5IOnV.js → c4Diagram-7LVT6UL2-nj0NbEUh.js} +1 -1
  36. package/dist/assets/{cache-panel-BNPF4X5e.js → cache-panel-DTY1dqvi.js} +1 -1
  37. package/dist/assets/{capabilities-BScjbYOK.js → capabilities-BJvf-MD4.js} +1 -1
  38. package/dist/assets/{card-BYZGhhhx.js → card-DOABds5l.js} +1 -1
  39. package/dist/assets/{cell-editor-C3818WlB.js → cell-editor-CAj1UKxx.js} +12 -12
  40. package/dist/assets/{cell-link-DC1UZQr_.js → cell-link-1CynTVGQ.js} +1 -1
  41. package/dist/assets/cells-rA_jsZCj.js +220 -0
  42. package/dist/assets/channel-DtckUh1_.js +1 -0
  43. package/dist/assets/{chart-no-axes-column-B6FT5Xvu.js → chart-no-axes-column-C4_v6fQW.js} +1 -1
  44. package/dist/assets/{chat-display-YETh6yXV.js → chat-display-BmEPmhDP.js} +1 -1
  45. package/dist/assets/chat-panel-Ce2Xh7dM.js +4 -0
  46. package/dist/assets/{chat-ui-D_QL46qM.js → chat-ui-DTy98rP3.js} +1 -1
  47. package/dist/assets/check-BQNapYaf.js +1 -0
  48. package/dist/assets/chevron-right-eAtVhbNZ.js +1 -0
  49. package/dist/assets/{chunk-2E4U76K2-DqA2CBL0.js → chunk-2E4U76K2-dDf4JvCq.js} +1 -1
  50. package/dist/assets/{chunk-4HAMMTFA-DaFOJTOO.js → chunk-4HAMMTFA-Bhjs7H7G.js} +1 -1
  51. package/dist/assets/{chunk-75Z2AOVW-DEp7Wbaj.js → chunk-75Z2AOVW-DlSlUzCU.js} +1 -1
  52. package/dist/assets/{chunk-CLGD4ZFX-BxW11Imt.js → chunk-CLGD4ZFX-CvGMvSe-.js} +1 -1
  53. package/dist/assets/{chunk-DU6HZSFF-CDmPCRkr.js → chunk-DU6HZSFF-BxQd02hX.js} +2 -2
  54. package/dist/assets/{chunk-F27PBJKO-455JWNM3.js → chunk-F27PBJKO-DL9FG-iN.js} +1 -1
  55. package/dist/assets/{chunk-GMAD6QVW-ahdTJvh0.js → chunk-GMAD6QVW-B1Ai6qbk.js} +1 -1
  56. package/dist/assets/{chunk-GVQU2GXP-CPkYne1h.js → chunk-GVQU2GXP-a_N0QLD4.js} +1 -1
  57. package/dist/assets/{chunk-IMKFNOWR-fARccL86.js → chunk-IMKFNOWR-7KbFyW3C.js} +1 -1
  58. package/dist/assets/{chunk-L3NEJ4N5-BOK6HmaY.js → chunk-L3NEJ4N5-BcHj9aiN.js} +1 -1
  59. package/dist/assets/{chunk-OSK3NFVY-CEcyPnHo.js → chunk-OSK3NFVY-Dc7tMbN9.js} +1 -1
  60. package/dist/assets/{chunk-P2QGCYS3-Bw5LRT6S.js → chunk-P2QGCYS3-G6pmnA0z.js} +1 -1
  61. package/dist/assets/{chunk-POPQ4Y6H-C--NLIXc.js → chunk-POPQ4Y6H-C3iw1mOR.js} +1 -1
  62. package/dist/assets/{chunk-PWAF6VOD-B1mxlptQ.js → chunk-PWAF6VOD-Dy1Fp4eJ.js} +1 -1
  63. package/dist/assets/{chunk-SHT3W25Y-Diet96b1.js → chunk-SHT3W25Y-B3kFJuvo.js} +1 -1
  64. package/dist/assets/{chunk-SVP7TREG-BbcEGfNl.js → chunk-SVP7TREG-BNmfcKnL.js} +1 -1
  65. package/dist/assets/{chunk-TICWLB2K-BypOyFjf.js → chunk-TICWLB2K-CI3x9ENh.js} +1 -1
  66. package/dist/assets/{chunk-TLUHSLCS-DvvqZUl_.js → chunk-TLUHSLCS-Q72uYeUY.js} +2 -2
  67. package/dist/assets/{chunk-YOKDWASO-84E-_nIR.js → chunk-YOKDWASO-BIpRENEC.js} +4 -4
  68. package/dist/assets/{circle-Bb1IbBVn.js → circle-DXf-VWZG.js} +1 -1
  69. package/dist/assets/circle-check-BCurAHEb.js +1 -0
  70. package/dist/assets/{circle-play-X3K8DkEc.js → circle-play-CYIb0qT6.js} +1 -1
  71. package/dist/assets/classDiagram-ZZMXUADV-vm4wDTPy.js +1 -0
  72. package/dist/assets/classDiagram-v2-VYDZK3BY-vm4wDTPy.js +1 -0
  73. package/dist/assets/{clear-button-BGfeXcJ3.js → clear-button-p6YcvzLy.js} +1 -1
  74. package/dist/assets/{click-outside-container-CHoodRk9.js → click-outside-container-D_Dy5sZY.js} +1 -1
  75. package/dist/assets/{clipboard-paste-D0gau9Xw.js → clipboard-paste-HVpozQmt.js} +1 -1
  76. package/dist/assets/code-BEiQP4pS.js +1 -0
  77. package/dist/assets/{code-visibility-DNzJgrTz.js → code-visibility-B-_GvwR5.js} +1 -1
  78. package/dist/assets/{code-xml-CW65k2pN.js → code-xml-SQaZqvcO.js} +1 -1
  79. package/dist/assets/coerce-CpE6kUdX.js +1 -0
  80. package/dist/assets/{column-preview-fD3qW2B5.js → column-preview-DU6dT80y.js} +1 -1
  81. package/dist/assets/command-palette-BMqFKXVr.js +1 -0
  82. package/dist/assets/{common-Cy3lJDvJ.js → common-lisZ0l6a.js} +1 -1
  83. package/dist/assets/{compiler-runtime-BQ9S8nyo.js → compiler-runtime-BrajqUja.js} +1 -1
  84. package/dist/assets/{components-M5WFQ0gs.js → components-CP_UoFtT.js} +1 -1
  85. package/dist/assets/{components-ufN33X-R.js → components-CXfO-F47.js} +1 -1
  86. package/dist/assets/{components-D9ZIJGG8.js → components-Dvd1GnD6.js} +1 -1
  87. package/dist/assets/config-DJLAC21v.js +1 -0
  88. package/dist/assets/{config-D_c_6ce1.js → config-DX8Y2WbJ.js} +1 -1
  89. package/dist/assets/{config-Cyum2gRs.js → config-VPSq73n8.js} +1 -1
  90. package/dist/assets/{copy-D03Y7IMR.js → copy-D8O_CYCG.js} +1 -1
  91. package/dist/assets/{copy-RyCOE8jo.js → copy-Djr5m5ac.js} +1 -1
  92. package/dist/assets/{copy-icon-wfSGfX8v.js → copy-icon-BIiRXh_3.js} +1 -1
  93. package/dist/assets/{createLucideIcon-rHn2EdoM.js → createLucideIcon-DfJ2oMlA.js} +1 -1
  94. package/dist/assets/{createReducer-W5dowuCe.js → createReducer-DgRODTW6.js} +1 -1
  95. package/dist/assets/{cynefinDiagram-5FMLGOSQ-BW3uXbHa.js → cynefinDiagram-5FMLGOSQ-Cy86eSwK.js} +1 -1
  96. package/dist/assets/{dagre-GXQ25YYZ-DIV0whJf.js → dagre-GXQ25YYZ-CcWiU9Wf.js} +1 -1
  97. package/dist/assets/{data-grid-overlay-editor-DuYKABwo.js → data-grid-overlay-editor-CMnBpfPb.js} +1 -1
  98. package/dist/assets/{database-zap-CrkOvbyN.js → database-zap-B_PMVg8T.js} +1 -1
  99. package/dist/assets/{datasource-Tst92Pzi.js → datasource-Dr1xNKUn.js} +1 -1
  100. package/dist/assets/dates-CfmdTL6B.js +1 -0
  101. package/dist/assets/{dependency-graph-panel-CLrAZrHA.js → dependency-graph-panel-B0uP-_id.js} +1 -1
  102. package/dist/assets/{diagram-S7CK7UJ4-BzoPaaoH.js → diagram-S7CK7UJ4-hmuvh6TI.js} +1 -1
  103. package/dist/assets/{diagram-UQ7AKVKN-BnOSn29R.js → diagram-UQ7AKVKN-CM3XDKRP.js} +1 -1
  104. package/dist/assets/{diagram-VSXAHHWV-DAz8vger.js → diagram-VSXAHHWV-B8HedxR3.js} +1 -1
  105. package/dist/assets/{diagram-VX7I27RA-BQOZxgYE.js → diagram-VX7I27RA-D_5dmdWD.js} +1 -1
  106. package/dist/assets/{diagram-Z3DM3KII-B_OF69Ac.js → diagram-Z3DM3KII-DWHvDoOc.js} +1 -1
  107. package/dist/assets/{dist-DoyTOIOd.js → dist-D6KQW558.js} +1 -1
  108. package/dist/assets/{dist-Cm7MoInu.js → dist-DR-Kwzb9.js} +1 -1
  109. package/dist/assets/{dist-Bqtq4wYM.js → dist-iaThVDkA.js} +1 -1
  110. package/dist/assets/{documentation-panel-OMUbXgKW.js → documentation-panel-DVl_ebWy.js} +1 -1
  111. package/dist/assets/{download-CPMAf7re.js → download-Bx55LMki.js} +1 -1
  112. package/dist/assets/{dropdown-menu-B2JUUcK7.js → dropdown-menu-C1rnl-0o.js} +1 -1
  113. package/dist/assets/{ebnfDiagram-PWID7BFC-BbkBTazy.js → ebnfDiagram-PWID7BFC-2XbadxRe.js} +1 -1
  114. package/dist/assets/edit-page-DlfCLUaq.js +9 -0
  115. package/dist/assets/{ellipsis-CLMWXUqY.js → ellipsis-63DyBLHQ.js} +1 -1
  116. package/dist/assets/{empty-state-CzxjZqGW.js → empty-state-BaCKb7o3.js} +1 -1
  117. package/dist/assets/{en-US-B4U3zuiu.js → en-US-Buu61juQ.js} +1 -1
  118. package/dist/assets/{erDiagram-RLTQ6QDP-DxDHwsU0.js → erDiagram-RLTQ6QDP-DbTcKdOV.js} +1 -1
  119. package/dist/assets/{error-banner-D1_bPN9u.js → error-banner-Cd69vvyX.js} +1 -1
  120. package/dist/assets/{error-entries-DBpwg0GC.js → error-entries-DOWpdGvI.js} +1 -1
  121. package/dist/assets/{error-panel-BgYJTJpA.js → error-panel-DpbNKSLs.js} +1 -1
  122. package/dist/assets/{errors-D9vyuMar.js → errors-DCrsa1nH.js} +1 -1
  123. package/dist/assets/{es-KNLgCZL4.js → es-Cqst59WX.js} +1 -1
  124. package/dist/assets/{esm-3WkPrffD.js → esm-CI_o7NhW.js} +1 -1
  125. package/dist/assets/{external-link-D2lKwXyB.js → external-link-UrX9KO36.js} +1 -1
  126. package/dist/assets/{eye-off-CfkK-QS3.js → eye-off-CxVozGAC.js} +1 -1
  127. package/dist/assets/{feedback-button-7KY7nL-j.js → feedback-button-B99ThNJW.js} +1 -1
  128. package/dist/assets/feedback-button-DlqZkJwz.js +1 -0
  129. package/dist/assets/{file-mCR_SMtq.js → file-BPBVl9pl.js} +1 -1
  130. package/dist/assets/{file-explorer-panel-HvVNt0Qs.js → file-explorer-panel-Bo9eN3rW.js} +1 -1
  131. package/dist/assets/{file-headphone-DKocX1z0.js → file-headphone-Dl35U6h3.js} +1 -1
  132. package/dist/assets/{file-icons-e7tmeyP-.js → file-icons-CdJgUy-I.js} +1 -1
  133. package/dist/assets/{file-name-input-DZehOHLA.js → file-name-input-ChnBsDE_.js} +1 -1
  134. package/dist/assets/{fileToBase64-aqhlf6Jj.js → fileToBase64-BgBraYAr.js} +1 -1
  135. package/dist/assets/{floating-outline-K7cVdOlC.js → floating-outline-MYqQW4Vp.js} +1 -1
  136. package/dist/assets/flowDiagram-HODETNUW-DR34jHUd.js +1 -0
  137. package/dist/assets/{formats-DkOlpVdf.js → formats-yZ06h1Pl.js} +1 -1
  138. package/dist/assets/{formatting-Civx9FAg.js → formatting-BqrP-n49.js} +1 -1
  139. package/dist/assets/{fullscreen-DEBblJKh.js → fullscreen-B9tHcfpV.js} +1 -1
  140. package/dist/assets/{gallery-page-DoriMrLH.js → gallery-page-DSL0J4md.js} +1 -1
  141. package/dist/assets/{ganttDiagram-EL5Y4UJY-BzkL5tY7.js → ganttDiagram-EL5Y4UJY-2n7Ig5Jm.js} +1 -1
  142. package/dist/assets/{gitGraphDiagram-WWUBYQGX-DqtmYSBS.js → gitGraphDiagram-WWUBYQGX-DxR7RNkL.js} +1 -1
  143. package/dist/assets/{github-khsXwCtv.js → github-DQZhN3La.js} +1 -1
  144. package/dist/assets/{glide-data-editor-DWyeHe3u.js → glide-data-editor-B1MWlKeM.js} +4 -4
  145. package/dist/assets/{glide-utils-BzwA3q-e.js → glide-utils-CIrAxdjv.js} +1 -1
  146. package/dist/assets/{globe-CmFhHoL1.js → globe-UdPdIbF7.js} +1 -1
  147. package/dist/assets/{hat-glasses-DVgK5i5l.js → hat-glasses-C8RhSVii.js} +1 -1
  148. package/dist/assets/{highlighted-body-KPVGNVTW-DxcqwMAu.js → highlighted-body-KPVGNVTW-BBA_Oaqj.js} +1 -1
  149. package/dist/assets/{home-page-BcJJsD_Q.js → home-page-KrhQ55Vg.js} +1 -1
  150. package/dist/assets/{hooks-Qxjt0Ypd.js → hooks-BIogTGCr.js} +1 -1
  151. package/dist/assets/{house-CbkYoQ5W.js → house-CpsMWsLL.js} +1 -1
  152. package/dist/assets/{html-to-image-CFVIG1VZ.js → html-to-image-DK9Zl1lU.js} +1 -1
  153. package/dist/assets/{icons-CVdkfEA3.js → icons-CiZ_8zS-.js} +1 -1
  154. package/dist/assets/{image-CTch9x2I.js → image-wZvTj8WY.js} +1 -1
  155. package/dist/assets/index-6b4mf8Ai.css +2 -0
  156. package/dist/assets/index-B3fcrmuf.js +30 -0
  157. package/dist/assets/{infoDiagram-27XIBGKW-7rLCp1UQ.js → infoDiagram-27XIBGKW-U5Oqw16-.js} +1 -1
  158. package/dist/assets/{input-DPd57MDP.js → input-BoBxR50a.js} +1 -1
  159. package/dist/assets/{isValid-BEbe1fFs.js → isValid-q_Ad80ug.js} +1 -1
  160. package/dist/assets/{ishikawaDiagram-5VMMS53U-BH7XUtkN.js → ishikawaDiagram-5VMMS53U-Bob74yfq.js} +1 -1
  161. package/dist/assets/{journeyDiagram-3NMN7TZE-BOj0kV6v.js → journeyDiagram-3NMN7TZE-CO3wos0F.js} +1 -1
  162. package/dist/assets/{kanban-definition-UXKFOSKX-CPrudFOv.js → kanban-definition-UXKFOSKX-HnyRfUfJ.js} +1 -1
  163. package/dist/assets/katex-C9vVdkK0.js +1 -0
  164. package/dist/assets/{katex-DUp2KybH.js → katex-CF1UBJcr.js} +5 -5
  165. package/dist/assets/{kbd-BnUiViRu.js → kbd-pdKBv96t.js} +1 -1
  166. package/dist/assets/kiosk-mode-BZECfg9k.js +1 -0
  167. package/dist/assets/{layout-CSLw6wGo.js → layout-DOpdUwym.js} +4 -4
  168. package/dist/assets/{link-BF4dGmOQ.js → link-NuFVR7G9.js} +1 -1
  169. package/dist/assets/links-DkkL9DVa.js +1 -0
  170. package/dist/assets/{logs-panel-OkoO5mbN.js → logs-panel-y0XnfulJ.js} +1 -1
  171. package/dist/assets/loro_wasm_bg-C2Fqi8D-.js +1 -0
  172. package/dist/assets/loro_wasm_bg-CSolyDSZ.wasm +0 -0
  173. package/dist/assets/loro_wasm_bg-Ctp2cNI9.js +1 -0
  174. package/dist/assets/{marimo-icons-B_1oPpIE.js → marimo-icons-CqliHyTr.js} +1 -1
  175. package/dist/assets/{markdown-renderer-mDlWBE1M.js → markdown-renderer-Q5AhbRU3.js} +2 -2
  176. package/dist/assets/{menu-items-DAaNKHJF.js → menu-items-BrwnTgyK.js} +1 -1
  177. package/dist/assets/mermaid-HWGCJPDP-B7ByBG-a.js +1 -0
  178. package/dist/assets/{mermaid-CX6aTquk.js → mermaid-a3xYymTy.js} +3 -3
  179. package/dist/assets/{message-circle-OTHnVlxO.js → message-circle-C3rKm8_a.js} +1 -1
  180. package/dist/assets/{mhchem-hMh9XtQZ.js → mhchem-B6WrVrmp.js} +1 -1
  181. package/dist/assets/{mindmap-definition-YA3MSWOX-kWyI8sXl.js → mindmap-definition-YA3MSWOX-Tl5cqnHr.js} +1 -1
  182. package/dist/assets/{multi-icon-DWzZu-9u.js → multi-icon-DL465pPF.js} +1 -1
  183. package/dist/assets/{name-cell-input-D_Q2IhP9.js → name-cell-input-BNOnF6-0.js} +1 -1
  184. package/dist/assets/{number-overlay-editor-myrryj7o.js → number-overlay-editor-DS8xi0jE.js} +1 -1
  185. package/dist/assets/{numbers-BEfBaQtu.js → numbers-Mk3-CcoU.js} +1 -1
  186. package/dist/assets/{outline-panel-Dy2cmYDF.js → outline-panel-Be7stWwv.js} +1 -1
  187. package/dist/assets/{package-BeYhVWvM.js → package-GSoSTiIK.js} +1 -1
  188. package/dist/assets/{package-data-BwaspaKJ.js → package-data-dv4FBHxR.js} +1 -1
  189. package/dist/assets/{packages-panel-CIvhx0hb.js → packages-panel-ClxOAEGy.js} +1 -1
  190. package/dist/assets/{panel-accordion-state-BI4SU22L.js → panel-accordion-state-GeMEdCPw.js} +1 -1
  191. package/dist/assets/{panel-context-BPaQeOuV.js → panel-context-C2QXpKfx.js} +1 -1
  192. package/dist/assets/panels-DfCmzLtT.js +4 -0
  193. package/dist/assets/{pathUtils-BKesuhdv.js → pathUtils-DPmlLd-r.js} +1 -1
  194. package/dist/assets/{paths-CzfpItSz.js → paths-bkIFVj8h.js} +1 -1
  195. package/dist/assets/{pegDiagram-XKGWAZYB-CiBJGPte.js → pegDiagram-XKGWAZYB-a0itOiYa.js} +1 -1
  196. package/dist/assets/{pieDiagram-E7YTZNPT-RpjpKhU6.js → pieDiagram-E7YTZNPT-DFve8H9P.js} +1 -1
  197. package/dist/assets/plus-C5silF6g.js +1 -0
  198. package/dist/assets/process-output-DNFKMODr.js +1 -0
  199. package/dist/assets/{quadrantDiagram-AXDQQJYC-Ci_qzCqs.js → quadrantDiagram-AXDQQJYC-yBhCDI7E.js} +1 -1
  200. package/dist/assets/{railroadDiagram-O6MQD6OU-B2IWK3fJ.js → railroadDiagram-O6MQD6OU-CgwdYhrd.js} +1 -1
  201. package/dist/assets/react-DVplv7_D.js +1 -0
  202. package/dist/assets/react-dom-_LrxgvjW.js +1 -0
  203. package/dist/assets/{react-icons.esm-C6SMwKZH.js → react-icons.esm-D6tfmvq8.js} +1 -1
  204. package/dist/assets/{react-resizable-panels.browser.esm-BL2E7f5c.js → react-resizable-panels.browser.esm-Dbe0MrFr.js} +1 -1
  205. package/dist/assets/{react-vega-Jq3Jd7eX.js → react-vega-C3rYGtP6.js} +1 -1
  206. package/dist/assets/{readonly-code-display-CNbw6v1-.js → readonly-code-display-YULOXf4h.js} +1 -1
  207. package/dist/assets/{readonly-python-code-DcYhdd1B.js → readonly-python-code-CadgXgRu.js} +1 -1
  208. package/dist/assets/{refresh-cw-CEGpOrzd.js → refresh-cw-Qw1f8Jhy.js} +1 -1
  209. package/dist/assets/{renderShortcut-BnRfkbwf.js → renderShortcut-BkVJQ_Zh.js} +1 -1
  210. package/dist/assets/requests-CgSY1X4a.js +1 -0
  211. package/dist/assets/{requests-yTHMxhVa.js → requests-lt0JK8Jt.js} +1 -1
  212. package/dist/assets/{requirementDiagram-BXWQKSXE-B0_CyV0T.js → requirementDiagram-BXWQKSXE-BCDzS-aV.js} +1 -1
  213. package/dist/assets/reveal-component-BVAR7ayZ.js +1069 -0
  214. package/dist/assets/{reveal-component-wEV_sB3u.css → reveal-component-DMRR6gKy.css} +1 -1
  215. package/dist/assets/{rotate-ccw-se3Oa1US.js → rotate-ccw-D8WCVWNE.js} +1 -1
  216. package/dist/assets/{rotate-cw-BcRERxHa.js → rotate-cw-CZ2syZTu.js} +1 -1
  217. package/dist/assets/{run-page-CVWospEP.js → run-page-Cxu1yV8Q.js} +1 -1
  218. package/dist/assets/{runs-DyluVj69.js → runs-BLp5jezv.js} +1 -1
  219. package/dist/assets/{runtime-details-state-lxXYwJcI.js → runtime-details-state-DuChzsA6.js} +1 -1
  220. package/dist/assets/{sankeyDiagram-P5KCCOFB-BekzhMvv.js → sankeyDiagram-P5KCCOFB-byYeKbB2.js} +1 -1
  221. package/dist/assets/{save-D4cG4pP2.js → save-Dgoim6QF.js} +1 -1
  222. package/dist/assets/save-worker-BbUSwZRG.js +118 -0
  223. package/dist/assets/schemas-Dv42wLFq.js +56 -0
  224. package/dist/assets/{scratchpad-panel-B4qlmwP-.js → scratchpad-panel-By-ybhjg.js} +1 -1
  225. package/dist/assets/{scroll-to-bottom-button-Dmrd5bjQ.js → scroll-to-bottom-button-1FyowpWV.js} +1 -1
  226. package/dist/assets/{secrets-panel-DT1Nansx.js → secrets-panel-Bctbtkrp.js} +1 -1
  227. package/dist/assets/{select-BwRFbZty.js → select-DTBn5eTb.js} +1 -1
  228. package/dist/assets/{sequenceDiagram-WJ2MYXX4-DELi1Kz5.js → sequenceDiagram-WJ2MYXX4-CLLPBM4B.js} +1 -1
  229. package/dist/assets/{session-BykGt6S3.js → session-DqoWmb7X.js} +1 -1
  230. package/dist/assets/session-panel-BmW6PH4z.js +1 -0
  231. package/dist/assets/{settings-DlKTeV_0.js → settings-BpdQZRgT.js} +1 -1
  232. package/dist/assets/{shell-BSnvn9t7.js → shell-Fj8a65ii.js} +1 -1
  233. package/dist/assets/{shim-5li_pJY_.js → shim-CjjJUhDo.js} +1 -1
  234. package/dist/assets/{skeleton-CKpBjoLm.js → skeleton-Cqh4O9g1.js} +1 -1
  235. package/dist/assets/{snippets-panel-YttkYAW9.js → snippets-panel-CQ1dn3lA.js} +1 -1
  236. package/dist/assets/{spec-D9d9nT0z.js → spec-BfSBcO5B.js} +1 -1
  237. package/dist/assets/{spinner-CGdRKCnw.js → spinner-DyNE-o8o.js} +1 -1
  238. package/dist/assets/square-BPmgQFnh.js +1 -0
  239. package/dist/assets/{square-function-DyFIOFp5.js → square-function-_W_Lo0P4.js} +1 -1
  240. package/dist/assets/state-BAJYRhmO.js +1 -0
  241. package/dist/assets/{state-BI0fn_YF.js → state-Bfh_2SLl.js} +1 -1
  242. package/dist/assets/{state-ja7GWeCS.js → state-C3oDoyFe.js} +1 -1
  243. package/dist/assets/{state-B2ZbImvm.js → state-DxQnC_1I.js} +1 -1
  244. package/dist/assets/{state-BxLm8vme.js → state-uwRvJLb8.js} +1 -1
  245. package/dist/assets/state-z3dlofZB.js +3 -0
  246. package/dist/assets/{stateDiagram-D77RDMKH-udui7EYS.js → stateDiagram-D77RDMKH-BeIsqkgQ.js} +1 -1
  247. package/dist/assets/stateDiagram-v2-MP3YSRHH-YdOj4q4D.js +1 -0
  248. package/dist/assets/{strings-hlCLC-K1.js → strings-B2vv-ENv.js} +1 -1
  249. package/dist/assets/{swimlanes-42K2YHIH-C-iTrYJs.js → swimlanes-42K2YHIH-CIhaeNCx.js} +1 -1
  250. package/dist/assets/swimlanesDiagram-VR7AAH4N-BLZbCKkx.js +8 -0
  251. package/dist/assets/{swiper-component-eXUBvFuA.js → swiper-component-a07domrZ.js} +1 -1
  252. package/dist/assets/{switch-C-83e2fG.js → switch-CTaiAjrz.js} +1 -1
  253. package/dist/assets/{table-B7KYyTxw.js → table-DG7Ap4H4.js} +1 -1
  254. package/dist/assets/{table-Dg1KxH-q.js → table-vrvqpuKJ.js} +1 -1
  255. package/dist/assets/{tabs-QRT1DYjj.js → tabs-BuQlZFbt.js} +1 -1
  256. package/dist/assets/{terminal-3hxM6K9q.js → terminal-Ck_vK-34.js} +1 -1
  257. package/dist/assets/{timeline-definition-24CTP7MA-D2u0nOZp.js → timeline-definition-24CTP7MA-BSH7-Tss.js} +1 -1
  258. package/dist/assets/toDate-DOj9Q6uC.js +1 -0
  259. package/dist/assets/{toast-BRwEbWb6.js → toast-BGzLGnvw.js} +1 -1
  260. package/dist/assets/{tooltip-B5pI8o2n.js → tooltip-C9TuY18o.js} +1 -1
  261. package/dist/assets/{tooltip-BeP4eX87.js → tooltip-mT3CGest.js} +1 -1
  262. package/dist/assets/{tracing-DZYfCw6p.js → tracing-BARlJ_Dk.js} +1 -1
  263. package/dist/assets/tracing-panel-dgnr2fIN.js +2 -0
  264. package/dist/assets/{trash-2-BJG-7Qob.js → trash-2-DcgaW8fn.js} +1 -1
  265. package/dist/assets/{trash-BKbZYRHl.js → trash-ChRHEGfM.js} +1 -1
  266. package/dist/assets/{tree-actions-D5clvgKl.js → tree-actions-DAd80MbP.js} +1 -1
  267. package/dist/assets/{triangle-alert-BeRqoThc.js → triangle-alert-DmIqR8sY.js} +1 -1
  268. package/dist/assets/{use-restore-focus-GUh2Nd8Z.js → use-restore-focus-BxEGwIbk.js} +1 -1
  269. package/dist/assets/{use-toast-CC89xOwH.js → use-toast-Wu434mLr.js} +1 -1
  270. package/dist/assets/{use-vega-container-remeasure-CS3c8wGN.js → use-vega-container-remeasure-BpmHehNK.js} +1 -1
  271. package/dist/assets/{useAddCell-Bhv6GT3m.js → useAddCell-DGstJK0S.js} +1 -1
  272. package/dist/assets/{useAsyncData-DucTwMkf.js → useAsyncData-C7aJJz0Y.js} +1 -1
  273. package/dist/assets/{useBoolean-Co-_MyFz.js → useBoolean-BDD6_xQQ.js} +1 -1
  274. package/dist/assets/{useCellActionButton-BTsPn8Dv.js → useCellActionButton-DY9RlJTb.js} +1 -1
  275. package/dist/assets/{useDateFormatter-CTYCgKB-.js → useDateFormatter-DA-62E-Y.js} +1 -1
  276. package/dist/assets/{useDebounce-DMbg9X18.js → useDebounce-B_ccBZTp.js} +1 -1
  277. package/dist/assets/useDeepCompareMemoize-DFIVN9dn.js +1 -0
  278. package/dist/assets/{useDeleteCell-BKN7t4DH.js → useDeleteCell-DFBGlSQk.js} +1 -1
  279. package/dist/assets/{useDependencyPanelTab-BTsnw2rN.js → useDependencyPanelTab-DydxsE5d.js} +1 -1
  280. package/dist/assets/{useEvent-Dc9HkKI2.js → useEvent-Dfcbgjhg.js} +1 -1
  281. package/dist/assets/{useEventListener-IRzG-0mH.js → useEventListener-D9cftcHj.js} +1 -1
  282. package/dist/assets/useIframeCapabilities-CwTkczVN.js +1 -0
  283. package/dist/assets/{useInstallPackage-HTUlGg0U.js → useInstallPackage-iX1eufdl.js} +1 -1
  284. package/dist/assets/{useInterval-D1QGqQ_I.js → useInterval--x3s1VpI.js} +1 -1
  285. package/dist/assets/{useLifecycle-DKSBdWUf.js → useLifecycle-Mq4gc5kS.js} +1 -1
  286. package/dist/assets/useNotebookActions-DfvB7RD_.js +1 -0
  287. package/dist/assets/{useNumberFormatter-BP99Zbyy.js → useNumberFormatter-D7O_26UI.js} +1 -1
  288. package/dist/assets/{useRunCells-zMO43eNR.js → useRunCells-BFjFX3hz.js} +1 -1
  289. package/dist/assets/useSplitCell-Tqv5pPtL.js +1 -0
  290. package/dist/assets/{useTheme-BkPLyRl9.js → useTheme-COhSHkCj.js} +1 -1
  291. package/dist/assets/{vega-component-Chbfi__Q.js → vega-component-CnadTgoE.js} +1 -1
  292. package/dist/assets/vega-embed-container-DJPNkHPb.js +1 -0
  293. package/dist/assets/{vennDiagram-4TSXK5OY-BKSHsv-w.js → vennDiagram-4TSXK5OY-DsmfChmC.js} +1 -1
  294. package/dist/assets/{wardleyDiagram-VM6X3IG4-CUDQDDoy.js → wardleyDiagram-VM6X3IG4-BDZlVpJI.js} +1 -1
  295. package/dist/assets/worker-DTQ7oH2A.js +158 -0
  296. package/dist/assets/{workflow-nBi9HGeO.js → workflow-cw-0b9g5.js} +1 -1
  297. package/dist/assets/{write-secret-modal-BcosCmZy.js → write-secret-modal-DzKAInL2.js} +1 -1
  298. package/dist/assets/{xychartDiagram-S5SC5T6Z-BXDsTxGu.js → xychartDiagram-S5SC5T6Z-KbGzG6-u.js} +1 -1
  299. package/dist/assets/{youtube-2MBs34oQ.js → youtube-CbJhsgLy.js} +1 -1
  300. package/dist/index.html +122 -123
  301. package/package.json +25 -22
  302. package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
  303. package/src/__tests__/host-imports.test.ts +100 -0
  304. package/src/__tests__/mount.test.ts +8 -8
  305. package/src/components/data-table/__tests__/column_formatting.test.ts +30 -0
  306. package/src/components/data-table/__tests__/columns.test.tsx +70 -0
  307. package/src/components/data-table/__tests__/context-menu.test.ts +176 -0
  308. package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +24 -1
  309. package/src/components/data-table/__tests__/export-actions.test.tsx +329 -6
  310. package/src/components/data-table/column-formatting/feature.ts +20 -1
  311. package/src/components/data-table/columns.tsx +25 -18
  312. package/src/components/data-table/context-menu.tsx +125 -26
  313. package/src/components/data-table/date-filter-inputs.tsx +15 -42
  314. package/src/components/data-table/export-actions.tsx +192 -116
  315. package/src/components/data-table/schemas.ts +14 -36
  316. package/src/components/data-table/utils.ts +18 -0
  317. package/src/components/editor/Output.tsx +9 -2
  318. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +80 -252
  319. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +186 -34
  320. package/src/components/editor/actions/pair-with-agent-commands.ts +42 -51
  321. package/src/components/editor/actions/pair-with-agent-modal.tsx +96 -36
  322. package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
  323. package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +372 -0
  324. package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
  325. package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
  326. package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
  327. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +4 -3
  328. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +548 -0
  329. package/src/components/editor/errors/send-error-report-button.tsx +69 -0
  330. package/src/components/editor/output/MarimoErrorOutput.tsx +21 -5
  331. package/src/components/editor/output/MarimoTracebackOutput.tsx +35 -20
  332. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
  333. package/src/components/editor/output/ansi-reduce.ts +6 -0
  334. package/src/components/editor/output/console/ConsoleOutput.tsx +5 -3
  335. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +18 -0
  336. package/src/components/storage/__tests__/storage-file-viewer.test.tsx +2 -1
  337. package/src/core/attachments/__tests__/toast.test.tsx +58 -0
  338. package/src/core/attachments/state.ts +21 -0
  339. package/src/core/attachments/toast.ts +15 -0
  340. package/src/core/cells/__tests__/cells.test.ts +52 -0
  341. package/src/core/cells/__tests__/document-roundtrip.test.ts +16 -0
  342. package/src/core/cells/__tests__/error-report.test.ts +139 -0
  343. package/src/core/cells/__tests__/session.test.ts +50 -1
  344. package/src/core/cells/error-report.ts +63 -0
  345. package/src/core/cells/session.ts +28 -1
  346. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
  347. package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
  348. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
  349. package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
  350. package/src/core/codemirror/copilot/extension.ts +22 -11
  351. package/src/core/codemirror/copilot/language-server.ts +109 -60
  352. package/src/core/codemirror/language/__tests__/sql.test.ts +4 -3
  353. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +138 -26
  354. package/src/core/codemirror/language/embedded/embedded-python.ts +47 -13
  355. package/src/core/codemirror/language/embedded/latex.ts +20 -13
  356. package/src/core/config/pair.ts +5 -3
  357. package/src/core/datasets/__tests__/data-source-discovery.test.ts +18 -11
  358. package/src/core/host/AGENTS.md +6 -0
  359. package/src/core/host/__tests__/protocol.test.ts +214 -0
  360. package/src/core/host/protocol.ts +1943 -0
  361. package/src/core/islands/__tests__/bootstrap.test.ts +26 -0
  362. package/src/core/islands/bootstrap.ts +1 -0
  363. package/src/core/islands/bridge.ts +2 -2
  364. package/src/core/kernel/messages.ts +4 -7
  365. package/src/core/network/__tests__/api.test.ts +114 -1
  366. package/src/core/network/api.ts +3 -2
  367. package/src/core/wasm/bridge.ts +2 -2
  368. package/src/core/wasm/worker/types.ts +2 -2
  369. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +193 -0
  370. package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
  371. package/src/css/katex-css.test.ts +1 -1
  372. package/src/css/katex.min.css +6 -1
  373. package/src/hooks/__tests__/useEventListener.test.tsx +45 -1
  374. package/src/hooks/useEventListener.ts +6 -1
  375. package/src/mount.tsx +3 -3
  376. package/src/plugins/impl/NumberPlugin.tsx +20 -3
  377. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +84 -0
  378. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +159 -1
  379. package/src/utils/__tests__/dates.test.ts +116 -0
  380. package/src/utils/dates.ts +94 -0
  381. package/dist/assets/JsonOutput-DCGUcLVV.js +0 -11
  382. package/dist/assets/MarimoErrorOutput-BEsxXqp6.js +0 -6
  383. package/dist/assets/__vite-browser-external-BgsHWynV.js +0 -1
  384. package/dist/assets/__vite-browser-external-DMJaCYJh.js +0 -1
  385. package/dist/assets/add-cell-with-ai-Wyt6GBhk.js +0 -76
  386. package/dist/assets/ai-model-dropdown-CvJsRj9y.js +0 -5
  387. package/dist/assets/api-DVLtXyp7.js +0 -1
  388. package/dist/assets/app-config-button-C7QrZbqr.js +0 -1
  389. package/dist/assets/arrow-down-BFFrjzad.js +0 -1
  390. package/dist/assets/arrow-left-DzPJ79ZB.js +0 -1
  391. package/dist/assets/arrow-right-xoNT7eIQ.js +0 -1
  392. package/dist/assets/ban-3HAzm9Fj.js +0 -1
  393. package/dist/assets/cells-CxY8RSp7.js +0 -220
  394. package/dist/assets/channel-DXBvxHxq.js +0 -1
  395. package/dist/assets/chat-panel-BZipGUZV.js +0 -4
  396. package/dist/assets/check-Wea4hZ6R.js +0 -1
  397. package/dist/assets/chevron-right-DOPs2jx8.js +0 -1
  398. package/dist/assets/circle-check-BF80fXZd.js +0 -1
  399. package/dist/assets/classDiagram-ZZMXUADV--9ShP1h2.js +0 -1
  400. package/dist/assets/classDiagram-v2-VYDZK3BY--9ShP1h2.js +0 -1
  401. package/dist/assets/code-DW4kNwKG.js +0 -1
  402. package/dist/assets/coerce-CZiN7rQ_.js +0 -1
  403. package/dist/assets/command-palette-BM9fUfEe.js +0 -1
  404. package/dist/assets/config-CR2d-XsP.js +0 -1
  405. package/dist/assets/dates-BgcKUsHb.js +0 -1
  406. package/dist/assets/edit-page-Ctwp3mZE.js +0 -9
  407. package/dist/assets/feedback-button-DxjoRfo3.js +0 -1
  408. package/dist/assets/flowDiagram-HODETNUW-BGVnBaF-.js +0 -1
  409. package/dist/assets/index-B3pNgH5o.js +0 -29
  410. package/dist/assets/index-CXX6l_22.css +0 -2
  411. package/dist/assets/katex-CQIbPNPT.js +0 -1
  412. package/dist/assets/kiosk-mode-DCHo0R3W.js +0 -1
  413. package/dist/assets/links-BJx6KCyC.js +0 -1
  414. package/dist/assets/loro_wasm_bg-PyJsS6iH.wasm +0 -0
  415. package/dist/assets/loro_wasm_bg-Vo2IoHaL.js +0 -1
  416. package/dist/assets/loro_wasm_bg-oTW3uoGB.js +0 -1
  417. package/dist/assets/mermaid-HWGCJPDP-Bk1fR60Q.js +0 -1
  418. package/dist/assets/pair-_FSgYVX4.js +0 -1
  419. package/dist/assets/panels-BdsXFz1w.js +0 -4
  420. package/dist/assets/plus-gbN72xHe.js +0 -1
  421. package/dist/assets/process-output-Crm0vqbi.js +0 -1
  422. package/dist/assets/react-CUdNIagt.js +0 -1
  423. package/dist/assets/react-dom-CKsE8sC1.js +0 -1
  424. package/dist/assets/requests-DFPPfagc.js +0 -1
  425. package/dist/assets/reveal-component-B5GUiD5Q.js +0 -1069
  426. package/dist/assets/save-worker-C880NC3o.js +0 -113
  427. package/dist/assets/schemas-BL-NsLlF.js +0 -51
  428. package/dist/assets/session-panel-Ch5jQNj0.js +0 -1
  429. package/dist/assets/square-DvOKKLHZ.js +0 -1
  430. package/dist/assets/state-YaAkDV8S.js +0 -1
  431. package/dist/assets/state-sbCCk7ZP.js +0 -3
  432. package/dist/assets/stateDiagram-v2-MP3YSRHH-BhduIvF1.js +0 -1
  433. package/dist/assets/swimlanesDiagram-VR7AAH4N-WC2Zewqb.js +0 -8
  434. package/dist/assets/toDate-BbJ1_N2T.js +0 -1
  435. package/dist/assets/tracing-panel-BUPJ77jB.js +0 -2
  436. package/dist/assets/useDeepCompareMemoize-DSlTt6u_.js +0 -1
  437. package/dist/assets/useIframeCapabilities-yd8sMuIo.js +0 -1
  438. package/dist/assets/useNotebookActions-BzJtySGp.js +0 -1
  439. package/dist/assets/useSplitCell-xEtFLByO.js +0 -1
  440. package/dist/assets/vega-embed-container-CRZZ4FTx.js +0 -1
  441. package/dist/assets/worker-B5tVfGoh.js +0 -153
@@ -1 +0,0 @@
1
- import{c as e}from"./katex-DUp2KybH.js";export{e as default};
@@ -1 +0,0 @@
1
- import{l as e}from"./useEvent-Dc9HkKI2.js";import{m as t}from"./session-BykGt6S3.js";var n=n=>{let{children:r}=n;return e(t)?null:r},r=n=>{let{children:r}=n;return e(t)?r:null};export{r as n,n as t};
@@ -1 +0,0 @@
1
- import{l as e}from"./session-BykGt6S3.js";function t(t){window.open(e(`?file=${encodeURIComponent(t)}`).toString(),`_blank`)}export{t};
@@ -1 +0,0 @@
1
- import{$ as e,$a as t,$i as n,$n as r,$r as i,$t as a,A as o,Aa as s,Ai as c,An as l,Ar as u,At as d,B as f,Ba as p,Bi as m,Bn as h,Br as g,Bt as _,C as v,Ca as y,Ci as b,Cn as x,Cr as S,Ct as C,D as w,Da as T,Di as E,Dn as D,Dr as O,Dt as k,E as A,Ea as j,Ei as M,En as N,Er as P,Et as F,F as I,Fa as L,Fi as R,Fn as z,Fr as B,Ft as V,G as H,Ga as U,Gi as W,Gn as G,Gr as K,Gt as q,H as J,Ha as Y,Hi as X,Hn as Z,Hr as Q,Ht as $,I as ee,Ia as te,Ii as ne,In as re,Ir as ie,It as ae,J as oe,Ja as se,Ji as ce,Jn as le,Jr as ue,Jt as de,K as fe,Ka as pe,Ki as me,Kn as he,Kr as ge,Kt as _e,L as ve,La as ye,Li as be,Ln as xe,Lr as Se,Lt as Ce,M as we,Ma as Te,Mi as Ee,Mn as De,Mr as Oe,Mt as ke,N as Ae,Na as je,Ni as Me,Nn as Ne,Nr as Pe,Nt as Fe,O as Ie,Oa as Le,Oi as Re,On as ze,Or as Be,Ot as Ve,P as He,Pa as Ue,Pi as We,Pn as Ge,Pr as Ke,Pt as qe,Q as Je,Qa as Ye,Qi as Xe,Qn as Ze,Qr as Qe,Qt as $e,R as et,Ra as tt,Ri as nt,Rn as rt,Rr as it,Rt as at,S as ot,Sa as st,Si as ct,Sn as lt,Sr as ut,St as dt,T as ft,Ta as pt,Ti as mt,Tn as ht,Tr as gt,Tt as _t,U as vt,Ua as yt,Ui as bt,Un as xt,Ur as St,Ut as Ct,V as wt,Va as Tt,Vi as Et,Vn as Dt,Vr as Ot,Vt as kt,W as At,Wa as jt,Wi as Mt,Wn as Nt,Wr as Pt,Wt as Ft,X as It,Xa as Lt,Xi as Rt,Xn as zt,Xr as Bt,Xt as Vt,Y as Ht,Ya as Ut,Yi as Wt,Yn as Gt,Yr as Kt,Yt as qt,Z as Jt,Za as Yt,Zi as Xt,Zn as Zt,Zr as Qt,Zt as $t,_ as en,_a as tn,_i as nn,_n as rn,_r as an,_t as on,a as sn,aa as cn,ai as ln,an as un,ao as dn,ar as fn,at as pn,b as mn,ba as hn,bi as gn,bn as _n,br as vn,bt as yn,c as bn,ca as xn,ci as Sn,cn as Cn,co as wn,cr as Tn,ct as En,d as Dn,da as On,di as kn,dn as An,do as jn,dr as Mn,dt as Nn,ea as Pn,ei as Fn,en as In,eo as Ln,er as Rn,et as zn,f as Bn,fa as Vn,fi as Hn,fn as Un,fo as Wn,fr as Gn,ft as Kn,g as qn,ga as Jn,gi as Yn,gn as Xn,gr as Zn,gt as Qn,h as $n,ha as er,hi as tr,hn as nr,hr as rr,ht as ir,i as ar,ia as or,ii as sr,in as cr,io as lr,ir as ur,it as dr,j as fr,ja as pr,ji as mr,jn as hr,jr as gr,jt as _r,k as vr,ka as yr,ki as br,kn as xr,kr as Sr,kt as Cr,l as wr,la as Tr,li as Er,ln as Dr,lo as Or,lr as kr,lt as Ar,m as jr,ma as Mr,mi as Nr,mn as Pr,mo as Fr,mr as Ir,mt as Lr,n as Rr,na as zr,ni as Br,nn as Vr,no as Hr,nr as Ur,nt as Wr,o as Gr,oa as Kr,oi as qr,on as Jr,oo as Yr,or as Xr,ot as Zr,p as Qr,pa as $r,pi as ei,pn as ti,po as ni,pr as ri,pt as ii,q as ai,qa as oi,qi as si,qn as ci,qr as li,qt as ui,r as di,ra as fi,ri as pi,rn as mi,ro as hi,rr as gi,rt as _i,s as vi,sa as yi,si as bi,sn as xi,so as Si,sr as Ci,st as wi,t as Ti,ta as Ei,ti as Di,tn as Oi,to as ki,tr as Ai,tt as ji,u as Mi,ua as Ni,ui as Pi,un as Fi,uo as Ii,ur as Li,v as Ri,va as zi,vi as Bi,vn as Vi,vr as Hi,vt as Ui,w as Wi,wa as Gi,wi as Ki,wn as qi,wr as Ji,wt as Yi,x as Xi,xa as Zi,xi as Qi,xn as $i,xr as ea,xt as ta,y as na,ya as ra,yi as ia,yn as aa,yr as oa,yt as sa,z as ca,za as la,zi as ua,zn as da,zr as fa,zt as pa}from"./loro_wasm_bg-oTW3uoGB.js";export{Ti as LORO_VERSION,Rr as __wbg_awarenesswasm_free,di as __wbg_changemodifier_free,ar as __wbg_cursor_free,sn as __wbg_ephemeralstorewasm_free,Gr as __wbg_lorocounter_free,vi as __wbg_lorodoc_free,bn as __wbg_lorolist_free,wr as __wbg_loromap_free,Mi as __wbg_loromovablelist_free,Dn as __wbg_lorotext_free,Bn as __wbg_lorotree_free,Qr as __wbg_lorotreenode_free,jr as __wbg_undomanager_free,$n as __wbg_versionvector_free,qn as __wbindgen_add_to_stack_pointer,en as __wbindgen_exn_store,Ri as __wbindgen_export_4,na as __wbindgen_free,mn as __wbindgen_malloc,Xi as __wbindgen_realloc,ot as __wbindgen_start,v as _dyn_core_9b3796e30d99ddb7___ops__function__FnMut_____Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke______,Wi as _dyn_core_9b3796e30d99ddb7___ops__function__FnMut_______Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke___wasm_bindgen_c71729c74976bed3___JsValue_____,ft as awarenesswasm_apply,A as awarenesswasm_encode,w as awarenesswasm_encodeAll,Ie as awarenesswasm_getAllStates,vr as awarenesswasm_getState,o as awarenesswasm_getTimestamp,fr as awarenesswasm_isEmpty,we as awarenesswasm_length,Ae as awarenesswasm_new,He as awarenesswasm_peer,I as awarenesswasm_peers,ee as awarenesswasm_removeOutdated,ve as awarenesswasm_setLocalState,et as callPendingEvents,ca as changemodifier_setMessage,f as changemodifier_setTimestamp,wt as cursor_containerId,J as cursor_decode,vt as cursor_encode,At as cursor_kind,H as cursor_pos,fe as cursor_side,ai as decodeFrontiers,oe as decodeImportBlobMeta,Ht as encodeFrontiers,It as ephemeralstorewasm_apply,Jt as ephemeralstorewasm_delete,Je as ephemeralstorewasm_encode,e as ephemeralstorewasm_encodeAll,zn as ephemeralstorewasm_get,ji as ephemeralstorewasm_getAllStates,Wr as ephemeralstorewasm_isEmpty,_i as ephemeralstorewasm_keys,dr as ephemeralstorewasm_new,pn as ephemeralstorewasm_removeOutdated,Zr as ephemeralstorewasm_set,wi as ephemeralstorewasm_subscribe,En as ephemeralstorewasm_subscribeLocalUpdates,Ar as isValidContainerId,Nn as lorocounter_decrement,Kn as lorocounter_getAttached,ii as lorocounter_getShallowValue,Lr as lorocounter_id,ir as lorocounter_increment,Qn as lorocounter_isAttached,on as lorocounter_kind,Ui as lorocounter_new,sa as lorocounter_parent,yn as lorocounter_subscribe,ta as lorocounter_toJSON,dt as lorocounter_value,C as lorodoc_JSONPath,Yi as lorodoc_applyDiff,_t as lorodoc_attach,F as lorodoc_changeCount,k as lorodoc_checkout,Ve as lorodoc_checkoutToLatest,Cr as lorodoc_clearNextCommitOptions,d as lorodoc_cmpFrontiers,_r as lorodoc_cmpWithFrontiers,ke as lorodoc_commit,Fe as lorodoc_configDefaultTextStyle,qe as lorodoc_configTextStyle,V as lorodoc_debugHistory,ae as lorodoc_deleteRootContainer,Ce as lorodoc_detach,at as lorodoc_diff,pa as lorodoc_export,_ as lorodoc_exportJsonInIdSpan,kt as lorodoc_exportJsonUpdates,$ as lorodoc_findIdSpansBetween,Ct as lorodoc_fork,Ft as lorodoc_forkAt,q as lorodoc_fromSnapshot,_e as lorodoc_frontiers,ui as lorodoc_frontiersToVV,de as lorodoc_getAllChanges,qt as lorodoc_getByPath,Vt as lorodoc_getChangeAt,$t as lorodoc_getChangeAtLamport,$e as lorodoc_getChangedContainersIn,a as lorodoc_getContainerById,In as lorodoc_getCounter,Oi as lorodoc_getCursorPos,Vr as lorodoc_getDeepValueWithID,mi as lorodoc_getList,cr as lorodoc_getMap,un as lorodoc_getMovableList,Jr as lorodoc_getOpsInChange,xi as lorodoc_getPathToContainer,Cn as lorodoc_getPendingTxnLength,Dr as lorodoc_getShallowValue,Fi as lorodoc_getText,An as lorodoc_getTree,Un as lorodoc_getUncommittedOpsAsJson,ti as lorodoc_hasContainer,Pr as lorodoc_import,nr as lorodoc_importBatch,Xn as lorodoc_importJsonUpdates,rn as lorodoc_importUpdateBatch,Vi as lorodoc_isDetached,aa as lorodoc_isDetachedEditingEnabled,_n as lorodoc_isShallow,$i as lorodoc_new,lt as lorodoc_opCount,x as lorodoc_oplogFrontiers,qi as lorodoc_oplogVersion,ht as lorodoc_peerId,N as lorodoc_peerIdStr,D as lorodoc_revertTo,ze as lorodoc_setChangeMergeInterval,xr as lorodoc_setDetachedEditing,l as lorodoc_setHideEmptyRootContainers,hr as lorodoc_setNextCommitMessage,De as lorodoc_setNextCommitOptions,Ne as lorodoc_setNextCommitOrigin,Ge as lorodoc_setNextCommitTimestamp,z as lorodoc_setPeerId,re as lorodoc_setRecordTimestamp,xe as lorodoc_shallowSinceFrontiers,rt as lorodoc_shallowSinceVV,da as lorodoc_subscribe,h as lorodoc_subscribeFirstCommitFromPeer,Dt as lorodoc_subscribeJsonpath,Z as lorodoc_subscribeLocalUpdates,xt as lorodoc_subscribePreCommit,Nt as lorodoc_toJSON,G as lorodoc_travelChangeAncestors,he as lorodoc_version,ci as lorodoc_vvToFrontiers,le as lorolist_clear,Gt as lorolist_delete,zt as lorolist_get,Zt as lorolist_getAttached,Ze as lorolist_getCursor,r as lorolist_getIdAt,Rn as lorolist_getShallowValue,Ai as lorolist_id,Ur as lorolist_insert,gi as lorolist_insertContainer,ur as lorolist_isAttached,fn as lorolist_isDeleted,Xr as lorolist_kind,Ci as lorolist_length,Tn as lorolist_new,kr as lorolist_parent,Li as lorolist_pop,Mn as lorolist_push,Gn as lorolist_pushContainer,ri as lorolist_subscribe,Ir as lorolist_toArray,rr as lorolist_toJSON,Zn as loromap_clear,an as loromap_delete,Hi as loromap_ensureMergeableCounter,oa as loromap_ensureMergeableList,vn as loromap_ensureMergeableMap,ea as loromap_ensureMergeableMovableList,ut as loromap_ensureMergeableText,S as loromap_ensureMergeableTree,Ji as loromap_entries,gt as loromap_get,P as loromap_getAttached,O as loromap_getLastEditor,Be as loromap_getOrCreateContainer,Sr as loromap_getShallowValue,u as loromap_id,gr as loromap_isAttached,Oe as loromap_isDeleted,Pe as loromap_keys,Ke as loromap_kind,B as loromap_new,ie as loromap_parent,Se as loromap_set,it as loromap_setContainer,fa as loromap_size,g as loromap_subscribe,Ot as loromap_toJSON,Q as loromap_values,St as loromovablelist_clear,Pt as loromovablelist_delete,K as loromovablelist_get,ge as loromovablelist_getAttached,li as loromovablelist_getCreatorAt,ue as loromovablelist_getCursor,Kt as loromovablelist_getLastEditorAt,Bt as loromovablelist_getLastMoverAt,Qt as loromovablelist_getShallowValue,Qe as loromovablelist_id,i as loromovablelist_insert,Fn as loromovablelist_insertContainer,Di as loromovablelist_isAttached,Br as loromovablelist_isDeleted,pi as loromovablelist_kind,sr as loromovablelist_length,ln as loromovablelist_move,qr as loromovablelist_new,bi as loromovablelist_parent,Sn as loromovablelist_pop,Er as loromovablelist_push,Pi as loromovablelist_pushContainer,kn as loromovablelist_set,Hn as loromovablelist_setContainer,ei as loromovablelist_subscribe,Nr as loromovablelist_toArray,tr as loromovablelist_toJSON,Yn as lorotext_applyDelta,nn as lorotext_charAt,Bi as lorotext_convertPos,ia as lorotext_delete,gn as lorotext_deleteUtf8,Qi as lorotext_getAttached,ct as lorotext_getCursor,b as lorotext_getEditorOf,Ki as lorotext_getShallowValue,mt as lorotext_id,M as lorotext_insert,E as lorotext_insertUtf8,Re as lorotext_isAttached,br as lorotext_isDeleted,c as lorotext_iter,mr as lorotext_kind,Ee as lorotext_length,Me as lorotext_mark,We as lorotext_new,R as lorotext_parent,ne as lorotext_push,be as lorotext_slice,nt as lorotext_sliceDelta,ua as lorotext_sliceDeltaUtf8,m as lorotext_splice,Et as lorotext_subscribe,X as lorotext_toDelta,bt as lorotext_toJSON,Mt as lorotext_toString,W as lorotext_unmark,me as lorotext_update,si as lorotext_updateByLine,ce as lorotree_createNode,Wt as lorotree_delete,Rt as lorotree_disableFractionalIndex,Xt as lorotree_enableFractionalIndex,Xe as lorotree_getAttached,n as lorotree_getNodeByID,Pn as lorotree_getNodes,Ei as lorotree_getShallowValue,zr as lorotree_has,fi as lorotree_id,or as lorotree_isAttached,cn as lorotree_isDeleted,Kr as lorotree_isFractionalIndexEnabled,yi as lorotree_isNodeDeleted,xn as lorotree_kind,Tr as lorotree_move,Ni as lorotree_new,On as lorotree_nodes,Vn as lorotree_parent,$r as lorotree_roots,Mr as lorotree_subscribe,er as lorotree_toArray,Jn as lorotree_toJSON,tn as lorotreenode___getClassname,zi as lorotreenode_children,ra as lorotreenode_createNode,hn as lorotreenode_creationId,Zi as lorotreenode_creator,st as lorotreenode_data,y as lorotreenode_fractionalIndex,Gi as lorotreenode_getLastMoveId,pt as lorotreenode_id,j as lorotreenode_index,T as lorotreenode_isDeleted,Le as lorotreenode_move,yr as lorotreenode_moveAfter,s as lorotreenode_moveBefore,pr as lorotreenode_parent,Te as lorotreenode_toJSON,je as memory,Ue as redactJsonUpdates,L as run,te as setDebug,ye as undomanager_addExcludeOriginPrefix,tt as undomanager_canRedo,la as undomanager_canUndo,p as undomanager_clear,Tt as undomanager_clearRedo,Y as undomanager_clearUndo,yt as undomanager_groupEnd,jt as undomanager_groupStart,U as undomanager_isPaused,pe as undomanager_new,oi as undomanager_pause,se as undomanager_peer,Ut as undomanager_redo,Lt as undomanager_resume,Yt as undomanager_setMaxUndoSteps,Ye as undomanager_setMergeInterval,t as undomanager_setOnPop,Ln as undomanager_setOnPush,ki as undomanager_topRedoValue,Hr as undomanager_topUndoValue,hi as undomanager_undo,lr as versionvector_compare,dn as versionvector_decode,Yr as versionvector_encode,Si as versionvector_get,wn as versionvector_length,Or as versionvector_new,Ii as versionvector_parseJSON,jn as versionvector_remove,Wn as versionvector_setEnd,ni as versionvector_setLast,Fr as versionvector_toJSON};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-B0Z9INg1.js";var t=new URL(`loro_wasm_bg-PyJsS6iH.wasm`,import.meta.url).href,n=async(e={},t)=>{let n;if(t.startsWith(`data:`)){let r=t.replace(/^data:.*?base64,/,``),i;if(typeof Buffer==`function`&&typeof Buffer.from==`function`)i=Buffer.from(r,`base64`);else if(typeof atob==`function`){let e=atob(r);i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t)}else throw Error(`Cannot decode base64-encoded data URL`);n=await WebAssembly.instantiate(i,e)}else{let r=await fetch(t),i=r.headers.get(`Content-Type`)||``;if(`instantiateStreaming`in WebAssembly&&i.startsWith(`application/wasm`))n=await WebAssembly.instantiateStreaming(r,e);else{let t=await r.arrayBuffer();n=await WebAssembly.instantiate(t,e)}}return n.instance.exports},r=e({AwarenessWasm:()=>me,ChangeModifier:()=>ge,Cursor:()=>M,EphemeralStoreWasm:()=>P,LORO_VERSION:()=>re,LoroCounter:()=>I,LoroDoc:()=>R,LoroList:()=>B,LoroMap:()=>H,LoroMovableList:()=>W,LoroText:()=>K,LoroTree:()=>J,LoroTreeNode:()=>Y,UndoManager:()=>be,VersionVector:()=>Z,__wbg_String_8f0eb39a4a4c2f66:()=>xe,__wbg_apply_36be6a55257c99bf:()=>Se,__wbg_apply_eb9e9b97497f91e4:()=>Ce,__wbg_buffer_609cc3eee51ed158:()=>we,__wbg_call_672a4d21634d4a24:()=>Te,__wbg_call_7cccdd69e0791ae2:()=>Ee,__wbg_call_833bed5770ea2041:()=>De,__wbg_call_b8adc8b1d0a0d8eb:()=>Oe,__wbg_changemodifier_new:()=>ke,__wbg_crypto_574e78ad8b13b65f:()=>Ae,__wbg_cursor_new:()=>je,__wbg_done_769e5ede4b31c67b:()=>Me,__wbg_entries_3265d4158b33e5dc:()=>Ne,__wbg_entries_c8a90a7ed73e84ce:()=>Pe,__wbg_error_d558b831e4af4f7b:()=>Fe,__wbg_from_2a5d3e218e67aa85:()=>Ie,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:()=>Le,__wbg_getRandomValues_b8f5dbd5f3995a9e:()=>Re,__wbg_get_67b2ba62fc30de12:()=>ze,__wbg_get_b9b93047fe3cf45b:()=>Be,__wbg_getindex_5b00c274b05714aa:()=>Ve,__wbg_getwithrefkey_1dc361bd10053bfe:()=>He,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:()=>Ue,__wbg_instanceof_Map_f3469ce2244d2430:()=>We,__wbg_instanceof_Object_7f2dcef8f78644a4:()=>Ge,__wbg_instanceof_Uint8Array_17156bcf118086a9:()=>Ke,__wbg_isArray_a1eab7e0d067391b:()=>qe,__wbg_isSafeInteger_343e2beeeece1bb0:()=>Je,__wbg_iterator_9a24c88df860dc65:()=>Ye,__wbg_length_a446193dc22c12f8:()=>Xe,__wbg_length_e2d2a49132c1b256:()=>Ze,__wbg_log_0cc1b7768397bcfe:()=>Qe,__wbg_log_5772acf6639674b3:()=>$e,__wbg_log_cb9e190acc5753fb:()=>et,__wbg_lorocounter_new:()=>tt,__wbg_lorolist_new:()=>nt,__wbg_loromap_new:()=>rt,__wbg_loromovablelist_new:()=>it,__wbg_lorotext_new:()=>at,__wbg_lorotree_new:()=>ot,__wbg_lorotreenode_new:()=>st,__wbg_mark_7438147ce31e9d4b:()=>ct,__wbg_measure_fb7825c11612c823:()=>lt,__wbg_msCrypto_a61aeb35a24c1329:()=>ut,__wbg_new_405e22f390576ce2:()=>dt,__wbg_new_5e0be73521bc8c17:()=>ft,__wbg_new_78feb108b6472713:()=>pt,__wbg_new_a12002a7f91c75be:()=>mt,__wbg_new_c68d7209be747379:()=>ht,__wbg_newnoargs_105ed471475aaf50:()=>gt,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:()=>_t,__wbg_newwithlength_a381634e90c276d4:()=>vt,__wbg_newwithlength_c4c419ef0bc8a1f8:()=>yt,__wbg_next_25feadfc0913fea9:()=>bt,__wbg_next_6574e1a8a62d1055:()=>xt,__wbg_node_905d3e251edff8a2:()=>St,__wbg_now_86f00deda9ebf073:()=>Ct,__wbg_ownKeys_3930041068756f1f:()=>wt,__wbg_process_dc0fbacc7c1c06f7:()=>Tt,__wbg_push_737cfc8c1432c2c6:()=>Et,__wbg_randomFillSync_ac0988aba3254290:()=>Dt,__wbg_require_60cc747a6bc5215a:()=>Ot,__wbg_resolve_4851785c9c5f573d:()=>kt,__wbg_set_37837023f3d740e8:()=>At,__wbg_set_3f1d0b984ed272ed:()=>jt,__wbg_set_65595bdd868b3009:()=>Mt,__wbg_set_8fc6bf8a5b1071d1:()=>Nt,__wbg_set_bb8cecf6a62b9f46:()=>Pt,__wbg_set_wasm:()=>a,__wbg_setindex_dcd71eabf405bde1:()=>Ft,__wbg_static_accessor_GLOBAL_88a902d13a557d07:()=>It,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:()=>Lt,__wbg_static_accessor_SELF_37c5d418e4bf5819:()=>Rt,__wbg_static_accessor_WINDOW_5de37043a91a9c40:()=>zt,__wbg_subarray_aa9065fa9dc5df96:()=>Bt,__wbg_then_44b73946d2fb3e7d:()=>Vt,__wbg_value_cd1ffa7b1ab794f1:()=>Ht,__wbg_versions_c01dfd4722a88165:()=>Ut,__wbg_versionvector_new:()=>Wt,__wbg_warn_d0f9203c8c814d40:()=>Gt,__wbindgen_as_number:()=>Kt,__wbindgen_bigint_from_i64:()=>qt,__wbindgen_bigint_from_u64:()=>Jt,__wbindgen_bigint_get_as_i64:()=>Yt,__wbindgen_boolean_get:()=>Xt,__wbindgen_cb_drop:()=>Zt,__wbindgen_closure_wrapper246:()=>Qt,__wbindgen_closure_wrapper496:()=>$t,__wbindgen_debug_string:()=>en,__wbindgen_error_new:()=>tn,__wbindgen_in:()=>nn,__wbindgen_is_array:()=>rn,__wbindgen_is_bigint:()=>an,__wbindgen_is_function:()=>on,__wbindgen_is_null:()=>sn,__wbindgen_is_object:()=>cn,__wbindgen_is_string:()=>ln,__wbindgen_is_undefined:()=>un,__wbindgen_jsval_eq:()=>dn,__wbindgen_jsval_loose_eq:()=>fn,__wbindgen_memory:()=>pn,__wbindgen_number_get:()=>mn,__wbindgen_number_new:()=>hn,__wbindgen_object_clone_ref:()=>gn,__wbindgen_object_drop_ref:()=>_n,__wbindgen_rethrow:()=>vn,__wbindgen_string_get:()=>yn,__wbindgen_string_new:()=>bn,__wbindgen_throw:()=>xn,__wbindgen_typeof:()=>Sn,callPendingEvents:()=>ae,decodeFrontiers:()=>le,decodeImportBlobMeta:()=>ie,encodeFrontiers:()=>ce,isValidContainerId:()=>T,redactJsonUpdates:()=>oe,run:()=>se,setDebug:()=>ue}),i;function a(e){i=e}var o=Array(128).fill(void 0);o.push(void 0,null,!0,!1);function s(e){return o[e]}var c=0,l=null;function u(){return(l===null||l.byteLength===0)&&(l=new Uint8Array(i.memory.buffer)),l}var d=new(typeof TextEncoder>`u`?(0,module.require)(`util`).TextEncoder:TextEncoder)(`utf-8`),f=typeof d.encodeInto==`function`?function(e,t){return d.encodeInto(e,t)}:function(e,t){let n=d.encode(e);return t.set(n),{read:e.length,written:n.length}};function p(e,t,n){if(n===void 0){let n=d.encode(e),r=t(n.length,1)>>>0;return u().subarray(r,r+n.length).set(n),c=n.length,r}let r=e.length,i=t(r,1)>>>0,a=u(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=u().subarray(i+o,i+r),a=f(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return c=o,i}var m=null;function h(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==i.memory.buffer)&&(m=new DataView(i.memory.buffer)),m}var g=o.length;function _(e){g===o.length&&o.push(o.length+1);let t=g;return g=o[t],o[t]=e,t}function v(e,t){try{return e.apply(this,t)}catch(e){i.__wbindgen_exn_store(_(e))}}var ee=new(typeof TextDecoder>`u`?(0,module.require)(`util`).TextDecoder:TextDecoder)(`utf-8`,{ignoreBOM:!0,fatal:!0});ee.decode();function y(e,t){return e>>>=0,ee.decode(u().subarray(e,e+t))}function te(e){e<132||(o[e]=g,g=e)}function b(e){let t=s(e);return te(e),t}function x(e){return e==null}var S=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{i.__wbindgen_export_4.get(e.dtor)(e.a,e.b)});function ne(e,t,n,r){let a={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{a.cnt++;let t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{--a.cnt===0?(i.__wbindgen_export_4.get(a.dtor)(t,a.b),S.unregister(a)):a.a=t}};return o.original=a,S.register(o,a,a),o}function C(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=C(e[0]));for(let r=1;r<t;r++)n+=`, `+C(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function re(){let e,t;try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.LORO_VERSION(a);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);return e=n,t=r,y(n,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(e,t,1)}}function w(e,t){let n=t(e.length*1,1)>>>0;return u().set(e,n/1),c=e.length,n}function ie(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=w(e,i.__wbindgen_malloc),s=c;i.decodeImportBlobMeta(a,o,s,t);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function ae(){i.callPendingEvents()}function oe(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.redactJsonUpdates(a,_(e),_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function T(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;return i.isValidContainerId(t,n)!==0}function se(){i.run()}function E(e,t){let n=t(e.length*4,4)>>>0,r=h();for(let t=0;t<e.length;t++)r.setUint32(n+4*t,_(e[t]),!0);return c=e.length,n}function D(e,t){return e>>>=0,u().subarray(e/1,e/1+t)}function ce(e){try{let o=i.__wbindgen_add_to_stack_pointer(-16),s=E(e,i.__wbindgen_malloc),l=c;i.encodeFrontiers(o,s,l);var t=h().getInt32(o+0,!0),n=h().getInt32(o+4,!0),r=h().getInt32(o+8,!0);if(h().getInt32(o+12,!0))throw b(r);var a=D(t,n).slice();return i.__wbindgen_free(t,n*1,1),a}finally{i.__wbindgen_add_to_stack_pointer(16)}}function le(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=w(e,i.__wbindgen_malloc),o=c;i.decodeFrontiers(r,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function ue(){i.setDebug()}var O=128;function k(e){if(O==1)throw Error(`out of js stack`);return o[--O]=e,O}function A(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function j(e,t){e>>>=0;let n=h(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(b(n.getUint32(i,!0)));return r}function de(e,t,n){i._dyn_core_9b3796e30d99ddb7___ops__function__FnMut_______Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke___wasm_bindgen_c71729c74976bed3___JsValue_____(e,t,_(n))}function fe(e,t){i._dyn_core_9b3796e30d99ddb7___ops__function__FnMut_____Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke______(e,t)}var pe=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_awarenesswasm_free(e>>>0,1)),me=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_awarenesswasm_free(e,0)}getAllStates(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_getAllStates(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getTimestamp(e){try{let a=i.__wbindgen_add_to_stack_pointer(-32);i.awarenesswasm_getTimestamp(a,this.__wbg_ptr,_(e));var t=h().getInt32(a+0,!0),n=h().getFloat64(a+8,!0),r=h().getInt32(a+16,!0);if(h().getInt32(a+20,!0))throw b(r);return t===0?void 0:n}finally{i.__wbindgen_add_to_stack_pointer(32)}}setLocalState(e){i.awarenesswasm_setLocalState(this.__wbg_ptr,_(e))}removeOutdated(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_removeOutdated(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}constructor(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_new(a,_(e),t);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return this.__wbg_ptr=n>>>0,pe.register(this,this.__wbg_ptr,this),this}finally{i.__wbindgen_add_to_stack_pointer(16)}}peer(){return b(i.awarenesswasm_peer(this.__wbg_ptr))}apply(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=w(e,i.__wbindgen_malloc),o=c;i.awarenesswasm_apply(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}peers(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_peers(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}encode(e){try{let o=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_encode(o,this.__wbg_ptr,_(e));var t=h().getInt32(o+0,!0),n=h().getInt32(o+4,!0),r=h().getInt32(o+8,!0);if(h().getInt32(o+12,!0))throw b(r);var a=D(t,n).slice();return i.__wbindgen_free(t,n*1,1),a}finally{i.__wbindgen_add_to_stack_pointer(16)}}length(){return i.awarenesswasm_length(this.__wbg_ptr)}isEmpty(){return i.awarenesswasm_isEmpty(this.__wbg_ptr)!==0}getState(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_getState(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}encodeAll(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.awarenesswasm_encodeAll(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=D(e,t).slice();return i.__wbindgen_free(e,t*1,1),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}},he=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_changemodifier_free(e>>>0,1)),ge=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,he.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_changemodifier_free(e,0)}setMessage(t){let n=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),r=c,a=i.changemodifier_setMessage(this.__wbg_ptr,n,r);return e.__wrap(a)}setTimestamp(t){let n=i.changemodifier_setTimestamp(this.__wbg_ptr,t);return e.__wrap(n)}},_e=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_cursor_free(e>>>0,1)),M=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,_e.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_cursor_free(e,0)}containerId(){return b(i.cursor_containerId(this.__wbg_ptr))}pos(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.cursor_pos(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}kind(){return b(i.cursor_kind(this.__wbg_ptr))}side(){return b(i.cursor_side(this.__wbg_ptr))}static decode(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=w(t,i.__wbindgen_malloc),s=c;i.cursor_decode(a,o,s);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}encode(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.cursor_encode(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=D(e,t).slice();return i.__wbindgen_free(e,t*1,1),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}},N=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_ephemeralstorewasm_free(e>>>0,1)),P=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_ephemeralstorewasm_free(e,0)}getAllStates(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.ephemeralstorewasm_getAllStates(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}removeOutdated(){i.ephemeralstorewasm_removeOutdated(this.__wbg_ptr)}subscribeLocalUpdates(e){return b(i.ephemeralstorewasm_subscribeLocalUpdates(this.__wbg_ptr,_(e)))}get(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;return b(i.ephemeralstorewasm_get(this.__wbg_ptr,t,n))}constructor(e){let t=i.ephemeralstorewasm_new(e);return this.__wbg_ptr=t>>>0,N.register(this,this.__wbg_ptr,this),this}set(e,t){let n=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),r=c;i.ephemeralstorewasm_set(this.__wbg_ptr,n,r,_(t))}keys(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.ephemeralstorewasm_keys(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}apply(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16),r=w(e,i.__wbindgen_malloc),a=c;i.ephemeralstorewasm_apply(n,this.__wbg_ptr,r,a);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}delete(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;i.ephemeralstorewasm_delete(this.__wbg_ptr,t,n)}encode(e){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.ephemeralstorewasm_encode(a,this.__wbg_ptr,o,s);var t=h().getInt32(a+0,!0),n=h().getInt32(a+4,!0),r=D(t,n).slice();return i.__wbindgen_free(t,n*1,1),r}finally{i.__wbindgen_add_to_stack_pointer(16)}}isEmpty(){return i.ephemeralstorewasm_isEmpty(this.__wbg_ptr)!==0}encodeAll(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.ephemeralstorewasm_encodeAll(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=D(e,t).slice();return i.__wbindgen_free(e,t*1,1),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}subscribe(e){return b(i.ephemeralstorewasm_subscribe(this.__wbg_ptr,_(e)))}},F=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorocounter_free(e>>>0,1)),I=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,F.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorocounter_free(e,0)}isAttached(){return i.lorocounter_isAttached(this.__wbg_ptr)!==0}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_getShallowValue(n,this.__wbg_ptr);var e=h().getFloat64(n+0,!0),t=h().getInt32(n+8,!0);if(h().getInt32(n+12,!0))throw b(t);return e}finally{i.__wbindgen_add_to_stack_pointer(16)}}get id(){return b(i.lorocounter_id(this.__wbg_ptr))}constructor(){let e=i.lorocounter_new();return this.__wbg_ptr=e>>>0,F.register(this,this.__wbg_ptr,this),this}kind(){return b(i.lorocounter_kind(this.__wbg_ptr))}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_getShallowValue(n,this.__wbg_ptr);var e=h().getFloat64(n+0,!0),t=h().getInt32(n+8,!0);if(h().getInt32(n+12,!0))throw b(t);return e}finally{i.__wbindgen_add_to_stack_pointer(16)}}decrement(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_decrement(n,this.__wbg_ptr,e);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get value(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_getShallowValue(n,this.__wbg_ptr);var e=h().getFloat64(n+0,!0),t=h().getInt32(n+8,!0);if(h().getInt32(n+12,!0))throw b(t);return e}finally{i.__wbindgen_add_to_stack_pointer(16)}}increment(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_increment(n,this.__wbg_ptr,e);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorocounter_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},L=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorodoc_free(e>>>0,1)),R=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,L.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorodoc_free(e,0)}applyDiff(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_applyDiff(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isShallow(){return i.lorodoc_isShallow(this.__wbg_ptr)!==0}changeCount(){return i.lorodoc_changeCount(this.__wbg_ptr)>>>0}getByPath(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorodoc_getByPath(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getCounter(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getCounter(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return I.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}isDetached(){return i.lorodoc_isDetached(this.__wbg_ptr)!==0}get peerIdStr(){return b(i.lorodoc_peerIdStr(this.__wbg_ptr))}setPeerId(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_setPeerId(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getCursorPos(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);A(e,M),i.lorodoc_getCursorPos(r,this.__wbg_ptr,e.__wbg_ptr);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}hasContainer(e){return i.lorodoc_hasContainer(this.__wbg_ptr,_(e))!==0}importBatch(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_importBatch(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}cmpFrontiers(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=E(e,i.__wbindgen_malloc),s=c,l=E(t,i.__wbindgen_malloc),u=c;i.lorodoc_cmpFrontiers(a,this.__wbg_ptr,o,s,l,u);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}debugHistory(){i.lorodoc_debugHistory(this.__wbg_ptr)}static fromSnapshot(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=w(t,i.__wbindgen_malloc),s=c;i.lorodoc_fromSnapshot(a,o,s);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getChangeAt(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getChangeAt(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}oplogVersion(){let e=i.lorodoc_oplogVersion(this.__wbg_ptr);return Z.__wrap(e)}getMovableList(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getMovableList(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return W.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}frontiersToVV(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=E(e,i.__wbindgen_malloc),o=c;i.lorodoc_frontiersToVV(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return Z.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getAllChanges(){return b(i.lorodoc_getAllChanges(this.__wbg_ptr))}oplogFrontiers(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_oplogFrontiers(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}vvToFrontiers(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);A(e,Z),i.lorodoc_vvToFrontiers(r,this.__wbg_ptr,e.__wbg_ptr);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}shallowSinceVV(){let e=i.lorodoc_shallowSinceVV(this.__wbg_ptr);return Z.__wrap(e)}configTextStyle(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_configTextStyle(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getOpsInChange(e){try{let o=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getOpsInChange(o,this.__wbg_ptr,_(e));var t=h().getInt32(o+0,!0),n=h().getInt32(o+4,!0),r=h().getInt32(o+8,!0);if(h().getInt32(o+12,!0))throw b(r);var a=j(t,n).slice();return i.__wbindgen_free(t,n*4,4),a}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getShallowValue(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}checkoutToLatest(){try{let t=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_checkoutToLatest(t,this.__wbg_ptr);var e=h().getInt32(t+0,!0);if(h().getInt32(t+4,!0))throw b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}cmpWithFrontiers(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=E(e,i.__wbindgen_malloc),o=c;i.lorodoc_cmpWithFrontiers(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return t}finally{i.__wbindgen_add_to_stack_pointer(16)}}exportJsonInIdSpan(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_exportJsonInIdSpan(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}subscribeJsonpath(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.lorodoc_subscribeJsonpath(a,this.__wbg_ptr,o,s,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}deleteRootContainer(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_deleteRootContainer(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}exportJsonUpdates(e,t,n){try{let o=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_exportJsonUpdates(o,this.__wbg_ptr,_(e),_(t),x(n)?16777215:+!!n);var r=h().getInt32(o+0,!0),a=h().getInt32(o+4,!0);if(h().getInt32(o+8,!0))throw b(a);return b(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getContainerById(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getContainerById(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getPendingTxnLength(){return i.lorodoc_getPendingTxnLength(this.__wbg_ptr)>>>0}importJsonUpdates(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_importJsonUpdates(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}importUpdateBatch(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_importBatch(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}setDetachedEditing(e){i.lorodoc_setDetachedEditing(this.__wbg_ptr,e)}setRecordTimestamp(e){i.lorodoc_setRecordTimestamp(this.__wbg_ptr,e)}subscribePreCommit(e){return b(i.lorodoc_subscribePreCommit(this.__wbg_ptr,_(e)))}findIdSpansBetween(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=E(e,i.__wbindgen_malloc),s=c,l=E(t,i.__wbindgen_malloc),u=c;i.lorodoc_findIdSpansBetween(a,this.__wbg_ptr,o,s,l,u);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getChangeAtLamport(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.lorodoc_getChangeAtLamport(a,this.__wbg_ptr,o,s,t);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getPathToContainer(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getPathToContainer(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getChangedContainersIn(e,t){try{let s=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getChangedContainersIn(s,this.__wbg_ptr,_(e),t);var n=h().getInt32(s+0,!0),r=h().getInt32(s+4,!0),a=h().getInt32(s+8,!0);if(h().getInt32(s+12,!0))throw b(a);var o=j(n,r).slice();return i.__wbindgen_free(n,r*4,4),o}finally{i.__wbindgen_add_to_stack_pointer(16)}}getDeepValueWithID(){return b(i.lorodoc_getDeepValueWithID(this.__wbg_ptr))}setNextCommitOrigin(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;i.lorodoc_setNextCommitOrigin(this.__wbg_ptr,t,n)}getUncommittedOpsAsJson(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getUncommittedOpsAsJson(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}setNextCommitMessage(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;i.lorodoc_setNextCommitMessage(this.__wbg_ptr,t,n)}setNextCommitOptions(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_setNextCommitOptions(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}shallowSinceFrontiers(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_shallowSinceFrontiers(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}subscribeLocalUpdates(e){return b(i.lorodoc_subscribeLocalUpdates(this.__wbg_ptr,_(e)))}travelChangeAncestors(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=E(e,i.__wbindgen_malloc),o=c;i.lorodoc_travelChangeAncestors(r,this.__wbg_ptr,a,o,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}clearNextCommitOptions(){i.lorodoc_clearNextCommitOptions(this.__wbg_ptr)}configDefaultTextStyle(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_configDefaultTextStyle(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}setChangeMergeInterval(e){i.lorodoc_setChangeMergeInterval(this.__wbg_ptr,e)}setNextCommitTimestamp(e){i.lorodoc_setNextCommitTimestamp(this.__wbg_ptr,e)}setHideEmptyRootContainers(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_setHideEmptyRootContainers(n,this.__wbg_ptr,e);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDetachedEditingEnabled(){return i.lorodoc_isDetachedEditingEnabled(this.__wbg_ptr)!==0}subscribeFirstCommitFromPeer(e){return b(i.lorodoc_subscribeFirstCommitFromPeer(this.__wbg_ptr,_(e)))}constructor(){let e=i.lorodoc_new();return this.__wbg_ptr=e>>>0,L.register(this,this.__wbg_ptr,this),this}diff(e,t,n){try{let o=i.__wbindgen_add_to_stack_pointer(-16),s=E(e,i.__wbindgen_malloc),l=c,u=E(t,i.__wbindgen_malloc),d=c;i.lorodoc_diff(o,this.__wbg_ptr,s,l,u,d,x(n)?16777215:+!!n);var r=h().getInt32(o+0,!0),a=h().getInt32(o+4,!0);if(h().getInt32(o+8,!0))throw b(a);return b(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}fork(){let t=i.lorodoc_fork(this.__wbg_ptr);return e.__wrap(t)}attach(){i.lorodoc_attach(this.__wbg_ptr)}commit(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_commit(n,this.__wbg_ptr,x(e)?0:_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}detach(){i.lorodoc_detach(this.__wbg_ptr)}export(e){try{let o=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_export(o,this.__wbg_ptr,_(e));var t=h().getInt32(o+0,!0),n=h().getInt32(o+4,!0),r=h().getInt32(o+8,!0);if(h().getInt32(o+12,!0))throw b(r);var a=D(t,n).slice();return i.__wbindgen_free(t,n*1,1),a}finally{i.__wbindgen_add_to_stack_pointer(16)}}import(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=w(e,i.__wbindgen_malloc),o=c;i.lorodoc_import(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}forkAt(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=E(t,i.__wbindgen_malloc),s=c;i.lorodoc_forkAt(a,this.__wbg_ptr,o,s);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getMap(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getMap(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return H.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}opCount(){return i.lorodoc_opCount(this.__wbg_ptr)>>>0}get peerId(){let e=i.lorodoc_peerId(this.__wbg_ptr);return BigInt.asUintN(64,e)}toJSON(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_toJSON(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}version(){let e=i.lorodoc_version(this.__wbg_ptr);return Z.__wrap(e)}checkout(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16),r=E(e,i.__wbindgen_malloc),a=c;i.lorodoc_checkout(n,this.__wbg_ptr,r,a);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getList(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getList(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return B.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}getText(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getText(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return K.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}getTree(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_getTree(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return J.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}frontiers(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorodoc_frontiers(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}JSONPath(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorodoc_JSONPath(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}revertTo(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16),r=E(e,i.__wbindgen_malloc),a=c;i.lorodoc_revertTo(n,this.__wbg_ptr,r,a);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}subscribe(e){return b(i.lorodoc_subscribe(this.__wbg_ptr,_(e)))}},z=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorolist_free(e>>>0,1)),B=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,z.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorolist_free(e,0)}isAttached(){return i.lorolist_isAttached(this.__wbg_ptr)!==0}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}pushContainer(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_pushContainer(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}insertContainer(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_insertContainer(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){return b(i.lorolist_getShallowValue(this.__wbg_ptr))}get id(){return b(i.lorolist_id(this.__wbg_ptr))}get(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_get(r,this.__wbg_ptr,e);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}constructor(){let e=i.lorolist_new();return this.__wbg_ptr=e>>>0,z.register(this,this.__wbg_ptr,this),this}pop(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_pop(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}kind(){return b(i.lorolist_kind(this.__wbg_ptr))}push(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_push(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}clear(){try{let t=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_clear(t,this.__wbg_ptr);var e=h().getInt32(t+0,!0);if(h().getInt32(t+4,!0))throw b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}delete(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_delete(r,this.__wbg_ptr,e,t);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}insert(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_insert(r,this.__wbg_ptr,e,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get length(){return i.lorolist_length(this.__wbg_ptr)>>>0}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getIdAt(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_getIdAt(r,this.__wbg_ptr,e);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.lorolist_toJSON(this.__wbg_ptr))}toArray(){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_toArray(a,this.__wbg_ptr);var e=h().getInt32(a+0,!0),t=h().getInt32(a+4,!0),n=h().getInt32(a+8,!0);if(h().getInt32(a+12,!0))throw b(n);var r=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),r}finally{i.__wbindgen_add_to_stack_pointer(16)}}getCursor(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_getCursor(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return n===0?void 0:M.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDeleted(){return i.lorolist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorolist_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},V=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_loromap_free(e>>>0,1)),H=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,V.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_loromap_free(e,0)}isAttached(){return i.loromap_isAttached(this.__wbg_ptr)!==0}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getLastEditor(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;return b(i.loromap_getLastEditor(this.__wbg_ptr,t,n))}setContainer(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.loromap_setContainer(a,this.__wbg_ptr,o,s,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){return b(i.loromap_getShallowValue(this.__wbg_ptr))}ensureMergeableMap(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.loromap_ensureMergeableMap(a,this.__wbg_ptr,o,s);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}ensureMergeableList(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_ensureMergeableList(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return B.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}ensureMergeableText(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_ensureMergeableText(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return K.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}ensureMergeableTree(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_ensureMergeableTree(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return J.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getOrCreateContainer(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.loromap_getOrCreateContainer(a,this.__wbg_ptr,o,s,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}ensureMergeableCounter(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_ensureMergeableCounter(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return I.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}ensureMergeableMovableList(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_ensureMergeableMovableList(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return W.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get id(){return b(i.loromap_id(this.__wbg_ptr))}get(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_get(r,this.__wbg_ptr,a,o);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}constructor(){let e=i.loromap_new();return this.__wbg_ptr=e>>>0,V.register(this,this.__wbg_ptr,this),this}keys(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_keys(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}kind(){return b(i.loromap_kind(this.__wbg_ptr))}get size(){return i.loromap_size(this.__wbg_ptr)>>>0}clear(){try{let t=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_clear(t,this.__wbg_ptr);var e=h().getInt32(t+0,!0);if(h().getInt32(t+4,!0))throw b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}delete(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16),r=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),a=c;i.loromap_delete(n,this.__wbg_ptr,r,a);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}set(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.loromap_set(r,this.__wbg_ptr,a,o,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}values(){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_values(a,this.__wbg_ptr);var e=h().getInt32(a+0,!0),t=h().getInt32(a+4,!0),n=h().getInt32(a+8,!0);if(h().getInt32(a+12,!0))throw b(n);var r=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),r}finally{i.__wbindgen_add_to_stack_pointer(16)}}entries(){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_entries(a,this.__wbg_ptr);var e=h().getInt32(a+0,!0),t=h().getInt32(a+4,!0),n=h().getInt32(a+8,!0);if(h().getInt32(a+12,!0))throw b(n);var r=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),r}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.loromap_toJSON(this.__wbg_ptr))}isDeleted(){return i.loromap_isDeleted(this.__wbg_ptr)!==0}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromap_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},U=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_loromovablelist_free(e>>>0,1)),W=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,U.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_loromovablelist_free(e,0)}isAttached(){return i.loromovablelist_isAttached(this.__wbg_ptr)!==0}getCreatorAt(e){return b(i.loromovablelist_getCreatorAt(this.__wbg_ptr,e))}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}setContainer(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_setContainer(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getLastMoverAt(e){return b(i.loromovablelist_getLastMoverAt(this.__wbg_ptr,e))}pushContainer(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_pushContainer(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getLastEditorAt(e){return b(i.loromovablelist_getLastEditorAt(this.__wbg_ptr,e))}insertContainer(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_insertContainer(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){return b(i.loromovablelist_getShallowValue(this.__wbg_ptr))}get id(){return b(i.loromovablelist_id(this.__wbg_ptr))}get(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_get(r,this.__wbg_ptr,e);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}move(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_move(r,this.__wbg_ptr,e,t);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}constructor(){let e=i.loromovablelist_new();return this.__wbg_ptr=e>>>0,U.register(this,this.__wbg_ptr,this),this}pop(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_pop(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}set(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_set(r,this.__wbg_ptr,e,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}kind(){return b(i.loromovablelist_kind(this.__wbg_ptr))}push(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_push(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}clear(){try{let t=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_clear(t,this.__wbg_ptr);var e=h().getInt32(t+0,!0);if(h().getInt32(t+4,!0))throw b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}delete(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_delete(r,this.__wbg_ptr,e,t);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}insert(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_insert(r,this.__wbg_ptr,e,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get length(){return i.loromovablelist_length(this.__wbg_ptr)>>>0}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.loromovablelist_toJSON(this.__wbg_ptr))}toArray(){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_toArray(a,this.__wbg_ptr);var e=h().getInt32(a+0,!0),t=h().getInt32(a+4,!0),n=h().getInt32(a+8,!0);if(h().getInt32(a+12,!0))throw b(n);var r=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),r}finally{i.__wbindgen_add_to_stack_pointer(16)}}getCursor(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_getCursor(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return n===0?void 0:M.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDeleted(){return i.loromovablelist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.loromovablelist_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},G=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorotext_free(e>>>0,1)),K=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,G.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorotext_free(e,0)}applyDelta(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_applyDelta(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}convertPos(e,t,n){let r=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),a=c,o=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;return b(i.lorotext_convertPos(this.__wbg_ptr,e,r,a,o,s))}deleteUtf8(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_deleteUtf8(r,this.__wbg_ptr,e,t);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getEditorOf(e){return b(i.lorotext_getEditorOf(this.__wbg_ptr,e))}insertUtf8(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorotext_insertUtf8(r,this.__wbg_ptr,e,a,o);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isAttached(){return i.lorotext_isAttached(this.__wbg_ptr)!==0}sliceDelta(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_sliceDelta(a,this.__wbg_ptr,e,t);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}updateByLine(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorotext_updateByLine(r,this.__wbg_ptr,a,o,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}sliceDeltaUtf8(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_sliceDeltaUtf8(a,this.__wbg_ptr,e,t);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getShallowValue(){let e,t;try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_getShallowValue(a,this.__wbg_ptr);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);return e=n,t=r,y(n,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(e,t,1)}}get id(){return b(i.lorotext_id(this.__wbg_ptr))}constructor(){let e=i.lorotext_new();return this.__wbg_ptr=e>>>0,G.register(this,this.__wbg_ptr,this),this}iter(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_iter(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}kind(){return b(i.lorotext_kind(this.__wbg_ptr))}mark(e,t,n){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),s=c;i.lorotext_mark(a,this.__wbg_ptr,_(e),o,s,_(n));var r=h().getInt32(a+0,!0);if(h().getInt32(a+4,!0))throw b(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}push(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16),r=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),a=c;i.lorotext_push(n,this.__wbg_ptr,r,a);var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}slice(e,t){let n,r;try{let d=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_slice(d,this.__wbg_ptr,e,t);var a=h().getInt32(d+0,!0),o=h().getInt32(d+4,!0),s=h().getInt32(d+8,!0),c=h().getInt32(d+12,!0),l=a,u=o;if(c)throw l=0,u=0,b(s);return n=l,r=u,y(l,u)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(n,r,1)}}delete(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_delete(r,this.__wbg_ptr,e,t);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}insert(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorotext_insert(r,this.__wbg_ptr,e,a,o);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get length(){return i.lorotext_length(this.__wbg_ptr)>>>0}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}splice(e,t,n){let r,a;try{let m=i.__wbindgen_add_to_stack_pointer(-16),g=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),_=c;i.lorotext_splice(m,this.__wbg_ptr,e,t,g,_);var o=h().getInt32(m+0,!0),s=h().getInt32(m+4,!0),l=h().getInt32(m+8,!0),u=h().getInt32(m+12,!0),d=o,f=s;if(u)throw d=0,f=0,b(l);return r=d,a=f,y(d,f)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(r,a,1)}}unmark(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorotext_unmark(r,this.__wbg_ptr,_(e),a,o);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}update(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16),a=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;i.lorotext_update(r,this.__wbg_ptr,a,o,_(t));var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}charAt(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_charAt(r,this.__wbg_ptr,e);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return String.fromCodePoint(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.lorotext_toJSON(this.__wbg_ptr))}toDelta(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_toDelta(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getCursor(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_getCursor(a,this.__wbg_ptr,e,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return n===0?void 0:M.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDeleted(){return i.lorotext_isDeleted(this.__wbg_ptr)!==0}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toString(){let e,t;try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotext_toString(a,this.__wbg_ptr);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);return e=n,t=r,y(n,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(e,t,1)}}},q=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorotree_free(e>>>0,1)),J=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,q.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorotree_free(e,0)}createNode(e,t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_createNode(a,this.__wbg_ptr,k(e),x(t)?4294967297:t>>>0);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return Y.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}isAttached(){return i.lorotree_isAttached(this.__wbg_ptr)!==0}getAttached(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_getAttached(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getNodeByID(e){try{let t=i.lorotree_getNodeByID(this.__wbg_ptr,k(e));return t===0?void 0:Y.__wrap(t)}finally{o[O++]=void 0}}isNodeDeleted(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_isNodeDeleted(r,this.__wbg_ptr,k(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return t!==0}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}getShallowValue(){return b(i.lorotree_getShallowValue(this.__wbg_ptr))}enableFractionalIndex(e){i.lorotree_enableFractionalIndex(this.__wbg_ptr,e)}disableFractionalIndex(){i.lorotree_disableFractionalIndex(this.__wbg_ptr)}isFractionalIndexEnabled(){return i.lorotree_isFractionalIndexEnabled(this.__wbg_ptr)!==0}get id(){return b(i.lorotree_id(this.__wbg_ptr))}move(e,t,n){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_move(a,this.__wbg_ptr,k(e),k(t),x(n)?4294967297:n>>>0);var r=h().getInt32(a+0,!0);if(h().getInt32(a+4,!0))throw b(r)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0,o[O++]=void 0}}constructor(){let e=i.lorotree_new();return this.__wbg_ptr=e>>>0,q.register(this,this.__wbg_ptr,this),this}kind(){return b(i.lorotree_kind(this.__wbg_ptr))}nodes(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_nodes(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}roots(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_roots(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=j(e,t).slice();return i.__wbindgen_free(e,t*4,4),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}delete(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_delete(n,this.__wbg_ptr,k(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}parent(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_parent(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.lorotree_toJSON(this.__wbg_ptr))}has(e){try{return i.lorotree_has(this.__wbg_ptr,k(e))!==0}finally{o[O++]=void 0}}toArray(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_toArray(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getNodes(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_getNodes(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDeleted(){return i.lorotree_isDeleted(this.__wbg_ptr)!==0}subscribe(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotree_subscribe(r,this.__wbg_ptr,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},ve=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_lorotreenode_free(e>>>0,1)),Y=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,ve.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ve.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_lorotreenode_free(e,0)}__getClassname(){let e,t;try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode___getClassname(a,this.__wbg_ptr);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);return e=n,t=r,y(n,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(e,t,1)}}creationId(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_creationId(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}isDeleted(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_isDeleted(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return e!==0}finally{i.__wbindgen_add_to_stack_pointer(16)}}moveBefore(t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);A(t,e),i.lorotreenode_moveBefore(r,this.__wbg_ptr,t.__wbg_ptr);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}createNode(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_createNode(a,this.__wbg_ptr,x(t)?4294967297:t>>>0);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}getLastMoveId(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_getLastMoveId(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_toJSON(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}fractionalIndex(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_fractionalIndex(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}get id(){return b(i.lorotreenode_id(this.__wbg_ptr))}move(e,t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_move(r,this.__wbg_ptr,k(e),x(t)?4294967297:t>>>0);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16),o[O++]=void 0}}get data(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_data(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return H.__wrap(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}index(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_index(n,this.__wbg_ptr);var e=h().getFloat64(n+0,!0),t=h().getInt32(n+8,!0);if(h().getInt32(n+12,!0))throw b(t);return e===4294967297?void 0:e}finally{i.__wbindgen_add_to_stack_pointer(16)}}parent(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.lorotreenode_parent(r,this.__wbg_ptr);var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return t===0?void 0:e.__wrap(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}creator(){return b(i.lorotreenode_creator(this.__wbg_ptr))}children(){return b(i.lorotreenode_children(this.__wbg_ptr))}moveAfter(t){try{let r=i.__wbindgen_add_to_stack_pointer(-16);A(t,e),i.lorotreenode_moveAfter(r,this.__wbg_ptr,t.__wbg_ptr);var n=h().getInt32(r+0,!0);if(h().getInt32(r+4,!0))throw b(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}},ye=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_undomanager_free(e>>>0,1)),be=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ye.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_undomanager_free(e,0)}groupStart(){try{let t=i.__wbindgen_add_to_stack_pointer(-16);i.undomanager_groupStart(t,this.__wbg_ptr);var e=h().getInt32(t+0,!0);if(h().getInt32(t+4,!0))throw b(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}topRedoValue(){return b(i.undomanager_topRedoValue(this.__wbg_ptr))}topUndoValue(){return b(i.undomanager_topUndoValue(this.__wbg_ptr))}setMaxUndoSteps(e){i.undomanager_setMaxUndoSteps(this.__wbg_ptr,e)}setMergeInterval(e){i.undomanager_setMergeInterval(this.__wbg_ptr,e)}addExcludeOriginPrefix(e){let t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=c;i.undomanager_addExcludeOriginPrefix(this.__wbg_ptr,t,n)}constructor(e,t){A(e,R);let n=i.undomanager_new(e.__wbg_ptr,_(t));return this.__wbg_ptr=n>>>0,ye.register(this,this.__wbg_ptr,this),this}peer(){return b(i.undomanager_peer(this.__wbg_ptr))}redo(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.undomanager_redo(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return e!==0}finally{i.__wbindgen_add_to_stack_pointer(16)}}undo(){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.undomanager_undo(n,this.__wbg_ptr);var e=h().getInt32(n+0,!0),t=h().getInt32(n+4,!0);if(h().getInt32(n+8,!0))throw b(t);return e!==0}finally{i.__wbindgen_add_to_stack_pointer(16)}}clear(){i.undomanager_clear(this.__wbg_ptr)}pause(){i.undomanager_pause(this.__wbg_ptr)}resume(){i.undomanager_resume(this.__wbg_ptr)}canRedo(){return i.undomanager_canRedo(this.__wbg_ptr)!==0}canUndo(){return i.undomanager_canUndo(this.__wbg_ptr)!==0}groupEnd(){i.undomanager_groupEnd(this.__wbg_ptr)}isPaused(){return i.undomanager_isPaused(this.__wbg_ptr)!==0}setOnPop(e){i.undomanager_setOnPop(this.__wbg_ptr,_(e))}clearRedo(){i.undomanager_clearRedo(this.__wbg_ptr)}clearUndo(){i.undomanager_clearUndo(this.__wbg_ptr)}setOnPush(e){i.undomanager_setOnPush(this.__wbg_ptr,_(e))}},X=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>i.__wbg_versionvector_free(e>>>0,1)),Z=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,X.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_versionvector_free(e,0)}get(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_get(r,this.__wbg_ptr,_(e));var t=h().getFloat64(r+0,!0),n=h().getInt32(r+8,!0);if(h().getInt32(r+12,!0))throw b(n);return t===4294967297?void 0:t}finally{i.__wbindgen_add_to_stack_pointer(16)}}constructor(e){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_new(r,_(e));var t=h().getInt32(r+0,!0),n=h().getInt32(r+4,!0);if(h().getInt32(r+8,!0))throw b(n);return this.__wbg_ptr=t>>>0,X.register(this,this.__wbg_ptr,this),this}finally{i.__wbindgen_add_to_stack_pointer(16)}}static decode(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16),o=w(t,i.__wbindgen_malloc),s=c;i.versionvector_decode(a,o,s);var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}encode(){try{let r=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_encode(r,this.__wbg_ptr);var e=h().getInt32(r+0,!0),t=h().getInt32(r+4,!0),n=D(e,t).slice();return i.__wbindgen_free(e,t*1,1),n}finally{i.__wbindgen_add_to_stack_pointer(16)}}length(){return i.versionvector_length(this.__wbg_ptr)>>>0}remove(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_remove(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}setEnd(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_setEnd(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}compare(t){A(t,e);let n=i.versionvector_compare(this.__wbg_ptr,t.__wbg_ptr);return n===4294967297?void 0:n}setLast(e){try{let n=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_setLast(n,this.__wbg_ptr,_(e));var t=h().getInt32(n+0,!0);if(h().getInt32(n+4,!0))throw b(t)}finally{i.__wbindgen_add_to_stack_pointer(16)}}toJSON(){return b(i.versionvector_toJSON(this.__wbg_ptr))}static parseJSON(t){try{let a=i.__wbindgen_add_to_stack_pointer(-16);i.versionvector_parseJSON(a,_(t));var n=h().getInt32(a+0,!0),r=h().getInt32(a+4,!0);if(h().getInt32(a+8,!0))throw b(r);return e.__wrap(n)}finally{i.__wbindgen_add_to_stack_pointer(16)}}};function xe(e,t){let n=p(String(s(t)),i.__wbindgen_malloc,i.__wbindgen_realloc),r=c;h().setInt32(e+4,r,!0),h().setInt32(e+0,n,!0)}function Se(){return v(function(e,t,n){return _(s(e).apply(s(t),s(n)))},arguments)}function Ce(){return v(function(e,t,n){return _(Reflect.apply(s(e),s(t),s(n)))},arguments)}function we(e){let t=s(e).buffer;return _(t)}function Te(){return v(function(e,t){return _(s(e).call(s(t)))},arguments)}function Ee(){return v(function(e,t,n){return _(s(e).call(s(t),s(n)))},arguments)}function De(){return v(function(e,t,n,r){return _(s(e).call(s(t),s(n),s(r)))},arguments)}function Oe(){return v(function(e,t,n,r,i){return _(s(e).call(s(t),s(n),s(r),s(i)))},arguments)}function ke(e){return _(ge.__wrap(e))}function Ae(e){let t=s(e).crypto;return _(t)}function je(e){return _(M.__wrap(e))}function Me(e){return s(e).done}function Ne(e){return _(Object.entries(s(e)))}function Pe(e){return _(s(e).entries())}function Fe(e,t){console.error(y(e,t))}function Ie(e){return _(Array.from(s(e)))}function Le(e){return _(Object.getOwnPropertySymbols(s(e)))}function Re(){return v(function(e,t){s(e).getRandomValues(s(t))},arguments)}function ze(){return v(function(e,t){return _(Reflect.get(s(e),s(t)))},arguments)}function Be(e,t){let n=s(e)[t>>>0];return _(n)}function Ve(e,t){return s(e)[t>>>0]}function He(e,t){let n=s(e)[s(t)];return _(n)}function Ue(e){let t;try{t=s(e)instanceof ArrayBuffer}catch{t=!1}return t}function We(e){let t;try{t=s(e)instanceof Map}catch{t=!1}return t}function Ge(e){let t;try{t=s(e)instanceof Object}catch{t=!1}return t}function Ke(e){let t;try{t=s(e)instanceof Uint8Array}catch{t=!1}return t}function qe(e){return Array.isArray(s(e))}function Je(e){return Number.isSafeInteger(s(e))}function Ye(){let e=Symbol.iterator;return _(e)}function Xe(e){return s(e).length}function Ze(e){return s(e).length}function Qe(e,t,n,r,a,o,s,c){let l,u;try{l=e,u=t,console.log(y(e,t),y(n,r),y(a,o),y(s,c))}finally{i.__wbindgen_free(l,u,1)}}function $e(e,t){console.log(y(e,t))}function et(e,t){let n,r;try{n=e,r=t,console.log(y(e,t))}finally{i.__wbindgen_free(n,r,1)}}function tt(e){return _(I.__wrap(e))}function nt(e){return _(B.__wrap(e))}function rt(e){return _(H.__wrap(e))}function it(e){return _(W.__wrap(e))}function at(e){return _(K.__wrap(e))}function ot(e){return _(J.__wrap(e))}function st(e){return _(Y.__wrap(e))}function ct(e,t){performance.mark(y(e,t))}function lt(){return v(function(e,t,n,r){let a,o,s,c;try{a=e,o=t,s=n,c=r,performance.measure(y(e,t),y(n,r))}finally{i.__wbindgen_free(a,o,1),i.__wbindgen_free(s,c,1)}},arguments)}function ut(e){let t=s(e).msCrypto;return _(t)}function dt(){return _({})}function ft(){return _(new Map)}function pt(){return _([])}function mt(e){return _(new Uint8Array(s(e)))}function ht(e,t){return _(Error(y(e,t)))}function gt(e,t){return _(Function(y(e,t)))}function _t(e,t,n){return _(new Uint8Array(s(e),t>>>0,n>>>0))}function vt(e){return _(new Uint8Array(e>>>0))}function yt(e){return _(Array(e>>>0))}function bt(e){let t=s(e).next;return _(t)}function xt(){return v(function(e){return _(s(e).next())},arguments)}function St(e){let t=s(e).node;return _(t)}function Ct(){return Date.now()}function wt(){return v(function(e){return _(Reflect.ownKeys(s(e)))},arguments)}function Tt(e){let t=s(e).process;return _(t)}function Et(e,t){return s(e).push(s(t))}function Dt(){return v(function(e,t){s(e).randomFillSync(b(t))},arguments)}function Ot(){return v(function(){let e=module.require;return _(e)},arguments)}function kt(e){return _(Promise.resolve(s(e)))}function At(e,t,n){s(e)[t>>>0]=b(n)}function jt(e,t,n){s(e)[b(t)]=b(n)}function Mt(e,t,n){s(e).set(s(t),n>>>0)}function Nt(e,t,n){return _(s(e).set(s(t),s(n)))}function Pt(){return v(function(e,t,n){return Reflect.set(s(e),s(t),s(n))},arguments)}function Ft(e,t,n){s(e)[t>>>0]=n}function It(){let e=typeof global>`u`?null:global;return x(e)?0:_(e)}function Lt(){let e=typeof globalThis>`u`?null:globalThis;return x(e)?0:_(e)}function Rt(){let e=typeof self>`u`?null:self;return x(e)?0:_(e)}function zt(){let e=typeof window>`u`?null:window;return x(e)?0:_(e)}function Bt(e,t,n){return _(s(e).subarray(t>>>0,n>>>0))}function Vt(e,t){return _(s(e).then(s(t)))}function Ht(e){let t=s(e).value;return _(t)}function Ut(e){let t=s(e).versions;return _(t)}function Wt(e){return _(Z.__wrap(e))}function Gt(e,t){console.warn(y(e,t))}function Kt(e){return+s(e)}function qt(e){return _(e)}function Jt(e){return _(BigInt.asUintN(64,e))}function Yt(e,t){let n=s(t),r=typeof n==`bigint`?n:void 0;h().setBigInt64(e+8,x(r)?BigInt(0):r,!0),h().setInt32(e+0,!x(r),!0)}function Xt(e){let t=s(e);return typeof t==`boolean`?+!!t:2}function Zt(e){let t=b(e).original;return t.cnt--==1&&(t.a=0,!0)}function Qt(e,t,n){return _(ne(e,t,14,de))}function $t(e,t,n){return _(ne(e,t,14,fe))}function en(e,t){let n=p(C(s(t)),i.__wbindgen_malloc,i.__wbindgen_realloc),r=c;h().setInt32(e+4,r,!0),h().setInt32(e+0,n,!0)}function tn(e,t){return _(Error(y(e,t)))}function nn(e,t){return s(e)in s(t)}function rn(e){return Array.isArray(s(e))}function an(e){return typeof s(e)==`bigint`}function on(e){return typeof s(e)==`function`}function sn(e){return s(e)===null}function cn(e){let t=s(e);return typeof t==`object`&&!!t}function ln(e){return typeof s(e)==`string`}function un(e){return s(e)===void 0}function dn(e,t){return s(e)===s(t)}function fn(e,t){return s(e)==s(t)}function pn(){let e=i.memory;return _(e)}function mn(e,t){let n=s(t),r=typeof n==`number`?n:void 0;h().setFloat64(e+8,x(r)?0:r,!0),h().setInt32(e+0,!x(r),!0)}function hn(e){return _(e)}function gn(e){return _(s(e))}function _n(e){b(e)}function vn(e){throw b(e)}function yn(e,t){let n=s(t),r=typeof n==`string`?n:void 0;var a=x(r)?0:p(r,i.__wbindgen_malloc,i.__wbindgen_realloc),o=c;h().setInt32(e+4,o,!0),h().setInt32(e+0,a,!0)}function bn(e,t){return _(y(e,t))}function xn(e,t){throw Error(y(e,t))}function Sn(e){return _(typeof s(e))}var Q=Symbol(`loroContainerId`);function Cn(e){let t=e.prototype,n=Object.getOwnPropertyDescriptor(t,`id`),r=n&&n.get,i=Object.getOwnPropertyDescriptor(t,`__destroy_into_raw`),a=i&&i.value;if(!r||!i||!a)throw Error(`Unexpected wasm-bindgen container wrapper shape`);Object.defineProperty(t,"id",{...n,get(){if(this.__wbg_ptr===0)return r.call(this);let e=this[Q];if(e!==void 0)return e;let t=r.call(this);try{Object.defineProperty(this,Q,{configurable:!0,value:t})}catch{}return t}}),Object.defineProperty(t,"__destroy_into_raw",{...i,value(){try{delete this[Q]}catch{}return a.call(this)}})}for(let e of[H,K,B,J,W,I])Cn(e);var wn=e({LORO_VERSION:()=>En,__wbg_awarenesswasm_free:()=>Dn,__wbg_changemodifier_free:()=>On,__wbg_cursor_free:()=>kn,__wbg_ephemeralstorewasm_free:()=>An,__wbg_lorocounter_free:()=>jn,__wbg_lorodoc_free:()=>Mn,__wbg_lorolist_free:()=>Nn,__wbg_loromap_free:()=>Pn,__wbg_loromovablelist_free:()=>Ec,__wbg_lorotext_free:()=>Fn,__wbg_lorotree_free:()=>In,__wbg_lorotreenode_free:()=>Ln,__wbg_undomanager_free:()=>Rn,__wbg_versionvector_free:()=>zn,__wbindgen_add_to_stack_pointer:()=>Pc,__wbindgen_exn_store:()=>jc,__wbindgen_export_4:()=>Nc,__wbindgen_free:()=>Mc,__wbindgen_malloc:()=>kc,__wbindgen_realloc:()=>Ac,__wbindgen_start:()=>Lc,_dyn_core_9b3796e30d99ddb7___ops__function__FnMut_____Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke______:()=>Ic,_dyn_core_9b3796e30d99ddb7___ops__function__FnMut_______Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke___wasm_bindgen_c71729c74976bed3___JsValue_____:()=>Fc,awarenesswasm_apply:()=>Bn,awarenesswasm_encode:()=>Vn,awarenesswasm_encodeAll:()=>Hn,awarenesswasm_getAllStates:()=>Un,awarenesswasm_getState:()=>Wn,awarenesswasm_getTimestamp:()=>Gn,awarenesswasm_isEmpty:()=>Kn,awarenesswasm_length:()=>qn,awarenesswasm_new:()=>Jn,awarenesswasm_peer:()=>Yn,awarenesswasm_peers:()=>Xn,awarenesswasm_removeOutdated:()=>Zn,awarenesswasm_setLocalState:()=>Qn,callPendingEvents:()=>$n,changemodifier_setMessage:()=>er,changemodifier_setTimestamp:()=>tr,cursor_containerId:()=>nr,cursor_decode:()=>rr,cursor_encode:()=>ir,cursor_kind:()=>ar,cursor_pos:()=>or,cursor_side:()=>sr,decodeFrontiers:()=>cr,decodeImportBlobMeta:()=>lr,encodeFrontiers:()=>ur,ephemeralstorewasm_apply:()=>dr,ephemeralstorewasm_delete:()=>fr,ephemeralstorewasm_encode:()=>pr,ephemeralstorewasm_encodeAll:()=>mr,ephemeralstorewasm_get:()=>hr,ephemeralstorewasm_getAllStates:()=>gr,ephemeralstorewasm_isEmpty:()=>_r,ephemeralstorewasm_keys:()=>vr,ephemeralstorewasm_new:()=>yr,ephemeralstorewasm_removeOutdated:()=>br,ephemeralstorewasm_set:()=>xr,ephemeralstorewasm_subscribe:()=>Sr,ephemeralstorewasm_subscribeLocalUpdates:()=>Cr,isValidContainerId:()=>wr,lorocounter_decrement:()=>Tr,lorocounter_getAttached:()=>Er,lorocounter_getShallowValue:()=>Dr,lorocounter_id:()=>Or,lorocounter_increment:()=>kr,lorocounter_isAttached:()=>Ar,lorocounter_kind:()=>jr,lorocounter_new:()=>Mr,lorocounter_parent:()=>Nr,lorocounter_subscribe:()=>Pr,lorocounter_toJSON:()=>Dc,lorocounter_value:()=>Oc,lorodoc_JSONPath:()=>Fr,lorodoc_applyDiff:()=>Ir,lorodoc_attach:()=>Lr,lorodoc_changeCount:()=>Rr,lorodoc_checkout:()=>zr,lorodoc_checkoutToLatest:()=>Br,lorodoc_clearNextCommitOptions:()=>Vr,lorodoc_cmpFrontiers:()=>Hr,lorodoc_cmpWithFrontiers:()=>Ur,lorodoc_commit:()=>Wr,lorodoc_configDefaultTextStyle:()=>Gr,lorodoc_configTextStyle:()=>Kr,lorodoc_debugHistory:()=>qr,lorodoc_deleteRootContainer:()=>Jr,lorodoc_detach:()=>Yr,lorodoc_diff:()=>Xr,lorodoc_export:()=>Zr,lorodoc_exportJsonInIdSpan:()=>Qr,lorodoc_exportJsonUpdates:()=>$r,lorodoc_findIdSpansBetween:()=>ei,lorodoc_fork:()=>ti,lorodoc_forkAt:()=>ni,lorodoc_fromSnapshot:()=>ri,lorodoc_frontiers:()=>ii,lorodoc_frontiersToVV:()=>ai,lorodoc_getAllChanges:()=>oi,lorodoc_getByPath:()=>si,lorodoc_getChangeAt:()=>ci,lorodoc_getChangeAtLamport:()=>li,lorodoc_getChangedContainersIn:()=>ui,lorodoc_getContainerById:()=>di,lorodoc_getCounter:()=>fi,lorodoc_getCursorPos:()=>pi,lorodoc_getDeepValueWithID:()=>mi,lorodoc_getList:()=>hi,lorodoc_getMap:()=>gi,lorodoc_getMovableList:()=>_i,lorodoc_getOpsInChange:()=>vi,lorodoc_getPathToContainer:()=>yi,lorodoc_getPendingTxnLength:()=>bi,lorodoc_getShallowValue:()=>xi,lorodoc_getText:()=>Si,lorodoc_getTree:()=>Ci,lorodoc_getUncommittedOpsAsJson:()=>wi,lorodoc_hasContainer:()=>Ti,lorodoc_import:()=>Ei,lorodoc_importBatch:()=>Di,lorodoc_importJsonUpdates:()=>Oi,lorodoc_importUpdateBatch:()=>Tc,lorodoc_isDetached:()=>ki,lorodoc_isDetachedEditingEnabled:()=>Ai,lorodoc_isShallow:()=>ji,lorodoc_new:()=>Mi,lorodoc_opCount:()=>Ni,lorodoc_oplogFrontiers:()=>Pi,lorodoc_oplogVersion:()=>Fi,lorodoc_peerId:()=>Ii,lorodoc_peerIdStr:()=>Li,lorodoc_revertTo:()=>Ri,lorodoc_setChangeMergeInterval:()=>zi,lorodoc_setDetachedEditing:()=>Bi,lorodoc_setHideEmptyRootContainers:()=>Vi,lorodoc_setNextCommitMessage:()=>Hi,lorodoc_setNextCommitOptions:()=>Ui,lorodoc_setNextCommitOrigin:()=>Wi,lorodoc_setNextCommitTimestamp:()=>Gi,lorodoc_setPeerId:()=>Ki,lorodoc_setRecordTimestamp:()=>qi,lorodoc_shallowSinceFrontiers:()=>Ji,lorodoc_shallowSinceVV:()=>Yi,lorodoc_subscribe:()=>Xi,lorodoc_subscribeFirstCommitFromPeer:()=>Zi,lorodoc_subscribeJsonpath:()=>Qi,lorodoc_subscribeLocalUpdates:()=>$i,lorodoc_subscribePreCommit:()=>ea,lorodoc_toJSON:()=>ta,lorodoc_travelChangeAncestors:()=>na,lorodoc_version:()=>ra,lorodoc_vvToFrontiers:()=>ia,lorolist_clear:()=>aa,lorolist_delete:()=>oa,lorolist_get:()=>sa,lorolist_getAttached:()=>ca,lorolist_getCursor:()=>la,lorolist_getIdAt:()=>ua,lorolist_getShallowValue:()=>da,lorolist_id:()=>fa,lorolist_insert:()=>pa,lorolist_insertContainer:()=>ma,lorolist_isAttached:()=>ha,lorolist_isDeleted:()=>ga,lorolist_kind:()=>_a,lorolist_length:()=>va,lorolist_new:()=>ya,lorolist_parent:()=>ba,lorolist_pop:()=>xa,lorolist_push:()=>Sa,lorolist_pushContainer:()=>Ca,lorolist_subscribe:()=>wa,lorolist_toArray:()=>Ta,lorolist_toJSON:()=>Ea,loromap_clear:()=>Da,loromap_delete:()=>Oa,loromap_ensureMergeableCounter:()=>ka,loromap_ensureMergeableList:()=>Aa,loromap_ensureMergeableMap:()=>ja,loromap_ensureMergeableMovableList:()=>Ma,loromap_ensureMergeableText:()=>Na,loromap_ensureMergeableTree:()=>Pa,loromap_entries:()=>Fa,loromap_get:()=>Ia,loromap_getAttached:()=>La,loromap_getLastEditor:()=>Ra,loromap_getOrCreateContainer:()=>za,loromap_getShallowValue:()=>Ba,loromap_id:()=>Va,loromap_isAttached:()=>Ha,loromap_isDeleted:()=>Ua,loromap_keys:()=>Wa,loromap_kind:()=>Ga,loromap_new:()=>Ka,loromap_parent:()=>qa,loromap_set:()=>Ja,loromap_setContainer:()=>Ya,loromap_size:()=>Xa,loromap_subscribe:()=>Za,loromap_toJSON:()=>Qa,loromap_values:()=>$a,loromovablelist_clear:()=>eo,loromovablelist_delete:()=>to,loromovablelist_get:()=>no,loromovablelist_getAttached:()=>ro,loromovablelist_getCreatorAt:()=>io,loromovablelist_getCursor:()=>ao,loromovablelist_getLastEditorAt:()=>oo,loromovablelist_getLastMoverAt:()=>so,loromovablelist_getShallowValue:()=>co,loromovablelist_id:()=>lo,loromovablelist_insert:()=>uo,loromovablelist_insertContainer:()=>fo,loromovablelist_isAttached:()=>po,loromovablelist_isDeleted:()=>mo,loromovablelist_kind:()=>ho,loromovablelist_length:()=>go,loromovablelist_move:()=>_o,loromovablelist_new:()=>vo,loromovablelist_parent:()=>yo,loromovablelist_pop:()=>bo,loromovablelist_push:()=>xo,loromovablelist_pushContainer:()=>So,loromovablelist_set:()=>Co,loromovablelist_setContainer:()=>wo,loromovablelist_subscribe:()=>To,loromovablelist_toArray:()=>Eo,loromovablelist_toJSON:()=>Do,lorotext_applyDelta:()=>Oo,lorotext_charAt:()=>ko,lorotext_convertPos:()=>Ao,lorotext_delete:()=>jo,lorotext_deleteUtf8:()=>Mo,lorotext_getAttached:()=>No,lorotext_getCursor:()=>Po,lorotext_getEditorOf:()=>Fo,lorotext_getShallowValue:()=>Io,lorotext_id:()=>Lo,lorotext_insert:()=>Ro,lorotext_insertUtf8:()=>zo,lorotext_isAttached:()=>Bo,lorotext_isDeleted:()=>Vo,lorotext_iter:()=>Ho,lorotext_kind:()=>Uo,lorotext_length:()=>Wo,lorotext_mark:()=>Go,lorotext_new:()=>Ko,lorotext_parent:()=>qo,lorotext_push:()=>Jo,lorotext_slice:()=>Yo,lorotext_sliceDelta:()=>Xo,lorotext_sliceDeltaUtf8:()=>Zo,lorotext_splice:()=>Qo,lorotext_subscribe:()=>$o,lorotext_toDelta:()=>es,lorotext_toJSON:()=>ts,lorotext_toString:()=>ns,lorotext_unmark:()=>rs,lorotext_update:()=>is,lorotext_updateByLine:()=>as,lorotree_createNode:()=>os,lorotree_delete:()=>ss,lorotree_disableFractionalIndex:()=>cs,lorotree_enableFractionalIndex:()=>ls,lorotree_getAttached:()=>us,lorotree_getNodeByID:()=>ds,lorotree_getNodes:()=>fs,lorotree_getShallowValue:()=>ps,lorotree_has:()=>ms,lorotree_id:()=>hs,lorotree_isAttached:()=>gs,lorotree_isDeleted:()=>_s,lorotree_isFractionalIndexEnabled:()=>vs,lorotree_isNodeDeleted:()=>ys,lorotree_kind:()=>bs,lorotree_move:()=>xs,lorotree_new:()=>Ss,lorotree_nodes:()=>Cs,lorotree_parent:()=>ws,lorotree_roots:()=>Ts,lorotree_subscribe:()=>Es,lorotree_toArray:()=>Ds,lorotree_toJSON:()=>Os,lorotreenode___getClassname:()=>ks,lorotreenode_children:()=>As,lorotreenode_createNode:()=>js,lorotreenode_creationId:()=>Ms,lorotreenode_creator:()=>Ns,lorotreenode_data:()=>Ps,lorotreenode_fractionalIndex:()=>Fs,lorotreenode_getLastMoveId:()=>Is,lorotreenode_id:()=>Ls,lorotreenode_index:()=>Rs,lorotreenode_isDeleted:()=>zs,lorotreenode_move:()=>Bs,lorotreenode_moveAfter:()=>Vs,lorotreenode_moveBefore:()=>Hs,lorotreenode_parent:()=>Us,lorotreenode_toJSON:()=>Ws,memory:()=>Tn,redactJsonUpdates:()=>Gs,run:()=>Ks,setDebug:()=>qs,undomanager_addExcludeOriginPrefix:()=>Js,undomanager_canRedo:()=>Ys,undomanager_canUndo:()=>Xs,undomanager_clear:()=>Zs,undomanager_clearRedo:()=>Qs,undomanager_clearUndo:()=>$s,undomanager_groupEnd:()=>ec,undomanager_groupStart:()=>tc,undomanager_isPaused:()=>nc,undomanager_new:()=>rc,undomanager_pause:()=>ic,undomanager_peer:()=>ac,undomanager_redo:()=>oc,undomanager_resume:()=>sc,undomanager_setMaxUndoSteps:()=>$,undomanager_setMergeInterval:()=>cc,undomanager_setOnPop:()=>lc,undomanager_setOnPush:()=>uc,undomanager_topRedoValue:()=>dc,undomanager_topUndoValue:()=>fc,undomanager_undo:()=>pc,versionvector_compare:()=>mc,versionvector_decode:()=>hc,versionvector_encode:()=>gc,versionvector_get:()=>_c,versionvector_length:()=>vc,versionvector_new:()=>yc,versionvector_parseJSON:()=>bc,versionvector_remove:()=>xc,versionvector_setEnd:()=>Sc,versionvector_setLast:()=>Cc,versionvector_toJSON:()=>wc});URL=globalThis.URL;var{memory:Tn,LORO_VERSION:En,__wbg_awarenesswasm_free:Dn,__wbg_changemodifier_free:On,__wbg_cursor_free:kn,__wbg_ephemeralstorewasm_free:An,__wbg_lorocounter_free:jn,__wbg_lorodoc_free:Mn,__wbg_lorolist_free:Nn,__wbg_loromap_free:Pn,__wbg_lorotext_free:Fn,__wbg_lorotree_free:In,__wbg_lorotreenode_free:Ln,__wbg_undomanager_free:Rn,__wbg_versionvector_free:zn,awarenesswasm_apply:Bn,awarenesswasm_encode:Vn,awarenesswasm_encodeAll:Hn,awarenesswasm_getAllStates:Un,awarenesswasm_getState:Wn,awarenesswasm_getTimestamp:Gn,awarenesswasm_isEmpty:Kn,awarenesswasm_length:qn,awarenesswasm_new:Jn,awarenesswasm_peer:Yn,awarenesswasm_peers:Xn,awarenesswasm_removeOutdated:Zn,awarenesswasm_setLocalState:Qn,callPendingEvents:$n,changemodifier_setMessage:er,changemodifier_setTimestamp:tr,cursor_containerId:nr,cursor_decode:rr,cursor_encode:ir,cursor_kind:ar,cursor_pos:or,cursor_side:sr,decodeFrontiers:cr,decodeImportBlobMeta:lr,encodeFrontiers:ur,ephemeralstorewasm_apply:dr,ephemeralstorewasm_delete:fr,ephemeralstorewasm_encode:pr,ephemeralstorewasm_encodeAll:mr,ephemeralstorewasm_get:hr,ephemeralstorewasm_getAllStates:gr,ephemeralstorewasm_isEmpty:_r,ephemeralstorewasm_keys:vr,ephemeralstorewasm_new:yr,ephemeralstorewasm_removeOutdated:br,ephemeralstorewasm_set:xr,ephemeralstorewasm_subscribe:Sr,ephemeralstorewasm_subscribeLocalUpdates:Cr,isValidContainerId:wr,lorocounter_decrement:Tr,lorocounter_getAttached:Er,lorocounter_getShallowValue:Dr,lorocounter_id:Or,lorocounter_increment:kr,lorocounter_isAttached:Ar,lorocounter_kind:jr,lorocounter_new:Mr,lorocounter_parent:Nr,lorocounter_subscribe:Pr,lorodoc_JSONPath:Fr,lorodoc_applyDiff:Ir,lorodoc_attach:Lr,lorodoc_changeCount:Rr,lorodoc_checkout:zr,lorodoc_checkoutToLatest:Br,lorodoc_clearNextCommitOptions:Vr,lorodoc_cmpFrontiers:Hr,lorodoc_cmpWithFrontiers:Ur,lorodoc_commit:Wr,lorodoc_configDefaultTextStyle:Gr,lorodoc_configTextStyle:Kr,lorodoc_debugHistory:qr,lorodoc_deleteRootContainer:Jr,lorodoc_detach:Yr,lorodoc_diff:Xr,lorodoc_export:Zr,lorodoc_exportJsonInIdSpan:Qr,lorodoc_exportJsonUpdates:$r,lorodoc_findIdSpansBetween:ei,lorodoc_fork:ti,lorodoc_forkAt:ni,lorodoc_fromSnapshot:ri,lorodoc_frontiers:ii,lorodoc_frontiersToVV:ai,lorodoc_getAllChanges:oi,lorodoc_getByPath:si,lorodoc_getChangeAt:ci,lorodoc_getChangeAtLamport:li,lorodoc_getChangedContainersIn:ui,lorodoc_getContainerById:di,lorodoc_getCounter:fi,lorodoc_getCursorPos:pi,lorodoc_getDeepValueWithID:mi,lorodoc_getList:hi,lorodoc_getMap:gi,lorodoc_getMovableList:_i,lorodoc_getOpsInChange:vi,lorodoc_getPathToContainer:yi,lorodoc_getPendingTxnLength:bi,lorodoc_getShallowValue:xi,lorodoc_getText:Si,lorodoc_getTree:Ci,lorodoc_getUncommittedOpsAsJson:wi,lorodoc_hasContainer:Ti,lorodoc_import:Ei,lorodoc_importBatch:Di,lorodoc_importJsonUpdates:Oi,lorodoc_isDetached:ki,lorodoc_isDetachedEditingEnabled:Ai,lorodoc_isShallow:ji,lorodoc_new:Mi,lorodoc_opCount:Ni,lorodoc_oplogFrontiers:Pi,lorodoc_oplogVersion:Fi,lorodoc_peerId:Ii,lorodoc_peerIdStr:Li,lorodoc_revertTo:Ri,lorodoc_setChangeMergeInterval:zi,lorodoc_setDetachedEditing:Bi,lorodoc_setHideEmptyRootContainers:Vi,lorodoc_setNextCommitMessage:Hi,lorodoc_setNextCommitOptions:Ui,lorodoc_setNextCommitOrigin:Wi,lorodoc_setNextCommitTimestamp:Gi,lorodoc_setPeerId:Ki,lorodoc_setRecordTimestamp:qi,lorodoc_shallowSinceFrontiers:Ji,lorodoc_shallowSinceVV:Yi,lorodoc_subscribe:Xi,lorodoc_subscribeFirstCommitFromPeer:Zi,lorodoc_subscribeJsonpath:Qi,lorodoc_subscribeLocalUpdates:$i,lorodoc_subscribePreCommit:ea,lorodoc_toJSON:ta,lorodoc_travelChangeAncestors:na,lorodoc_version:ra,lorodoc_vvToFrontiers:ia,lorolist_clear:aa,lorolist_delete:oa,lorolist_get:sa,lorolist_getAttached:ca,lorolist_getCursor:la,lorolist_getIdAt:ua,lorolist_getShallowValue:da,lorolist_id:fa,lorolist_insert:pa,lorolist_insertContainer:ma,lorolist_isAttached:ha,lorolist_isDeleted:ga,lorolist_kind:_a,lorolist_length:va,lorolist_new:ya,lorolist_parent:ba,lorolist_pop:xa,lorolist_push:Sa,lorolist_pushContainer:Ca,lorolist_subscribe:wa,lorolist_toArray:Ta,lorolist_toJSON:Ea,loromap_clear:Da,loromap_delete:Oa,loromap_ensureMergeableCounter:ka,loromap_ensureMergeableList:Aa,loromap_ensureMergeableMap:ja,loromap_ensureMergeableMovableList:Ma,loromap_ensureMergeableText:Na,loromap_ensureMergeableTree:Pa,loromap_entries:Fa,loromap_get:Ia,loromap_getAttached:La,loromap_getLastEditor:Ra,loromap_getOrCreateContainer:za,loromap_getShallowValue:Ba,loromap_id:Va,loromap_isAttached:Ha,loromap_isDeleted:Ua,loromap_keys:Wa,loromap_kind:Ga,loromap_new:Ka,loromap_parent:qa,loromap_set:Ja,loromap_setContainer:Ya,loromap_size:Xa,loromap_subscribe:Za,loromap_toJSON:Qa,loromap_values:$a,loromovablelist_clear:eo,loromovablelist_delete:to,loromovablelist_get:no,loromovablelist_getAttached:ro,loromovablelist_getCreatorAt:io,loromovablelist_getCursor:ao,loromovablelist_getLastEditorAt:oo,loromovablelist_getLastMoverAt:so,loromovablelist_getShallowValue:co,loromovablelist_id:lo,loromovablelist_insert:uo,loromovablelist_insertContainer:fo,loromovablelist_isAttached:po,loromovablelist_isDeleted:mo,loromovablelist_kind:ho,loromovablelist_length:go,loromovablelist_move:_o,loromovablelist_new:vo,loromovablelist_parent:yo,loromovablelist_pop:bo,loromovablelist_push:xo,loromovablelist_pushContainer:So,loromovablelist_set:Co,loromovablelist_setContainer:wo,loromovablelist_subscribe:To,loromovablelist_toArray:Eo,loromovablelist_toJSON:Do,lorotext_applyDelta:Oo,lorotext_charAt:ko,lorotext_convertPos:Ao,lorotext_delete:jo,lorotext_deleteUtf8:Mo,lorotext_getAttached:No,lorotext_getCursor:Po,lorotext_getEditorOf:Fo,lorotext_getShallowValue:Io,lorotext_id:Lo,lorotext_insert:Ro,lorotext_insertUtf8:zo,lorotext_isAttached:Bo,lorotext_isDeleted:Vo,lorotext_iter:Ho,lorotext_kind:Uo,lorotext_length:Wo,lorotext_mark:Go,lorotext_new:Ko,lorotext_parent:qo,lorotext_push:Jo,lorotext_slice:Yo,lorotext_sliceDelta:Xo,lorotext_sliceDeltaUtf8:Zo,lorotext_splice:Qo,lorotext_subscribe:$o,lorotext_toDelta:es,lorotext_toJSON:ts,lorotext_toString:ns,lorotext_unmark:rs,lorotext_update:is,lorotext_updateByLine:as,lorotree_createNode:os,lorotree_delete:ss,lorotree_disableFractionalIndex:cs,lorotree_enableFractionalIndex:ls,lorotree_getAttached:us,lorotree_getNodeByID:ds,lorotree_getNodes:fs,lorotree_getShallowValue:ps,lorotree_has:ms,lorotree_id:hs,lorotree_isAttached:gs,lorotree_isDeleted:_s,lorotree_isFractionalIndexEnabled:vs,lorotree_isNodeDeleted:ys,lorotree_kind:bs,lorotree_move:xs,lorotree_new:Ss,lorotree_nodes:Cs,lorotree_parent:ws,lorotree_roots:Ts,lorotree_subscribe:Es,lorotree_toArray:Ds,lorotree_toJSON:Os,lorotreenode___getClassname:ks,lorotreenode_children:As,lorotreenode_createNode:js,lorotreenode_creationId:Ms,lorotreenode_creator:Ns,lorotreenode_data:Ps,lorotreenode_fractionalIndex:Fs,lorotreenode_getLastMoveId:Is,lorotreenode_id:Ls,lorotreenode_index:Rs,lorotreenode_isDeleted:zs,lorotreenode_move:Bs,lorotreenode_moveAfter:Vs,lorotreenode_moveBefore:Hs,lorotreenode_parent:Us,lorotreenode_toJSON:Ws,redactJsonUpdates:Gs,run:Ks,setDebug:qs,undomanager_addExcludeOriginPrefix:Js,undomanager_canRedo:Ys,undomanager_canUndo:Xs,undomanager_clear:Zs,undomanager_clearRedo:Qs,undomanager_clearUndo:$s,undomanager_groupEnd:ec,undomanager_groupStart:tc,undomanager_isPaused:nc,undomanager_new:rc,undomanager_pause:ic,undomanager_peer:ac,undomanager_redo:oc,undomanager_resume:sc,undomanager_setMaxUndoSteps:$,undomanager_setMergeInterval:cc,undomanager_setOnPop:lc,undomanager_setOnPush:uc,undomanager_topRedoValue:dc,undomanager_topUndoValue:fc,undomanager_undo:pc,versionvector_compare:mc,versionvector_decode:hc,versionvector_encode:gc,versionvector_get:_c,versionvector_length:vc,versionvector_new:yc,versionvector_parseJSON:bc,versionvector_remove:xc,versionvector_setEnd:Sc,versionvector_setLast:Cc,versionvector_toJSON:wc,lorodoc_importUpdateBatch:Tc,__wbg_loromovablelist_free:Ec,lorocounter_toJSON:Dc,lorocounter_value:Oc,__wbindgen_malloc:kc,__wbindgen_realloc:Ac,__wbindgen_exn_store:jc,__wbindgen_free:Mc,__wbindgen_export_4:Nc,__wbindgen_add_to_stack_pointer:Pc,_dyn_core_9b3796e30d99ddb7___ops__function__FnMut_______Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke___wasm_bindgen_c71729c74976bed3___JsValue_____:Fc,_dyn_core_9b3796e30d99ddb7___ops__function__FnMut_____Output______as_wasm_bindgen_c71729c74976bed3___closure__WasmClosure___describe__invoke______:Ic,__wbindgen_start:Lc}=await n({"./loro_wasm_bg.js":{__wbindgen_string_new:bn,__wbindgen_object_drop_ref:_n,__wbindgen_error_new:tn,__wbindgen_boolean_get:Xt,__wbg_lorotreenode_new:st,__wbg_versionvector_new:Wt,__wbg_changemodifier_new:ke,__wbg_loromovablelist_new:it,__wbg_cursor_new:je,__wbg_loromap_new:rt,__wbg_lorolist_new:nt,__wbg_lorotext_new:at,__wbg_lorotree_new:ot,__wbg_lorocounter_new:tt,__wbindgen_is_undefined:un,__wbindgen_in:nn,__wbindgen_is_bigint:an,__wbindgen_number_get:mn,__wbindgen_bigint_from_i64:qt,__wbindgen_jsval_eq:dn,__wbindgen_string_get:yn,__wbindgen_is_object:cn,__wbindgen_bigint_from_u64:Jt,__wbindgen_as_number:Kt,__wbindgen_object_clone_ref:gn,__wbindgen_is_function:on,__wbindgen_is_string:ln,__wbg_error_d558b831e4af4f7b:Fe,__wbindgen_number_new:hn,__wbindgen_typeof:Sn,__wbindgen_is_null:sn,__wbg_warn_d0f9203c8c814d40:Gt,__wbg_log_5772acf6639674b3:$e,__wbindgen_is_array:rn,__wbindgen_cb_drop:Zt,__wbg_log_cb9e190acc5753fb:et,__wbg_log_0cc1b7768397bcfe:Qe,__wbg_mark_7438147ce31e9d4b:ct,__wbg_measure_fb7825c11612c823:lt,__wbindgen_jsval_loose_eq:fn,__wbg_set_3f1d0b984ed272ed:jt,__wbg_getwithrefkey_1dc361bd10053bfe:He,__wbg_String_8f0eb39a4a4c2f66:xe,__wbg_now_86f00deda9ebf073:Ct,__wbg_randomFillSync_ac0988aba3254290:Dt,__wbg_getRandomValues_b8f5dbd5f3995a9e:Re,__wbg_crypto_574e78ad8b13b65f:Ae,__wbg_process_dc0fbacc7c1c06f7:Tt,__wbg_versions_c01dfd4722a88165:Ut,__wbg_node_905d3e251edff8a2:St,__wbg_require_60cc747a6bc5215a:Ot,__wbg_msCrypto_a61aeb35a24c1329:ut,__wbg_iterator_9a24c88df860dc65:Ye,__wbg_get_67b2ba62fc30de12:ze,__wbg_call_672a4d21634d4a24:Te,__wbg_push_737cfc8c1432c2c6:Et,__wbg_new_78feb108b6472713:pt,__wbg_newwithlength_c4c419ef0bc8a1f8:yt,__wbg_get_b9b93047fe3cf45b:Be,__wbg_set_37837023f3d740e8:At,__wbg_from_2a5d3e218e67aa85:Ie,__wbg_isArray_a1eab7e0d067391b:qe,__wbg_buffer_609cc3eee51ed158:we,__wbg_length_e2d2a49132c1b256:Ze,__wbg_new_c68d7209be747379:ht,__wbg_new_5e0be73521bc8c17:ft,__wbg_set_8fc6bf8a5b1071d1:Nt,__wbg_newnoargs_105ed471475aaf50:gt,__wbg_apply_36be6a55257c99bf:Se,__wbg_call_7cccdd69e0791ae2:Ee,__wbg_call_833bed5770ea2041:De,__wbg_call_b8adc8b1d0a0d8eb:Oe,__wbg_entries_c8a90a7ed73e84ce:Pe,__wbg_next_6574e1a8a62d1055:xt,__wbg_done_769e5ede4b31c67b:Me,__wbg_value_cd1ffa7b1ab794f1:Ht,__wbg_isSafeInteger_343e2beeeece1bb0:Je,__wbg_entries_3265d4158b33e5dc:Ne,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:Le,__wbg_new_405e22f390576ce2:dt,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:_t,__wbg_length_a446193dc22c12f8:Xe,__wbg_new_a12002a7f91c75be:mt,__wbg_set_65595bdd868b3009:Mt,__wbg_resolve_4851785c9c5f573d:kt,__wbg_then_44b73946d2fb3e7d:Vt,__wbg_newwithlength_a381634e90c276d4:vt,__wbg_subarray_aa9065fa9dc5df96:Bt,__wbg_getindex_5b00c274b05714aa:Ve,__wbg_setindex_dcd71eabf405bde1:Ft,__wbg_next_25feadfc0913fea9:bt,__wbg_set_bb8cecf6a62b9f46:Pt,__wbg_apply_eb9e9b97497f91e4:Ce,__wbg_ownKeys_3930041068756f1f:wt,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:Lt,__wbg_static_accessor_SELF_37c5d418e4bf5819:Rt,__wbg_static_accessor_GLOBAL_88a902d13a557d07:It,__wbg_static_accessor_WINDOW_5de37043a91a9c40:zt,__wbg_instanceof_Map_f3469ce2244d2430:We,__wbg_instanceof_Object_7f2dcef8f78644a4:Ge,__wbg_instanceof_Uint8Array_17156bcf118086a9:Ke,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:Ue,__wbindgen_bigint_get_as_i64:Yt,__wbindgen_memory:pn,__wbindgen_throw:xn,__wbindgen_rethrow:vn,__wbindgen_debug_string:en,__wbindgen_closure_wrapper246:Qt,__wbindgen_closure_wrapper496:$t}},t);export{mr as $,lc as $a,ds as $i,ua as $n,uo as $r,di as $t,Gn as A,Hs as Aa,Ho as Ai,Vi as An,Va as Ar,Hr as At,tr as B,Zs as Ba,Qo as Bi,Zi as Bn,Za as Br,Qr as Bt,Ic as C,Fs as Ca,Fo as Ci,Pi as Cn,ae as Co,Pa as Cr,Fr as Ct,Hn as D,zs as Da,zo as Di,Ri as Dn,Ra as Dr,zr as Dt,Vn as E,Rs as Ea,Ro as Ei,Li as En,La as Er,Rr as Et,Xn as F,Ks as Fa,qo as Fi,Ki as Fn,Ka as Fr,qr as Ft,or as G,nc as Ga,rs as Gi,na as Gn,no as Gr,ri as Gt,rr as H,$s as Ha,es as Hi,$i as Hn,$a as Hr,ei as Ht,Zn as I,qs as Ia,Jo as Ii,qi as In,qa as Ir,Jr as It,lr as J,ac as Ja,os as Ji,aa as Jn,ao as Jr,oi as Jt,sr as K,rc as Ka,is as Ki,ra as Kn,ro as Kr,ii as Kt,Qn as L,Js as La,Yo as Li,Ji as Ln,Ja as Lr,Yr as Lt,qn as M,Ws as Ma,Wo as Mi,Ui as Mn,Ua as Mr,Wr as Mt,Jn as N,Tn as Na,Go as Ni,Wi as Nn,Wa as Nr,Gr as Nt,Un as O,Bs as Oa,Bo as Oi,zi as On,za as Or,Br as Ot,Yn as P,Gs as Pa,Ko as Pi,Gi as Pn,Ga as Pr,Kr as Pt,pr as Q,cc as Qa,us as Qi,la as Qn,lo as Qr,ui as Qt,$n as R,Ys as Ra,Xo as Ri,Yi as Rn,Ya as Rr,Xr as Rt,Lc as S,Ps as Sa,Po as Si,Ni as Sn,a as So,Na as Sr,Oc as St,Bn as T,Ls as Ta,Lo as Ti,Ii as Tn,r as To,Ia as Tr,Lr as Tt,ir as U,ec as Ua,ts as Ui,ea as Un,eo as Ur,ti as Ut,nr as V,Qs as Va,$o as Vi,Qi as Vn,Qa as Vr,$r as Vt,ar as W,tc as Wa,ns as Wi,ta as Wn,to as Wr,ni as Wt,dr as X,sc as Xa,cs as Xi,sa as Xn,so as Xr,ci as Xt,ur as Y,oc as Ya,ss as Yi,oa as Yn,oo as Yr,si as Yt,fr as Z,$ as Za,ls as Zi,ca as Zn,co as Zr,li as Zt,jc as _,ks as _a,ko as _i,Tc as _n,P as _o,Oa as _r,jr as _t,An as a,_s as aa,_o as ai,_i as an,hc as ao,ga as ar,br as at,kc as b,Ms as ba,Mo as bi,ji as bn,K as bo,ja as br,Pr as bt,Nn as c,bs as ca,bo as ci,bi as cn,vc as co,ya as cr,Cr as ct,Fn as d,Cs as da,Co as di,Ci as dn,xc as do,Sa as dr,Tr as dt,fs as ea,fo as ei,fi as en,uc as eo,da as er,hr as et,In as f,ws as fa,wo as fi,wi as fn,Sc as fo,Ca as fr,Er as ft,Pc as g,Os as ga,Oo as gi,Oi as gn,M as go,Da as gr,Ar as gt,zn as h,Ds as ha,Do as hi,Di as hn,me as ho,Ea as hr,kr as ht,kn as i,gs as ia,go as ii,gi as in,mc as io,ha as ir,yr as it,Kn as j,Us as ja,Uo as ji,Hi as jn,Ha as jr,Ur as jt,Wn as k,Vs as ka,Vo as ki,Bi as kn,Ba as kr,Vr as kt,Pn as l,xs as la,xo as li,xi as ln,yc as lo,ba as lr,wr as lt,Rn as m,Es as ma,Eo as mi,Ei as mn,wc as mo,Ta as mr,Or as mt,Dn as n,ms as na,mo as ni,mi as nn,fc as no,pa as nr,_r as nt,jn as o,vs as oa,vo as oi,vi as on,gc as oo,_a as or,xr as ot,Ln as p,Ts as pa,To as pi,Ti as pn,Cc as po,wa as pr,Dr as pt,cr as q,ic as qa,as as qi,ia as qn,io as qr,ai as qt,On as r,hs as ra,ho as ri,hi as rn,pc as ro,ma as rr,vr as rt,Mn as s,ys as sa,yo as si,yi as sn,_c as so,va as sr,Sr as st,En as t,ps as ta,po as ti,pi as tn,dc as to,fa as tr,gr as tt,Ec as u,Ss as ua,So as ui,Si as un,bc as uo,xa as ur,wn as ut,Nc as v,As as va,Ao as vi,ki as vn,R as vo,ka as vr,Mr as vt,Fc as w,Is as wa,Io as wi,Fi as wn,T as wo,Fa as wr,Ir as wt,Ac as x,Ns as xa,No as xi,Mi as xn,be as xo,Ma as xr,Dc as xt,Mc as y,js as ya,jo as yi,Ai as yn,H as yo,Aa as yr,Nr as yt,er as z,Xs as za,Zo as zi,Xi as zn,Xa as zr,Zr as zt};
@@ -1 +0,0 @@
1
- import{i as e}from"./chunk-YOKDWASO-84E-_nIR.js";export{e as Mermaid};
@@ -1 +0,0 @@
1
- import{f as e}from"./useEvent-Dc9HkKI2.js";import{P as t,j as n}from"./schemas-BL-NsLlF.js";var r=n({command:t(),templates:n({prompt:t(),session:t(),token_file:t(),token:t()})}),i=e(void 0);export{r as n,i as t};
@@ -1,4 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{c as t,f as n,l as r,r as i,u as a}from"./useEvent-Dc9HkKI2.js";import{t as o}from"./react-CUdNIagt.js";import{$ as s,A as c,B as l,D as u,Dt as d,Et as f,Gn as p,Hr as m,I as h,Ii as g,Jn as ee,Kn as te,Mr as ne,Oo as re,Ot as ie,R as ae,So as oe,St as se,T as _,Vi as ce,Wn as le,b as v,ei as ue,g as y,h as de,l as fe,mr as pe,pr as me,qn as he}from"./cells-CxY8RSp7.js";import{t as b}from"./compiler-runtime-BQ9S8nyo.js";import{D as ge,d as _e,w as ve}from"./config-Cyum2gRs.js";import{_ as x,c as ye,g as be,i as xe,m as Se,n as Ce,o as S,p as we,r as Te,s as Ee,t as De}from"./state-sbCCk7ZP.js";import{g as C,t as Oe}from"./useEventListener-IRzG-0mH.js";import{t as ke}from"./objects-snlMn4yk.js";import{i as w}from"./utils-B4K466FK.js";import{a as T,f as E,m as Ae,r as je,v as D}from"./session-BykGt6S3.js";import{M as Me,T as O,_ as Ne,l as Pe,o as Fe,w as k,x as Ie}from"./config-D_c_6ce1.js";import{r as Le}from"./state-YaAkDV8S.js";import{i as Re,o as A,r as ze}from"./state-ja7GWeCS.js";import{r as Be}from"./ErrorBoundary-CG6gtgym.js";import{n as j,t as M}from"./cn-ldLVeaqm.js";import{t as N}from"./jsx-runtime-B74pBk57.js";import{i as P,s as Ve}from"./fullscreen-DEBblJKh.js";import{a as F,c as I,i as L,l as He,n as R,o as z,r as Ue,s as B}from"./use-restore-focus-GUh2Nd8Z.js";import{Dt as We,Ot as Ge,St as V}from"./JsonOutput-DCGUcLVV.js";import{p as H}from"./download-CPMAf7re.js";import{t as U}from"./tooltip-B5pI8o2n.js";import{t as W}from"./button-M49xxKoi.js";import{t as G}from"./createLucideIcon-rHn2EdoM.js";import{P as K,a as q,c as J,i as Y,n as Ke}from"./layout-CSLw6wGo.js";import{d as qe,n as Je}from"./markdown-renderer-mDlWBE1M.js";import{v as Ye}from"./write-secret-modal-BcosCmZy.js";import{n as Xe}from"./spinner-CGdRKCnw.js";import{c as Ze,l as Qe,s as $e}from"./readonly-python-code-DcYhdd1B.js";import{t as et}from"./use-toast-CC89xOwH.js";import{i as tt}from"./strings-hlCLC-K1.js";import{t as nt}from"./requests-yTHMxhVa.js";import{n as rt}from"./useAsyncData-DucTwMkf.js";import{t as it}from"./RenderHTML-C7QcdAgB.js";import{t as at}from"./package-data-BwaspaKJ.js";import{f as ot}from"./useInstallPackage-HTUlGg0U.js";import{a as st}from"./errors-D9vyuMar.js";import{s as ct}from"./react-icons.esm-C6SMwKZH.js";import{r as lt}from"./events-CbeVJ6OD.js";import{i as ut}from"./cell-link-DC1UZQr_.js";import{t as dt}from"./requests-DFPPfagc.js";import{r as ft,s as pt,t as mt}from"./state-B2ZbImvm.js";import{t as ht}from"./ws-BXWY541V.js";import{n as gt}from"./runs-DyluVj69.js";var _t=G(`hourglass`,[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]),vt=G(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),yt=G(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),X=N(),Z=b(),Q=e(o(),1);function bt(e){let t=(0,Z.c)(3),[n,r]=(0,Q.useState)(e<=0),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(e<=0){r(!0);return}r(!1);let t=setTimeout(()=>r(!0),e);return()=>clearTimeout(t)},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,Q.useLayoutEffect)(i,a),n}var xt=e=>{let{requires:t,fallback:n,delay:i,children:a}=e,o=n===void 0?null:n,s=i===void 0?0:i,c=r(t),l=bt(c?0:s);return c?a:l?o:null},St=e=>{let t=(0,Z.c)(10),{title:n}=e,[r,i]=(0,Q.useState)(n),[a,o]=(0,Q.useState)(!0),s,c;t[0]!==r||t[1]!==n?(s=()=>{if(n!==r){o(!1);let e=setTimeout(()=>{i(n),o(!0)},300);return()=>clearTimeout(e)}},c=[n,r],t[0]=r,t[1]=n,t[2]=s,t[3]=c):(s=t[2],c=t[3]),(0,Q.useEffect)(s,c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(Xe,{className:`size-20 animate-spin text-primary`,"data-testid":`large-spinner`,strokeWidth:1}),t[4]=l):l=t[4];let u=a?`opacity-100`:`opacity-0`,d;t[5]===u?d=t[6]:(d=M(`mt-2 text-muted-foreground font-semibold text-lg transition-opacity duration-300`,u),t[5]=u,t[6]=d);let f;return t[7]!==r||t[8]!==d?(f=(0,X.jsxs)(`div`,{className:`flex flex-col h-full flex-1 items-center justify-center p-4`,children:[l,(0,X.jsx)(`div`,{className:d,children:r})]}),t[7]=r,t[8]=d,t[9]=f):f=t[9],f};function Ct(e,t){return e===`edit`||e===`home`||e===`gallery`?!0:e===`present`||T(w.includeCode,`false`)||T(w.showCode,`false`)?!1:T(w.showCode,`true`)?!0:t}function wt(e){let t=Ct(e.mode,e.showAppCode),n=e.hasCells&&e.hasCachedOutputs;return{showCode:t,showCachedOutputs:n,canPaint:e.hasCells&&(t||n||e.allCellsIdle)}}var Tt=n(e=>{let t=!1,n=!0;for(let r of Object.values(e(v).cellRuntime))Je(r.output)||(t=!0),r.status!==`idle`&&(n=!1);return{hasCachedOutputs:t,allCellsIdle:n}}),Et=n(e=>e(Tt).hasCachedOutputs),Dt=n(e=>e(Tt).allCellsIdle),Ot=n(e=>wt({mode:e(E),showAppCode:e(Le),hasCells:e(y),hasCachedOutputs:e(Et),allCellsIdle:e(Dt)})),kt=n(e=>e(Ot).canPaint),At=e=>{let t=(0,Z.c)(2),{children:n}=e;if(!Me())return n;let r;return t[0]===n?r=t[1]:(r=(0,X.jsx)(jt,{children:n}),t[0]=n,t[1]=r),r},jt=e=>{let t=(0,Z.c)(8),{children:n}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],t[0]=i):i=t[0];let{error:a}=rt(Nt,i),o=r(kt),s=(0,Q.useRef)(!1),c,l;if(t[1]!==o||t[2]!==a?(c=()=>{a&&o&&!s.current&&(s.current=!0,C.error(`Pyodide failed to initialize`,a),et({title:`Failed to start the notebook runtime`,description:st(a),variant:`danger`}))},l=[a,o],t[1]=o,t[2]=a,t[3]=c,t[4]=l):(c=t[3],l=t[4]),(0,Q.useEffect)(c,l),a&&!o)throw a;let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsx)(Mt,{}),t[5]=u):u=t[5];let d;return t[6]===n?d=t[7]:(d=(0,X.jsx)(xt,{requires:kt,fallback:u,children:n}),t[6]=n,t[7]=d),d},Mt=()=>{let e=(0,Z.c)(2),t=r(A),n=t.kind===`loading`?t.message:`Loading…`,i;return e[0]===n?i=e[1]:(i=(0,X.jsx)(St,{title:n}),e[0]=n,e[1]=i),i};async function Nt(){return await we.INSTANCE.initialized.promise,!0}var Pt={idle:`./favicon.ico`,success:`data:image/x-icon;base64,AAABAAEAMDAAAAEACACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAAXXQAAFd3AwBWeAQAVngEAFd4AwBXeAQAVnkEAFh3AwBXdwQAVXcGAFd4BQBXeAQAWHgEAFd6AwBXeAMAVnkEAFZ5AwBXdwQAV3cFAFd4BABYeAQAV3gEAFh4BABXeAQA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADgAAAAAAcAAOAAAAAABwAA8AAAAAAPAADwAAAAAA8AAPgAAAAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA`};async function $(e){return Pt[e]}function Ft(){let e=document.querySelector(`link[rel~='icon']`);if(e)return e;let t=document.createElement(`link`);return t.rel=`icon`,document.head.append(t),t}function It(e){if(document.visibilityState===`visible`)return;let t=async()=>{e===0?new Notification(`Execution completed`,{body:`Your notebook run completed successfully.`,icon:await $(`success`)}):new Notification(`Execution failed`,{body:`Your notebook run encountered ${e} error(s).`,icon:await $(`error`)})};!(`Notification`in window)||Notification.permission===`denied`||(Notification.permission===`granted`?t():Notification.permission==="default"&&Notification.requestPermission().then(e=>{e===`granted`&&t()}))}var Lt=e=>{let t=(0,Z.c)(11),{isRunning:n}=e,r=c(),i,a;t[0]!==r||t[1]!==n?(i=()=>{let e=Ft();!n&&e.href.includes(`favicon`)||(async()=>{let t;if(t=n?`running`:r.length===0?`success`:`error`,e.href=await $(t),!document.hasFocus())return;let i=setTimeout(async()=>{e.href=await $(`idle`)},3e3);return()=>clearTimeout(i)})()},a=[n,r],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,Q.useEffect)(i,a);let o=K(n)??n,s,l;t[4]!==r||t[5]!==n||t[6]!==o?(s=()=>{o&&!n&&It(r.length)},l=[r,o,n],t[4]=r,t[5]=n,t[6]=o,t[7]=s,t[8]=l):(s=t[7],l=t[8]),(0,Q.useEffect)(s,l);let u;return t[9]===n?u=t[10]:(u=async e=>{if(!n){let e=Ft();e.href=await $(`idle`)}},t[9]=n,t[10]=u),Oe(window,`focus`,u),null};function Rt(){let{cellIds:e,cellRuntime:t}=i.get(v),n=e.inOrderIds.find(e=>t[e]?.status===`running`);n&&ut(n,`focus`)}var zt=e=>{let t=(0,Z.c)(18),{connection:n,isRunning:i,onReconnect:a}=e,{mode:o}=r(D),s=n.state===k.CLOSED&&(o===`read`||n.code!==O.KERNEL_STARTUP_ERROR),c=n.state===k.OPEN,l=s&&n.code===O.KERNEL_DISCONNECTED,u;t[0]===s?u=t[1]:(u=s&&(0,X.jsx)(Ut,{}),t[0]=s,t[1]=u);let d=o===`read`?`fixed`:`absolute`,f;t[2]===d?f=t[3]:(f=M(`z-50 top-4 left-4`,d),t[2]=d,t[3]=f);let p;t[4]!==c||t[5]!==i?(p=c&&i&&(0,X.jsx)(Ht,{}),t[4]=c,t[5]=i,t[6]=p):p=t[6];let m;t[7]!==l||t[8]!==s||t[9]!==a?(m=s&&(0,X.jsx)(Vt,{onReconnect:l?a:void 0}),t[7]=l,t[8]=s,t[9]=a,t[10]=m):m=t[10];let h;t[11]!==f||t[12]!==p||t[13]!==m?(h=(0,X.jsxs)(`div`,{className:f,children:[p,m]}),t[11]=f,t[12]=p,t[13]=m,t[14]=h):h=t[14];let g;return t[15]!==u||t[16]!==h?(g=(0,X.jsxs)(X.Fragment,{children:[u,h]}),t[15]=u,t[16]=h,t[17]=g):g=t[17],g},Bt=`print:hidden pointer-events-auto hover:cursor-pointer`,Vt=e=>{let t=(0,Z.c)(12),{onReconnect:n}=e,r=!n,i=r?`App disconnected`:`App disconnected — click to reconnect`,a=r?0:-1,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=M(Bt,`bg-transparent border-0 p-0`),t[0]=o):o=t[0];let s=r?`App disconnected`:`Reconnect to app`,c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(yt,{className:`w-[25px] h-[25px] text-(--red-11)`}),t[1]=c):c=t[1];let l;t[2]!==r||t[3]!==n||t[4]!==s?(l=(0,X.jsx)(`button`,{type:`button`,className:o,"aria-label":s,"data-testid":`disconnected-indicator`,onClick:n,disabled:r,children:c}),t[2]=r,t[3]=n,t[4]=s,t[5]=l):l=t[5];let u;t[6]!==a||t[7]!==l?(u=(0,X.jsx)(`span`,{tabIndex:a,children:l}),t[6]=a,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==i||t[10]!==u?(d=(0,X.jsx)(U,{content:i,children:u}),t[9]=i,t[10]=u,t[11]=d):d=t[11],d},Ht=()=>{let e=(0,Z.c)(6),t=r(_),n=t?`Scratchpad is running`:`Jump to running cell`,i=t?void 0:Rt,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(_t,{className:`running-app-icon`,size:30,strokeWidth:1}),e[0]=a):a=e[0];let o;e[1]===i?o=e[2]:(o=(0,X.jsx)(`div`,{className:Bt,"data-testid":`loading-indicator`,onClick:i,children:a}),e[1]=i,e[2]=o);let s;return e[3]!==o||e[4]!==n?(s=(0,X.jsx)(U,{content:n,side:`right`,children:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5],s},Ut=()=>{let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{className:`noise`}),(0,X.jsx)(`div`,{className:`disconnected-gradient`})]}),e[0]=t):t=e[0],t},Wt=R,Gt=He,Kt=P(B),qt=Q.forwardRef((e,t)=>{let n=(0,Z.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=M(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,X.jsx)(z,{className:a,...i,ref:t}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});qt.displayName=z.displayName;var Jt=j(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Yt=Q.forwardRef((e,t)=>{let n=(0,Z.c)(15),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({side:o,className:i,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=o===void 0?`right`:o,c;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(qt,{}),n[5]=c):c=n[5];let l;n[6]!==i||n[7]!==s?(l=M(Jt({side:s}),i),n[6]=i,n[7]=s,n[8]=l):l=n[8];let u;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsxs)(Ue,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,X.jsx)(ct,{className:`h-4 w-4`}),(0,X.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),n[9]=u):u=n[9];let d;return n[10]!==r||n[11]!==a||n[12]!==t||n[13]!==l?(d=(0,X.jsx)(Kt,{children:(0,X.jsxs)(Ve,{children:[c,(0,X.jsxs)(L,{ref:t,className:l,...a,children:[r,u]})]})}),n[10]=r,n[11]=a,n[12]=t,n[13]=l,n[14]=d):d=n[14],d});Yt.displayName=L.displayName;var Xt=Q.forwardRef((e,t)=>{let n=(0,Z.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=M(`text-lg font-semibold text-foreground`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,X.jsx)(I,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});Xt.displayName=I.displayName;var Zt=Q.forwardRef((e,t)=>{let n=(0,Z.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=M(`text-sm text-muted-foreground`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,X.jsx)(F,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});Zt.displayName=F.displayName;var Qt=(0,Q.memo)(()=>{let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(We,{name:V.SIDEBAR}),e[0]=t):t=e[0],t});Qt.displayName=`SidebarSlot`;var $t=e=>{let t=(0,Z.c)(6),{openWidth:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(Gt,{className:`lg:hidden`,asChild:!0,children:(0,X.jsx)(W,{variant:`ghost`,className:`bg-background`,children:(0,X.jsx)(vt,{className:`w-5 h-5`})})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i={maxWidth:n},t[1]=n,t[2]=i);let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(Qt,{}),t[3]=a):a=t[3];let o;return t[4]===i?o=t[5]:(o=(0,X.jsxs)(Wt,{children:[r,(0,X.jsx)(Yt,{className:`w-full px-3 h-full flex flex-col overflow-y-auto`,style:i,side:`left`,children:a})]}),t[4]=i,t[5]=o),o},en=e=>{let t=(0,Z.c)(7),{isOpen:n,toggle:r}=e,i=n?`rotate-0`:`rotate-180`,a;t[0]===i?a=t[1]:(a=M(`h-5 w-5 transition-transform ease-in-out duration-700`,i),t[0]=i,t[1]=a);let o;t[2]===a?o=t[3]:(o=(0,X.jsx)(H,{className:a}),t[2]=a,t[3]=o);let s;return t[4]!==o||t[5]!==r?(s=(0,X.jsx)(`div`,{className:`invisible lg:visible absolute top-[12px] right-[16px] z-20`,children:(0,X.jsx)(W,{onClick:r,className:`w-10 h-8`,variant:`ghost`,size:`icon`,children:o})}),t[4]=o,t[5]=r,t[6]=s):s=t[6],s},tn=e=>{let t=(0,Z.c)(11),{isOpen:n,toggle:r,width:i}=e,a=n?i:De,o;t[0]===a?o=t[1]:(o={width:a},t[0]=a,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=M(`app-sidebar auto-collapse-nav`,`top-0 left-0 z-20 h-full hidden lg:block relative transition-[width] ease-in-out duration-300`),t[2]=s):s=t[2];let c;t[3]!==n||t[4]!==r?(c=(0,X.jsx)(en,{isOpen:n,toggle:r}),t[3]=n,t[4]=r,t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(`div`,{className:`relative h-full flex flex-col px-3 pb-16 pt-14 overflow-y-auto shadow-sm border-l`,children:(0,X.jsx)(Qt,{})}),t[6]=l):l=t[6];let u;return t[7]!==n||t[8]!==o||t[9]!==c?(u=(0,X.jsxs)(`aside`,{"data-expanded":n,style:o,className:s,children:[c,l]}),t[7]=n,t[8]=o,t[9]=c,t[10]=u):u=t[10],u},nn=e=>{let n=(0,Z.c)(15),{children:r}=e,[i,a]=t(Te),{isOpen:o,width:s}=i;if(Ge(V.SIDEBAR).length===0)return r;let c;n[0]===s?c=n[1]:(c=Ce(s),n[0]=s,n[1]=c);let l=c,u;n[2]!==a||n[3]!==o?(u=()=>a({type:`toggle`,isOpen:!o}),n[2]=a,n[3]=o,n[4]=u):u=n[4];let d;n[5]!==o||n[6]!==l||n[7]!==u?(d=(0,X.jsx)(tn,{isOpen:o,width:l,toggle:u}),n[5]=o,n[6]=l,n[7]=u,n[8]=d):d=n[8];let f;n[9]===l?f=n[10]:(f=(0,X.jsx)(`div`,{className:`absolute top-3 left-4 flex items-center z-50`,children:(0,X.jsx)($t,{openWidth:l})}),n[9]=l,n[10]=f);let p;return n[11]!==r||n[12]!==d||n[13]!==f?(p=(0,X.jsxs)(`div`,{className:`inset-0 absolute flex`,children:[d,f,r]}),n[11]=r,n[12]=d,n[13]=f,n[14]=p):p=n[14],p},rn=e=>{let t=(0,Z.c)(19),{width:n,connection:r,isRunning:i,children:a,onReconnect:o}=e,s=r.state,c;t[0]===i?c=t[1]:(c=(0,X.jsx)(Lt,{isRunning:i}),t[0]=i,t[1]=c);let l;t[2]!==r||t[3]!==i||t[4]!==o?(l=(0,X.jsx)(zt,{connection:r,isRunning:i,onReconnect:o}),t[2]=r,t[3]=i,t[4]=o,t[5]=l):l=t[5];let u=r.state===k.CLOSED&&r.code!==O.KERNEL_STARTUP_ERROR&&`disconnected`,d=n===`full`&&`config-width-full`,f=n===`columns`?`overflow-x-auto`:`overflow-x-auto sm:overflow-x-hidden`,p;t[6]!==u||t[7]!==d||t[8]!==f?(p=M(`mathjax_ignore`,u,`bg-background w-full h-full text-textColor`,`flex flex-col overflow-y-auto`,d,f,`print:height-fit`),t[6]=u,t[7]=d,t[8]=f,t[9]=p):p=t[9];let m;t[10]!==a||t[11]!==s||t[12]!==p||t[13]!==n?(m=(0,X.jsx)(At,{children:(0,X.jsx)(nn,{children:(0,X.jsx)(`div`,{id:`App`,"data-config-width":n,"data-connection-state":s,className:p,children:a})})}),t[10]=a,t[11]=s,t[12]=p,t[13]=n,t[14]=m):m=t[14];let h;return t[15]!==c||t[16]!==l||t[17]!==m?(h=(0,X.jsxs)(X.Fragment,{children:[c,l,m]}),t[15]=c,t[16]=l,t[17]=m,t[18]=h):h=t[18],h},an=(0,Q.memo)(e=>{let t=(0,Z.c)(9),{appConfig:n,mode:i,children:a}=e,{selectedLayout:o}=Qe();if(!r(Ae)&&(i===`edit`||i===`present`&&o===`vertical`))return a;let s=i===`read`,c;t[0]!==o||t[1]!==s?(c=$e({selectedLayout:o,isReading:s,searchParams:new URLSearchParams(window.location.search)}),t[0]=o,t[1]=s,t[2]=c):c=t[2];let l=c,u;t[3]===l?u=t[4]:(u=q.find(e=>e.type===l),t[3]=l,t[4]=u);let d=u;if(!d)return a;let f;return t[5]!==n||t[6]!==i||t[7]!==d?(f=(0,X.jsx)(on,{appConfig:n,mode:i,plugin:d}),t[5]=n,t[6]=i,t[7]=d,t[8]=f):f=t[8],f});an.displayName=`CellsRenderer`;var on=e=>{let t=(0,Z.c)(12),{appConfig:n,mode:r,plugin:i}=e,a=Qe(),o=h(),{setCurrentLayoutData:s}=Ze(),c,l;t[0]!==a||t[1]!==o||t[2]!==i?(c=fe(o),l=Y({state:a,plugin:i,cells:c}),t[0]=a,t[1]=o,t[2]=i,t[3]=c,t[4]=l):(c=t[3],l=t[4]);let u=l,d=i.Component,f;return t[5]!==d||t[6]!==n||t[7]!==c||t[8]!==u||t[9]!==r||t[10]!==s?(f=(0,X.jsx)(d,{appConfig:n,mode:r,cells:c,layout:u,setLayout:s}),t[5]=d,t[6]=n,t[7]=c,t[8]=u,t[9]=r,t[10]=s,t[11]=f):f=t[11],f},sn=class e{hasStarted=!1;static get INSTANCE(){let t=`_marimo_private_RuntimeState`;return window[t]||(window[t]=new e(S)),window[t]}_sendComponentValues;uiElementRegistry;constructor(e){this.uiElementRegistry=e}get sendComponentValues(){if(!this._sendComponentValues)throw Error(`sendComponentValues is not set`);return this._sendComponentValues}start(e){if(this.hasStarted){C.warn(`RuntimeState already started`);return}this._sendComponentValues=e,document.addEventListener(lt.TYPE,this.handleReadyEvent),this.hasStarted=!0}stop(){if(!this.hasStarted){C.warn(`RuntimeState already stopped`);return}document.removeEventListener(lt.TYPE,this.handleReadyEvent),this.hasStarted=!1}handleReadyEvent=e=>{let t=e.detail.objectId;if(!this.uiElementRegistry.has(t))return;let n=this.uiElementRegistry.lookupValue(t);n!==void 0&&this.sendComponentValues({objectIds:[t],values:[n]}).catch(e=>{C.warn(e)})}},cn=`MARIMO_TRANSPORT_EXHAUSTED`,ln=class{inner;closeWrappers=new WeakMap;constructor(e){this.inner=new ht(e,void 0,{maxRetries:10,debug:!1,startClosed:!0,connectionTimeout:1e4})}get readyState(){return this.inner.readyState}reconnect(e,t){this.inner.reconnect(e,t)}close(){this.inner.close()}send(e){this.inner.send(e)}addEventListener(e,t){if(e===`close`){let e=t;if(this.closeWrappers.has(e))return;let n=t=>{this.inner.retryCount>=10?e(new CloseEvent(`close`,{code:t.code,reason:cn,wasClean:t.wasClean})):e(t)};this.closeWrappers.set(e,n),this.inner.addEventListener(`close`,n);return}this.inner.addEventListener(e,t)}removeEventListener(e,t){if(e===`close`){let e=t,n=this.closeWrappers.get(e);n&&(this.closeWrappers.delete(e),this.inner.removeEventListener(`close`,n));return}this.inner.removeEventListener(e,t)}},un=1e4,dn=1e3,fn=1e4,pn=1.3,mn=1006,hn=class{subscriptions=new x;urlProvider;headersProvider;abortController=null;retryTimer=null;retryCount=0;userClosed=!1;state=WebSocket.CLOSED;constructor(e,t=()=>({})){this.urlProvider=e,this.headersProvider=t}get readyState(){return this.state}reconnect(e,t){this.userClosed=!1,this.retryCount=0,this.clearRetryTimer(),this.abortController?.abort(),this.connect()}close(){this.userClosed=!0,this.clearRetryTimer(),this.state=WebSocket.CLOSED,this.abortController?.abort(),this.abortController=null}send(e){C.warn(`SseTransport does not support send(); dropping message`)}addEventListener(e,t){this.subscriptions.addSubscription(e,t)}removeEventListener(e,t){this.subscriptions.removeSubscription(e,t)}connect(){this.state=WebSocket.CONNECTING,this.run()}async run(){let e=new AbortController;this.abortController=e;let t=setTimeout(()=>e.abort(),un),n=null;try{let r=await fetch(this.urlProvider(),{headers:{...this.headersProvider(),Accept:`text/event-stream`},signal:e.signal});if(clearTimeout(t),!r.ok||r.body===null)throw Error(`Unexpected SSE response: ${r.status}`);this.state=WebSocket.OPEN,this.subscriptions.notify(`open`,new Event(`open`)),n=await this.readEvents(r.body)}catch(n){if(clearTimeout(t),this.isSuperseded(e))return;C.warn(`SSE connection failed`,n),this.subscriptions.notify(`error`,new Event(`error`))}if(this.isSuperseded(e))return;e.abort(),this.state=WebSocket.CLOSED,this.retryCount+=1;let r=this.retryCount>=10;this.subscriptions.notify(`close`,new CloseEvent(`close`,{code:n?.code??mn,reason:r?cn:n?.reason??``,wasClean:n!==null})),!(r||this.isSuperseded(e))&&this.scheduleRetry()}isSuperseded(e){return this.userClosed||this.abortController!==e}scheduleRetry(){this.clearRetryTimer(),this.state=WebSocket.CONNECTING;let e=Math.min(dn*pn**this.retryCount,fn);this.retryTimer=setTimeout(()=>{this.retryTimer=null,this.connect()},e)}clearRetryTimer(){this.retryTimer!==null&&(clearTimeout(this.retryTimer),this.retryTimer=null)}async readEvents(e){let t=e.getReader(),n=new TextDecoder,r=``,i=null,a=[],o=()=>{if(a.length===0)return i=null,null;let e=a.join(`
2
- `),t=i;return i=null,a=[],t===`close`?gn(e):(this.retryCount=0,this.subscriptions.notify(`message`,new MessageEvent(`message`,{data:e})),null)};for(;;){let{done:e,value:s}=await t.read();if(e)return null;r+=n.decode(s,{stream:!0});let c=0,l=r.indexOf(`
3
- `,c);for(;l!==-1;){let e=r.slice(c,l);if(c=l+1,l=r.indexOf(`
4
- `,c),e.endsWith(`\r`)&&(e=e.slice(0,-1)),e===``){let e=o();if(e!==null)return e;continue}if(e.startsWith(`:`))continue;let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),s=t===-1?``:e.slice(t+1);s.startsWith(` `)&&(s=s.slice(1)),n===`data`?a.push(s):n===`event`&&(i=s)}c>0&&(r=r.slice(c))}}};function gn(e){try{let t=JSON.parse(e);return{code:typeof t.code==`number`?t.code:1e3,reason:typeof t.reason==`string`?t.reason:``}}catch{return C.warn(`Failed to parse SSE close event`,e),{code:1e3,reason:``}}}function _n(e){return e.static?be.empty():Me()?Se():e.transportType===`sse`?new hn(e.url,e.headers):new ln(e.url)}function vn(e){let{onOpen:t,onMessage:n,onClose:r,onError:i,waitToConnect:a}=e,[o]=(0,Q.useState)(()=>{let a=_n(e);return a.addEventListener(`open`,t),a.addEventListener(`close`,r),a.addEventListener(`error`,i),a.addEventListener(`message`,n),a});return(0,Q.useEffect)(()=>(o.readyState===WebSocket.CLOSED&&a().then(()=>o.reconnect()).catch(e=>{C.error(`Healthy connection never made`,e),o.close()}),()=>{C.warn(`useConnectionTransport is unmounting. This likely means there is a bug.`),o.close(),o.removeEventListener(`open`,t),o.removeEventListener(`close`,r),o.removeEventListener(`error`,i),o.removeEventListener(`message`,n)}),[o]),o}function yn(e){let{codes:t,names:n,configs:r,cell_ids:i,last_executed_code:a,last_execution_time:o}=e,s=a||{},c=o||{};return t.map((e,t)=>{let a=i[t],o=s[a];return ae({id:a,code:e,edited:o?o!==e:!1,name:n[t],lastCodeRun:s[a]??null,lastExecutionTime:c[a]??null,config:r[t]})})}function bn(e,t,n){let{layout:r}=e,i=Ke(r,t);return r&&r.type===i.selectedLayout&&n({layoutView:i.selectedLayout,data:i.layoutData[i.selectedLayout]}),i}function xn(){let e=[],t=[];return S.entries.forEach((n,r)=>{e.push(r),t.push(n.value)}),{objectIds:e,values:t}}function Sn(e,t){let{existingCells:n,autoInstantiate:r,setCells:i,setLayoutData:a,setAppConfig:o,setCapabilities:s,setKernelState:c,onError:l}=t,{resumed:u,ui_values:d,app_config:f,capabilities:p,auto_instantiated:m}=e,h=n&&n.length>0,g=h&&!u?n:yn(e);i(g,bn(e,g,a));let ee=ge.safeParse(f);if(ee.success?o(ee.data):C.error(`Failed to parse app config`,ee.error),s(p),m)return;if(u){for(let[e,t]of ke.entries(d||{})){let n=e;S.set(n,t)}return}let{objectIds:te,values:ne}=xn(),re=h?Object.fromEntries(n.map(e=>[e.id,e.code])):void 0;nt().sendInstantiate({objectIds:te,values:ne,autoRun:r,codes:re}).then(()=>{c({isInstantiated:!0,error:null})}).catch(e=>{c({isInstantiated:!1,error:e}),l(Error(`Failed to instantiate`,{cause:e}))})}function Cn(e){let t=e.cell_id;S.removeElementsByCell(t),J.INSTANCE.removeForCellId(t)}function wn(e,t){t(e),J.INSTANCE.track(e)}var Tn={append:e=>{let t=new URL(window.location.href);t.searchParams.append(e.key,e.value),window.history.pushState({},``,`${t.pathname}${t.search}`)},set:e=>{let t=new URL(window.location.href);Array.isArray(e.value)?(t.searchParams.delete(e.key),e.value.forEach(n=>t.searchParams.append(e.key,n))):t.searchParams.set(e.key,e.value),window.history.pushState({},``,`${t.pathname}${t.search}`)},delete:e=>{let t=new URL(window.location.href);e.value==null?t.searchParams.delete(e.key):t.searchParams.delete(e.key,e.value),window.history.pushState({},``,`${t.pathname}${t.search}`)},clear:()=>{let e=new URL(window.location.href);e.search=``,window.history.pushState({},``,`${e.pathname}${e.search}`)}};function En(e){switch(e.reason){case cn:return{kind:`gave-up`,status:{state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`kernel not found`}};case`MARIMO_NO_FILE_KEY`:case`MARIMO_NO_SESSION_ID`:case`MARIMO_NO_SESSION`:case`MARIMO_SHUTDOWN`:return{kind:`terminal`,status:{state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`kernel not found`},closeTransport:!0};case`MARIMO_UNAUTHORIZED`:return{kind:`terminal`,status:{state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`not authorized`},closeTransport:!0};case`MARIMO_KIOSK_NOT_ALLOWED`:return{kind:`terminal`,status:{state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`kiosk mode is not available for this session`},closeTransport:!0};case`MARIMO_KERNEL_STARTUP_ERROR`:return{kind:`terminal`,status:{state:k.CLOSED,code:O.KERNEL_STARTUP_ERROR,reason:`Failed to start kernel sandbox`},closeTransport:!0};default:e.reason&&tt(e.reason)}return{kind:`retry`,status:{state:k.CONNECTING}}}function Dn(){return Object.values(de().cellData).filter(e=>e.id!==oe)}function On(e){let n=(0,Z.c)(51),i=(0,Q.useRef)(!0),{autoInstantiate:o,sessionId:c,setCells:h}=e,{showBoundary:ae}=Be(),{handleCellMessage:oe}=u(),_;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(_={skipMiddleware:!0},n[0]=_):_=n[0];let v=u(_),y;n[1]===v?y=n[2]:(y=e=>{s(e.changes,v,Nn)},n[1]=v,n[2]=y);let fe=y,{addCellNotification:b}=gt(),ge=a(Re),x=a(ze),be=ve(),{setVariables:Se,setMetadata:Ce}=ue(),{addColumnPreview:we}=ce(),{addDatasets:Te,filterDatasetsFromVariables:De}=ce(),{addDataSourceConnection:Oe,filterDataSourcesFromVariables:ke}=g(),{setLayoutData:w}=Ze(),[T,E]=t(Ne),D=a(Ie),{addBanner:Le}=ft(),{addMissingPackageAlert:A,updateEnvironment:j,setEnvironment:M,addStartupLog:N}=pt(),P=a(Ae),Ve=a(je),F=a(m),I=Fe(),L=r(_e),He=a(dt),R=a(mt),{setNamespaces:z,filterFromVariables:Ue}=se(),B;n[3]!==Le||n[4]!==b||n[5]!==we||n[6]!==Oe||n[7]!==Te||n[8]!==A||n[9]!==N||n[10]!==o||n[11]!==ke||n[12]!==De||n[13]!==Ue||n[14]!==oe||n[15]!==fe||n[16]!==be||n[17]!==He||n[18]!==F||n[19]!==h||n[20]!==E||n[21]!==M||n[22]!==x||n[23]!==R||n[24]!==ge||n[25]!==P||n[26]!==w||n[27]!==Ce||n[28]!==Ve||n[29]!==z||n[30]!==Se||n[31]!==ae||n[32]!==j||n[33]!==D?(B=e=>{let t=re(e.data);switch(t.data.op){case`reload`:ot();return;case`startup-progress`:{let{phase:e}=t.data;D(t.data),E(t=>t.state===k.OPEN||t.state===k.CONNECTING&&t.phase===e?t:{state:k.CONNECTING,phase:e});return}case`kernel-ready`:{R(null),E({state:k.OPEN}),x(!!(t.data.resumed||t.data.auto_instantiated));let e=Dn();Sn(t.data,{autoInstantiate:o,setCells:h,setLayoutData:w,setAppConfig:be,setCapabilities:F,setKernelState:ge,onError:ae,existingCells:e}),t.data.resumed||ie(),P(t.data.kiosk),Ve(t.data.stable_session_id??null),pe(null),me();return}case`completed-run`:x(!0);return;case`execution`:return;case`interrupted`:return;case`kernel-startup-error`:R(t.data.error);return;case`send-ui-element-message`:{let e=t.data.ui_element;if(e){let n=qe(t.data);S.broadcastMessage(e,t.data.message,n)}return}case`model-lifecycle`:ye(Ee,t.data);return;case`remove-ui-elements`:Cn(t.data);return;case`completion-result`:ne.resolve(t.data.completion_id,t.data);return;case`function-call-result`:xe.resolve(t.data.function_call_id,t.data);return;case`cell-op`:{wn(t.data,oe);let e=de().cellData[t.data.cell_id];if(!e)return;b({cellNotification:t.data,code:e.code});return}case`variables`:{let e=t.data.variables.map(Mn);Se(t.data.variables.map(jn)),De(e),ke(e),Ue(e);return}case`variable-values`:Ce(t.data.variables.map(An));return;case`alert`:et({title:t.data.title,description:it({html:t.data.description}),variant:t.data.variant});return;case`banner`:Le(t.data);return;case`missing-package-alert`:A({...t.data,kind:`missing`});return;case`environment-operation`:t.data.source===`kernel`&&t.data.status.kind!==`running`&&at(),j(t.data);return;case`environment-state`:M(t.data),t.data.source===`kernel`&&at();return;case`startup-logs`:N({content:t.data.content,status:t.data.status});return;case`query-params-append`:Tn.append(t.data);return;case`query-params-set`:Tn.set(t.data);return;case`query-params-delete`:Tn.delete(t.data);return;case`query-params-clear`:Tn.clear();return;case`datasets`:Te(t.data);return;case`data-column-preview`:we(t.data);return;case`sql-table-preview`:te.resolve(t.data.request_id,t.data);return;case`sql-table-list-preview`:he.resolve(t.data.request_id,t.data);return;case`sql-schema-list-preview`:p.resolve(t.data.request_id,t.data);return;case`validate-sql-result`:ee.resolve(t.data.request_id,t.data);return;case`data-source-discovery-result`:le.resolve(t.data.request_id,t.data);return;case`secret-keys-result`:Ye.resolve(t.data.request_id,t.data);return;case`cache-info`:He(t.data);return;case`cache-cleared`:return;case`data-source-connections`:Oe({connections:t.data.connections.map(kn)});return;case`storage-namespaces`:z(t.data);return;case`storage-entries`:d.resolve(t.data.request_id,t.data);return;case`storage-download-ready`:f.resolve(t.data.request_id,t.data);return;case`reconnected`:R(null),E({state:k.OPEN});return;case`focus-cell`:l(t.data.cell_id);return;case`active-line`:pe(t.data.line==null?null:{cellId:t.data.cell_id,line:t.data.line});return;case`notebook-document-transaction`:fe(t.data.transaction);return;case`consumer-capabilities`:P(!t.data.consumer_capabilities.edit);return;default:tt(t.data)}},n[3]=Le,n[4]=b,n[5]=we,n[6]=Oe,n[7]=Te,n[8]=A,n[9]=N,n[10]=o,n[11]=ke,n[12]=De,n[13]=Ue,n[14]=oe,n[15]=fe,n[16]=be,n[17]=He,n[18]=F,n[19]=h,n[20]=E,n[21]=M,n[22]=x,n[23]=R,n[24]=ge,n[25]=P,n[26]=w,n[27]=Ce,n[28]=Ve,n[29]=z,n[30]=Se,n[31]=ae,n[32]=j,n[33]=D,n[34]=B):B=n[34];let We=B,Ge=(e,t)=>{i.current&&(i.current=!1,J.reconnect(e,t))},V=async()=>{if(J.readyState!==WebSocket.OPEN&&J.readyState!==WebSocket.CONNECTING){if(i.current=!0,R(null),E({state:k.CONNECTING}),!await I.reconcileFromHealth()){i.current=!1,E({state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`kernel not found`});return}J.reconnect()}},H;n[35]===Symbol.for(`react.memo_cache_sentinel`)?(H=Pe(),n[35]=H):H=n[35];let U;n[36]!==I||n[37]!==c||n[38]!==L?(U=()=>L===`sse`?I.getSseURL(c).toString():I.getWsURL(c).toString(),n[36]=I,n[37]=c,n[38]=L,n[39]=U):U=n[39];let W;n[40]===I?W=n[41]:(W=()=>I.headers(),n[40]=I,n[41]=W);let G;n[42]===D?G=n[43]:(G=async()=>{D(null),i.current=!0},n[42]=D,n[43]=G);let K;n[44]===I?K=n[45]:(K=async()=>{Pe()||Me()||I.isSameOrigin||await I.waitForHealthy()},n[44]=I,n[45]=K);let q;n[46]===We?q=n[47]:(q=e=>{try{We(e)}catch(t){let n=t;C.error(`Failed to handle message`,e.data,n),et({title:`Failed to handle message`,description:st(n),variant:`danger`})}},n[46]=We,n[47]=q);let J=vn({static:H,transportType:L,url:U,headers:W,onOpen:G,waitToConnect:K,onMessage:q,onClose:e=>{C.warn(`WebSocket closed`,e.code,e.reason);let t=En(e);if(E(e=>{let n=t.status;return n.state===k.CLOSED&&n.code===O.KERNEL_STARTUP_ERROR&&(e.state===k.CONNECTING||e.state===k.CLOSED)?{...n,phase:e.phase}:n.state===k.CONNECTING&&(e.state===k.OPEN||e.state===k.CONNECTING&&e.phase===`reconnecting`)?{...n,phase:`reconnecting`}:n}),t.kind===`terminal`&&t.closeTransport){J.close();return}t.kind===`retry`&&Ge(e.code,e.reason)},onError:e=>{C.warn(`WebSocket error`,e),E({state:k.CLOSED,code:O.KERNEL_DISCONNECTED,reason:`kernel not found`}),Ge()}}),Y;return n[48]!==T||n[49]!==V?(Y={connection:T,reconnect:V},n[48]=T,n[49]=V,n[50]=Y):Y=n[50],Y}function kn(e){return{...e,name:e.name}}function An(e){return{name:e.name,dataType:e.datatype,value:e.value}}function jn(e){return{name:e.name,declaredBy:e.declared_by,usedBy:e.used_by}}function Mn(e){return e.name}function Nn(){return de().cellIds.inOrderIds}var Pn=e=>{let t=(0,Z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,X.jsx)(`div`,{"data-testid":`chrome-wrapper`,className:`flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative`,children:n}),t[0]=n,t[1]=r),r};export{rn as a,vt as c,an as i,On as n,xt as o,sn as r,bt as s,Pn as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-rHn2EdoM.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +0,0 @@
1
- import{X as e,Z as t}from"./cells-CxY8RSp7.js";import{t as n}from"./strings-hlCLC-K1.js";function r(r){return r.mimetype.startsWith(`application/vnd.marimo`)||r.mimetype===`text/html`?t(n.asString(r.data)):e(n.asString(r.data))}export{r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-B0Z9INg1.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),n=e(((e,n)=>{n.exports=t()}));export{n as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-B0Z9INg1.js";import{t}from"./react-CUdNIagt.js";var n=e((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),r=e(((e,t)=>{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),t.exports=n()}));export{r as t};
@@ -1 +0,0 @@
1
- import{f as e}from"./useEvent-Dc9HkKI2.js";var t=e(null);export{t};