@marimo-team/frontend 0.23.12-dev7 → 0.23.12-dev9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CellStatus-6opTJjMX.js → CellStatus-BGSEw-sx.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-i1kaFF7n.js → ConnectedDataExplorerComponent-swQQzg5v.js} +1 -1
- package/dist/assets/{DeferredRequestRegistry-RuL7NV1n.js → DeferredRequestRegistry-EP9ZArpv.js} +1 -1
- package/dist/assets/{ImperativeModal-B62Q6S9l.js → ImperativeModal-MQnbMIO2.js} +1 -1
- package/dist/assets/{JsonOutput-CWVuEz6C.js → JsonOutput-CxKHBYIA.js} +3 -3
- package/dist/assets/{LazyAnyLanguageCodeMirror-CsAMDSIw.js → LazyAnyLanguageCodeMirror-CUQODgGJ.js} +2 -2
- package/dist/assets/{MarimoErrorOutput-dYrcxVwq.js → MarimoErrorOutput-G8Q8ZYoi.js} +1 -1
- package/dist/assets/{RSPContexts-VzcTZjG1.js → RSPContexts-CXueMbRb.js} +1 -1
- package/dist/assets/{RenderHTML-ohul2q99.js → RenderHTML-DXJCvdz4.js} +1 -1
- package/dist/assets/{RunButton-BMpP08P_.js → RunButton-B0ruC_FE.js} +1 -1
- package/dist/assets/{add-cell-with-ai-5tJjrFh0.js → add-cell-with-ai-DWNUMbns.js} +1 -1
- package/dist/assets/{add-connection-dialog-pVExi7gB.js → add-connection-dialog-CZ2UuO8f.js} +3 -3
- package/dist/assets/{agent-panel-By97CFFK.js → agent-panel-B-_gvxz2.js} +1 -1
- package/dist/assets/{ai-model-dropdown-Dvmxl0HU.js → ai-model-dropdown-BW60s6ul.js} +1 -1
- package/dist/assets/{any-language-editor-F2HBwXr3.js → any-language-editor-ChWsxHdv.js} +1 -1
- package/dist/assets/{app-config-button-BB5z7_FE.js → app-config-button-DJaefZBz.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-DkQVwQl-.js → architectureDiagram-VXUJARFQ-BTCyBm7a.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-CACq6Mqn.js → blockDiagram-VD42YOAC-mvbUAzY4.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-COoIP9fI.js → c4Diagram-YG6GDRKO-qKF4yNR5.js} +1 -1
- package/dist/assets/{cache-panel-BlIrcwlT.js → cache-panel-Ds3GhmDF.js} +1 -1
- package/dist/assets/{cell-editor-DQKaGrC9.js → cell-editor-CvLW6KK3.js} +1 -1
- package/dist/assets/{cell-link-DBKqdVgo.js → cell-link-BWqpbaiv.js} +1 -1
- package/dist/assets/{cells-DiASVTIh.js → cells-BidbgSuB.js} +3 -3
- package/dist/assets/channel-Bvgym58O.js +1 -0
- package/dist/assets/{chat-display-D8X6vz7W.js → chat-display-BRCFntOw.js} +1 -1
- package/dist/assets/{chat-panel-B9l3ukjX.js → chat-panel-BGCbxSQx.js} +1 -1
- package/dist/assets/{chat-ui-BwH7dd6n.js → chat-ui-CceYGzB9.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-Cr4aqhf3.js → chunk-55IACEB6-BZgGh8Op.js} +1 -1
- package/dist/assets/{chunk-5FQGJX7Z-DTLanAkx.js → chunk-5FQGJX7Z-C6VN0dQj.js} +3 -3
- package/dist/assets/{chunk-ABZYJK2D-BWwBJaW4.js → chunk-ABZYJK2D-DntHwfwl.js} +1 -1
- package/dist/assets/{chunk-ATLVNIR6-ZywQjHDL.js → chunk-ATLVNIR6-CZy1WXhH.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-Q6rM60b0.js → chunk-B4BG7PRW-CifnFMMD.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DkUFRB44.js → chunk-DI55MBZ5-BKMnvFi2.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-A9IRvoap.js → chunk-EXTU4WIE-CYseDwky.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-BC57JRLK.js → chunk-JA3XYJ7Z-Bj396ovX.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-CmPEo2OR.js → chunk-JZLCHNYA-QttzWzFq.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-qcFzulsJ.js → chunk-N4CR4FBY-DgrFkHXi.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-CfKFSQ8y.js → chunk-QN33PNHL-shgGaZ1X.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-DiH4MyLq.js → chunk-QXUST7PY-EJQ74OiC.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-C7n0Esov.js → chunk-S3R3BYOJ-DHLCcICg.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-Yl1gB5ep.js → chunk-TZMSLE5B-BgJLE0Za.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-DrqS8d9F.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-DchP-T46.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-BJ9X4ytb.js → code-block-37QAKDTI--cy-8SOv.js} +1 -1
- package/dist/assets/{column-preview-B3CdpsbL.js → column-preview-BbgM2h8n.js} +1 -1
- package/dist/assets/{command-DRHbYHUP.js → command-CsbsBLBw.js} +1 -1
- package/dist/assets/{command-palette-D2BHtSuk.js → command-palette-Mqu8KKo1.js} +1 -1
- package/dist/assets/{common-CvUUt55g.js → common-B94MReIe.js} +1 -1
- package/dist/assets/{components-CimBDpZ8.js → components-DoRr7Hf1.js} +1 -1
- package/dist/assets/{config-3clPIEB9.js → config-BE150fVL.js} +1 -1
- package/dist/assets/{context-C2Ie4tn_.js → context-DE_5rdOV.js} +1 -1
- package/dist/assets/{copy-icon-EHMT-qlr.js → copy-icon-BCIGtBo0.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-CQqSLzd1.js → cose-bilkent-S5V4N54A-DhxFsKpJ.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-C8k8cWk0.js → dagre-6UL2VRFP-B6hk_Bns.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-BrFXEIvf.js → data-grid-overlay-editor-CTUPMnar.js} +1 -1
- package/dist/assets/{datasource-Da-qoi34.js → datasource-DI-YUWev.js} +1 -1
- package/dist/assets/{dates-D8uxHHPL.js → dates-CnrjjcMO.js} +1 -1
- package/dist/assets/{dependency-graph-panel-CMjZH8W-.js → dependency-graph-panel-B7_LMfP4.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-CyHuNpNq.js → diagram-PSM6KHXK-mo2Enmtf.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-XfuQrtcF.js → diagram-QEK2KX5R-BmkxV10c.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-bJWzui-7.js → diagram-S2PKOQOG-FgQ9g-FW.js} +1 -1
- package/dist/assets/dist-B1NchzZ7.js +1 -0
- package/dist/assets/{dist-CyK0ePPW.js → dist-B3BjoKW1.js} +1 -1
- package/dist/assets/dist-Bc19bAck.js +1 -0
- package/dist/assets/{dist-D-2yWcX9.js → dist-Bj9Iedc0.js} +1 -1
- package/dist/assets/{dist-BHCGBHnf.js → dist-BygSqKXd.js} +1 -1
- package/dist/assets/{dist-77VmTZjj.js → dist-CBFremCY.js} +1 -1
- package/dist/assets/dist-CGfx7GOn.js +1 -0
- package/dist/assets/{dist-CABwQOV5.js → dist-CKZJyGZk.js} +1 -1
- package/dist/assets/{dist-CIQQgRzz.js → dist-CKjd2mnC.js} +1 -1
- package/dist/assets/dist-CKlHe_tO.js +1 -0
- package/dist/assets/{dist-C4-ruy-b.js → dist-CPAr7_4H.js} +1 -1
- package/dist/assets/{dist-FYUcqnI2.js → dist-CmjkyMZS.js} +1 -1
- package/dist/assets/{dist-sJHUucQ8.js → dist-Cq98Ix9k.js} +1 -1
- package/dist/assets/{dist-XexmIjM8.js → dist-CwSi3e6S.js} +1 -1
- package/dist/assets/{dist-Cqrb9QGk.js → dist-D6TmDEVn.js} +1 -1
- package/dist/assets/{dist-DblYTes5.js → dist-DHMtQYxT.js} +1 -1
- package/dist/assets/{dist-BP6Oj7vU.js → dist-DU6-XN1L.js} +1 -1
- package/dist/assets/{dist-CruUwJkI.js → dist-DZJfnBKu.js} +1 -1
- package/dist/assets/dist-D_FHXQyQ.js +1 -0
- package/dist/assets/{dist-CKVgRUgH.js → dist-Ds-fJX2L.js} +1 -1
- package/dist/assets/{dist-DyuwOQr-.js → dist-d_9Qt_7_.js} +1 -1
- package/dist/assets/dist-znptp4sC.js +1 -0
- package/dist/assets/{documentation-panel-BS_uG8hW.js → documentation-panel-BGXFZYSy.js} +1 -1
- package/dist/assets/{download-CdS_EveB.js → download-DgEarSps.js} +1 -1
- package/dist/assets/{edit-page-DanoliKk.js → edit-page-DExCsBoE.js} +4 -4
- package/dist/assets/{erDiagram-Q2GNP2WA-Db-GMQLy.js → erDiagram-Q2GNP2WA-DZx9RiLu.js} +1 -1
- package/dist/assets/{error-banner-BSQVN46J.js → error-banner-C4DZksWV.js} +1 -1
- package/dist/assets/{error-panel-Csh1BgrG.js → error-panel-Bd98g_JW.js} +1 -1
- package/dist/assets/{es-EItoYvXh.js → es-Cy7KBUrF.js} +1 -1
- package/dist/assets/{esm-DwJBDgEq.js → esm-BqXnk7X6.js} +1 -1
- package/dist/assets/{esm-X3Tr2pur.js → esm-DSv-aO_T.js} +1 -1
- package/dist/assets/{field-DlNY-dDH.js → field-CA9HCE2Y.js} +1 -1
- package/dist/assets/{file-explorer-panel--h0xwnRB.js → file-explorer-panel-5GiP_o58.js} +1 -1
- package/dist/assets/{file-icons-D6BjDFSV.js → file-icons-BwFX01F6.js} +1 -1
- package/dist/assets/{file-name-input-CsUxNFtr.js → file-name-input-C_iFa52z.js} +1 -1
- package/dist/assets/{fileToBase64-BSOFR3RV.js → fileToBase64-Doh9J-g6.js} +1 -1
- package/dist/assets/{floating-outline-D2cwxR8Z.js → floating-outline-BDx00oB1.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-DSxxTDOm.js → flowDiagram-NV44I4VS-BaCfA1PD.js} +1 -1
- package/dist/assets/{focus-BvvRVcVF.js → focus-CocfMydm.js} +1 -1
- package/dist/assets/{form-CO925gWV.js → form-DgnBiuvP.js} +1 -1
- package/dist/assets/{formats-ZGU43GQU.js → formats-Dkhsq416.js} +1 -1
- package/dist/assets/{formatting-DhA_x3cD.js → formatting-Bjzx5J8_.js} +1 -1
- package/dist/assets/{gallery-page-CNPcxPCI.js → gallery-page-Cwx-CV9Q.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-Boeh8Xec.js → ganttDiagram-JELNMOA3-D76yMCwq.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-Ww-CAbr5.js → gitGraphDiagram-V2S2FVAM-xaQk-fkD.js} +1 -1
- package/dist/assets/github-BQ8If5nZ.js +1 -0
- package/dist/assets/{glide-data-editor-Bmm8OMxa.js → glide-data-editor-DtDJGBDZ.js} +4 -4
- package/dist/assets/{globals-Bx8Km3LH.js → globals-BDWM3c_z.js} +1 -1
- package/dist/assets/home-page-BuVWyEpt.js +4 -0
- package/dist/assets/{hooks-7dyPrQQS.js → hooks-dPm1h9aq.js} +1 -1
- package/dist/assets/{html-to-image-BWhkUSek.js → html-to-image-TCtIotr9.js} +1 -1
- package/dist/assets/{index-C65kCpI9.css → index-Bj8QWDiJ.css} +1 -1
- package/dist/assets/index-CrgYGp5w.js +38 -0
- package/dist/assets/{infoDiagram-HS3SLOUP-emf5Oa26.js → infoDiagram-HS3SLOUP-CaCHYq-C.js} +1 -1
- package/dist/assets/{input-DB2LiTiQ.js → input-b2KTOk0X.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-BM5cpMVY.js → journeyDiagram-XKPGCS4Q-9j5RE995.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-BAIfwDqR.js → kanban-definition-3W4ZIXB7-KTZNPjVQ.js} +1 -1
- package/dist/assets/{kiosk-mode-D0mAc3Fr.js → kiosk-mode-sfaqwl5N.js} +1 -1
- package/dist/assets/{layout-C0MKkswN.js → layout-CVg460UU.js} +3 -3
- package/dist/assets/{linear-BWkmpE3J.js → linear-BWk6x-Bf.js} +1 -1
- package/dist/assets/{links-BN8FYTyp.js → links-BL4SaTJe.js} +1 -1
- package/dist/assets/{logs-panel-BaGDTq_5.js → logs-panel-Bs7u1Wfd.js} +1 -1
- package/dist/assets/{markdown-renderer-CyLjgnQY.js → markdown-renderer-CGZTB2Dx.js} +3 -3
- package/dist/assets/{mermaid-4DMBBIKO-DX6ZCeSi.js → mermaid-4DMBBIKO-1vt0_Bql.js} +1 -1
- package/dist/assets/{mermaid-yhDJCmk2.js → mermaid-BC06IzvM.js} +3 -3
- package/dist/assets/{mermaid-parser.core-CEw6EtVC.js → mermaid-parser.core-UC5-TA69.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-DAiNJDIe.js → mindmap-definition-VGOIOE7T-DwhzT05K.js} +1 -1
- package/dist/assets/{name-cell-input-DBkW5PZU.js → name-cell-input-D4k4IMJD.js} +1 -1
- package/dist/assets/{number-overlay-editor-4rrKClOH.js → number-overlay-editor-DU72uJyj.js} +1 -1
- package/dist/assets/{outline-panel-xLeB4sTR.js → outline-panel-5sRz-QR2.js} +1 -1
- package/dist/assets/{packages-panel-BbWGOWIZ.js → packages-panel-DhXpwKjz.js} +1 -1
- package/dist/assets/{pair-with-agent-modal-Q9Od23Rh.js → pair-with-agent-modal-BONZmBdh.js} +1 -1
- package/dist/assets/{panels-id0eyz64.js → panels-C3XyfWZa.js} +1 -1
- package/dist/assets/{pathUtils-BXCjaLHB.js → pathUtils-ANiMIEDI.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-KdHVGtb7.js → pieDiagram-ADFJNKIX-Ddohs4pt.js} +1 -1
- package/dist/assets/{precisionRound-BOmLQIKI.js → precisionRound-CCOoIlcP.js} +1 -1
- package/dist/assets/{process-output-BcuY_Us9.js → process-output-CRIsE74Q.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-B9NNSzQG.js → quadrantDiagram-AYHSOK5B-DXHmstFN.js} +1 -1
- package/dist/assets/{radio-group-XouISBp9.js → radio-group-Czn6pjhm.js} +1 -1
- package/dist/assets/react-vega-DrvGjEhj.js +1 -0
- package/dist/assets/{react-vega-BfOzG-mm.js → react-vega-IsGFjh4e.js} +1 -1
- package/dist/assets/{readonly-python-code-BK3Xk2qY.js → readonly-python-code-DtUWOxnZ.js} +1 -1
- package/dist/assets/{renderShortcut-LpVarhnQ.js → renderShortcut-CKbqJyj4.js} +1 -1
- package/dist/assets/{request-registry-K6vbazWs.js → request-registry-unC7eRnq.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-B5pxFnOe.js → requirementDiagram-UZGBJVZJ-FZxRqc8c.js} +1 -1
- package/dist/assets/{reveal-component-Do91RUH9.js → reveal-component-DDZ2IxNS.js} +1 -1
- package/dist/assets/{run-page-CYnMjVum.js → run-page-K4C80Bqk.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-w55_GOPb.js → sankeyDiagram-TZEHDZUN-BVzsFJnF.js} +1 -1
- package/dist/assets/{scratchpad-panel-DH3KlUbZ.js → scratchpad-panel-Cwl5E8lN.js} +1 -1
- package/dist/assets/{secrets-panel-CgahHnqr.js → secrets-panel-BUtOtnIM.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CW_L_PJr.js → sequenceDiagram-WL72ISMW-DdzNFBtb.js} +1 -1
- package/dist/assets/{session-panel-BJP2lKfE.js → session-panel-DGjSy-dF.js} +1 -1
- package/dist/assets/{share-DQjChRJG.js → share-vrPro738.js} +1 -1
- package/dist/assets/{snippets-panel-DKenTNmv.js → snippets-panel-94zH2JCj.js} +1 -1
- package/dist/assets/{spec-CDgWI0fT.js → spec-BzxoPflZ.js} +1 -1
- package/dist/assets/{src-CvyFXpBy.js → src-CyeQdfB6.js} +1 -1
- package/dist/assets/{state-DwAS0kE4.js → state-ClDZE-YW.js} +1 -1
- package/dist/assets/{state-Cy10NkuA.js → state-CzwQl1aE.js} +1 -1
- package/dist/assets/{state-DjrxAf9W.js → state-RnIztwr-.js} +1 -1
- package/dist/assets/{state-MC8-jN2e.js → state-WA3j91X9.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-BOX6WbbZ.js → stateDiagram-FKZM4ZOC-DCOZ5EVk.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-D_uhE9WV.js +1 -0
- package/dist/assets/stex-CruVQx-P.js +1 -0
- package/dist/assets/{swiper-component-BwPCQTdo.js → swiper-component-B3QJ6Yx5.js} +1 -1
- package/dist/assets/{switch-DvDNxcZP.js → switch-DHhZkGEv.js} +1 -1
- package/dist/assets/{terminal-BXH7Uaqi.js → terminal-C0JxB62q.js} +1 -1
- package/dist/assets/{textarea-BBpaAGpK.js → textarea-Dz09niIv.js} +1 -1
- package/dist/assets/{time-SPyfucy1.js → time-BsAzPDU3.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-Lad2-H_k.js → timeline-definition-IT6M3QCI-BJT2fHGH.js} +1 -1
- package/dist/assets/{tracing-Bz68-Fa1.js → tracing-C_GaBGFx.js} +1 -1
- package/dist/assets/tracing-panel-BkzzwM_5.js +2 -0
- package/dist/assets/{tree-actions-C729o8TG.js → tree-actions-CesD4Rcl.js} +1 -1
- package/dist/assets/{useBoolean-BMzj74q1.js → useBoolean-48bgGoSa.js} +1 -1
- package/dist/assets/{useCellActionButton-VGB6-gGh.js → useCellActionButton-DNYd1sgZ.js} +1 -1
- package/dist/assets/{useDateFormatter-CAlTJ8HV.js → useDateFormatter-CANi6nSX.js} +1 -1
- package/dist/assets/{useDeleteCell-D_p8uMly.js → useDeleteCell-CCCMHD2a.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-v8fQPE_U.js → useDependencyPanelTab-P57LIkal.js} +1 -1
- package/dist/assets/{useInstallPackage-C1Dd0aIZ.js → useInstallPackage-DEHK-C20.js} +1 -1
- package/dist/assets/{useNotebookActions-Hdu82BAI.js → useNotebookActions-B8xsvWwy.js} +1 -1
- package/dist/assets/{useNumberFormatter-CuxZh3Bq.js → useNumberFormatter-DCM-63YT.js} +1 -1
- package/dist/assets/{usePress-BSFUeqnS.js → usePress-mjvipKvz.js} +1 -1
- package/dist/assets/{useRunCells-DXtOL4UR.js → useRunCells-DFXV3Rm5.js} +1 -1
- package/dist/assets/{useSplitCell-CzaZEqwj.js → useSplitCell-R-0wFhnd.js} +1 -1
- package/dist/assets/{utils-DPvpQ891.js → utils-BIlJBJIu.js} +1 -1
- package/dist/assets/{vega-component-Ch7x9hsC.js → vega-component-wGZOy7qv.js} +1 -1
- package/dist/assets/{vega-loader.browser-CZV6_g2i.js → vega-loader.browser-BJ9oKrvH.js} +1 -1
- package/dist/assets/{write-secret-modal-K2n79wHj.js → write-secret-modal-qfcjtCvk.js} +1 -1
- package/dist/assets/{xychartDiagram-PRI3JC2R-f8MNNXWc.js → xychartDiagram-PRI3JC2R-BtC1koqJ.js} +1 -1
- package/dist/assets/youtube-NfBeYlaL.js +1 -0
- package/dist/index.html +112 -112
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +4 -4
- package/src/components/home/components.tsx +4 -4
- package/src/components/icons/github.tsx +21 -0
- package/src/components/icons/youtube.tsx +21 -0
- package/src/components/storage/components.tsx +3 -7
- package/src/plugins/impl/FileBrowserPlugin.tsx +165 -74
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +314 -0
- package/dist/assets/channel-CpOVhGq6.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-Bxr8oM_y.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-CY-gITpZ.js +0 -1
- package/dist/assets/dist-Bm-o3knM.js +0 -1
- package/dist/assets/dist-C0zWDt4u.js +0 -1
- package/dist/assets/dist-C2qq2Q11.js +0 -1
- package/dist/assets/dist-CI-LXQQ2.js +0 -1
- package/dist/assets/dist-DThLGT6I.js +0 -1
- package/dist/assets/dist-VVk6z_gh.js +0 -1
- package/dist/assets/github-CyzgLJDA.js +0 -1
- package/dist/assets/home-page-CPt4LGp0.js +0 -4
- package/dist/assets/index-awbrczCl.js +0 -38
- package/dist/assets/react-vega-4x9RLMqT.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-JHjNwkbq.js +0 -1
- package/dist/assets/stex-BBWVYm-R.js +0 -1
- package/dist/assets/tracing-panel-BfgGYFNi.js +0 -2
- package/dist/assets/youtube-BEAtppjN.js +0 -1
- /package/dist/assets/{Deferred-BMfCOLaw.js → Deferred-CfyqLOPG.js} +0 -0
- /package/dist/assets/{SSRProvider-DX2edArU.js → SSRProvider-DrpctNAg.js} +0 -0
- /package/dist/assets/{alert-1y_DnRWn.js → alert-Bjh7v4lb.js} +0 -0
- /package/dist/assets/{azure-DBVzcmvx.js → azure-B42ls0Ui.js} +0 -0
- /package/dist/assets/{badge-6yGCqY1Z.js → badge-CFAaMy0O.js} +0 -0
- /package/dist/assets/{blob-BiK5xmlC.js → blob-dGUJ3Bw8.js} +0 -0
- /package/dist/assets/{bundle.esm-D544r2Sr.js → bundle.esm-BULc9l6b.js} +0 -0
- /package/dist/assets/{card-s1ZaQ9ub.js → card-DrIItWkf.js} +0 -0
- /package/dist/assets/{copy-D8MtpXgN.js → copy-CyasABTK.js} +0 -0
- /package/dist/assets/{defaultLocale-DK1MWd7f.js → defaultLocale-CGfP-Ye3.js} +0 -0
- /package/dist/assets/{defaultLocale-OkOxlkkM.js → defaultLocale-CuYNS33t.js} +0 -0
- /package/dist/assets/{dialog-DkJmIrsG.js → dialog-Dr_Y1zNi.js} +0 -0
- /package/dist/assets/{dist-UghNT0W0.js → dist-BM-OLiKa.js} +0 -0
- /package/dist/assets/{dist-ZjSH4Z6x.js → dist-BZhJ1bTM.js} +0 -0
- /package/dist/assets/{dist-CNKFZCiw.js → dist-D-o1OXc9.js} +0 -0
- /package/dist/assets/{dist-BtrqKtvn.js → dist-DnIl7RU-.js} +0 -0
- /package/dist/assets/{emotion-is-prop-valid.esm-CK2zY6a8.js → emotion-is-prop-valid.esm-DiQGBfwj.js} +0 -0
- /package/dist/assets/{empty-state-QmmE2oN4.js → empty-state-vKu4k0Y4.js} +0 -0
- /package/dist/assets/{en-US-BXNio91F.js → en-US-DZwIjHwu.js} +0 -0
- /package/dist/assets/{errors-9jMmWHd9.js → errors-48KFPvCp.js} +0 -0
- /package/dist/assets/{events-XR_LpvHc.js → events-BRbNg7Li.js} +0 -0
- /package/dist/assets/{extends-CeSFM22p.js → extends-2LbFKIQQ.js} +0 -0
- /package/dist/assets/{house-DHu4JLi3.js → house-DkdBWh44.js} +0 -0
- /package/dist/assets/{icons-avFV3lBF.js → icons-D3YFXNmD.js} +0 -0
- /package/dist/assets/{image-BzUcK6ho.js → image-jhXeQEgs.js} +0 -0
- /package/dist/assets/{isValid-DKyiOp4U.js → isValid-Cgon0fXK.js} +0 -0
- /package/dist/assets/{kbd-UVzWBHfi.js → kbd-BCXa3Ocm.js} +0 -0
- /package/dist/assets/{link-e5mRDDOC.js → link-My4Pey3q.js} +0 -0
- /package/dist/assets/{links-CCkJpphF.js → links-DK7te6sJ.js} +0 -0
- /package/dist/assets/{message-circle-RkIzfQEi.js → message-circle-D_YIPPZo.js} +0 -0
- /package/dist/assets/{micromark-factory-space-BUQpMdx2.js → micromark-factory-space-P--XWZhg.js} +0 -0
- /package/dist/assets/{multi-icon-CTvmuLdL.js → multi-icon-CGXdgpE4.js} +0 -0
- /package/dist/assets/{numbers-_ry1Nlla.js → numbers-BKZTJMZ6.js} +0 -0
- /package/dist/assets/{objectWithoutPropertiesLoose-BkUn3I0-.js → objectWithoutPropertiesLoose-Msf1n32r.js} +0 -0
- /package/dist/assets/{ordinal-Cn9sg_-a.js → ordinal-CIZb_ice.js} +0 -0
- /package/dist/assets/{package-BTIV9-Dk.js → package-BoMcg6sy.js} +0 -0
- /package/dist/assets/{panel-context-DC1vAeB3.js → panel-context-RKllh8pM.js} +0 -0
- /package/dist/assets/{paths-DhuNSnZ_.js → paths-kNeJ8nbe.js} +0 -0
- /package/dist/assets/{plus-ZXRHY1up.js → plus-CExKUszm.js} +0 -0
- /package/dist/assets/{preload-helper-BW0IMuFq.js → preload-helper-y72bE5iF.js} +0 -0
- /package/dist/assets/{prop-types-B6Y2e__V.js → prop-types-D_pYuT11.js} +0 -0
- /package/dist/assets/{purify.es-DfJp_of2.js → purify.es-DdxMtdqK.js} +0 -0
- /package/dist/assets/{range-DNqFcYmr.js → range-ClqUI25v.js} +0 -0
- /package/dist/assets/{react-icons.esm-DCqqMD4w.js → react-icons.esm-C2u-_EAQ.js} +0 -0
- /package/dist/assets/{react-resizable-panels.browser.esm-Ce2ksurd.js → react-resizable-panels.browser.esm-CgWOEYeG.js} +0 -0
- /package/dist/assets/{refresh-ccw-Bee7JLOl.js → refresh-ccw-CUkO1Vlo.js} +0 -0
- /package/dist/assets/{refresh-cw-C9FftltI.js → refresh-cw-DcEasnos.js} +0 -0
- /package/dist/assets/{requests-DqJEWJ-Q.js → requests-Bm3bohzL.js} +0 -0
- /package/dist/assets/{rotate-ccw-ZsOWbQCw.js → rotate-ccw-CBXqO1Fd.js} +0 -0
- /package/dist/assets/{save-BNNMzGly.js → save-CGxzAyve.js} +0 -0
- /package/dist/assets/{semaphore-X3ApuO41.js → semaphore-FlZezxaf.js} +0 -0
- /package/dist/assets/{session-CsT5Gg9j.js → session-B6_8umQX.js} +0 -0
- /package/dist/assets/{settings-1WkYMLdR.js → settings-Cn43l_vx.js} +0 -0
- /package/dist/assets/{sparkles-COaEc8Qn.js → sparkles-DctOjjEz.js} +0 -0
- /package/dist/assets/{spinner-BbI9qk88.js → spinner-DTBVbtl-.js} +0 -0
- /package/dist/assets/{square-35tXIgiR.js → square-DPWHdF_-.js} +0 -0
- /package/dist/assets/{square-function-Dx0pKHko.js → square-function-CPbVtjKW.js} +0 -0
- /package/dist/assets/{stex-0ac7Aukl.js → stex-C6JeW1YI.js} +0 -0
- /package/dist/assets/{table-CnW850Wt.js → table-Fk_msRcD.js} +0 -0
- /package/dist/assets/{timer-B6DpdVnC.js → timer-BgiWPhV9.js} +0 -0
- /package/dist/assets/{trash-2-CqTUwVuU.js → trash-2-CjPoUZCP.js} +0 -0
- /package/dist/assets/{trash-BW_KaFjz.js → trash-Icq8_IVf.js} +0 -0
- /package/dist/assets/{triangle-alert-D8Ft17xk.js → triangle-alert-CV7pqa1o.js} +0 -0
- /package/dist/assets/{types-BnrgJ4Gh.js → types-xF5uWODg.js} +0 -0
- /package/dist/assets/{use-toast-kCNiuc-_.js → use-toast-BH8bU9Xf.js} +0 -0
- /package/dist/assets/{useAsyncData-DAQcLiyE.js → useAsyncData-CT1LpOBD.js} +0 -0
- /package/dist/assets/{useDebounce-CpLI2dsc.js → useDebounce-BlBSYv0n.js} +0 -0
- /package/dist/assets/{useDeepCompareMemoize-CWcgQCbT.js → useDeepCompareMemoize-zUHU--0D.js} +0 -0
- /package/dist/assets/{useHotkey-CJo8iX8v.js → useHotkey-C-blZ3Z8.js} +0 -0
- /package/dist/assets/{useIframeCapabilities-B0dNZiKK.js → useIframeCapabilities-DuGyzPVb.js} +0 -0
- /package/dist/assets/{useTheme-D_ZbTTJw.js → useTheme-CWoNQwFz.js} +0 -0
- /package/dist/assets/{uuid-ClFZlR7U.js → uuid-BukULOeS.js} +0 -0
- /package/dist/assets/{workflow-f8flhcJ1.js → workflow-ClrYl5m7.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as I}from"./chunk-LvLJmgfZ.js";import{o as D,p as E}from"./useEvent-D91BmmQi.js";import{t as F}from"./react-Bj1aDYRI.js";import{Yt as L,yr as V}from"./cells-
|
|
1
|
+
import{s as I}from"./chunk-LvLJmgfZ.js";import{o as D,p as E}from"./useEvent-D91BmmQi.js";import{t as F}from"./react-Bj1aDYRI.js";import{Yt as L,yr as V}from"./cells-BidbgSuB.js";import{t as Y}from"./compiler-runtime-B3qBwwSJ.js";import{t as A}from"./cn-X2M2usMq.js";import{t as q}from"./jsx-runtime-PbYoItBR.js";import{r as G}from"./radio-group-Czn6pjhm.js";import{t as g}from"./tooltip-CgQpRVyN.js";import{r as J,t as W}from"./button-BF7GSjhW.js";import{st as M}from"./dist-Dez1I5M9.js";import{f as K}from"./dist-CfGDksO-.js";import{t as Q}from"./createLucideIcon-BTp1tQDO.js";import{t as U}from"./copy-IBNGDypD.js";import{t as X}from"./eye-off-DI0EQXw0.js";import{t as Z}from"./plus-CExKUszm.js";import{t as $}from"./use-toast-BH8bU9Xf.js";import{r as tt}from"./useTheme-CWoNQwFz.js";import{n as ot}from"./copy-CyasABTK.js";import{t as et}from"./esm-DSv-aO_T.js";var rt=Q("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const O=E({isInstantiated:!1,error:null});function at(){return D(O,o=>o.isInstantiated)}var w=Y(),R=I(F(),1),s=I(q(),1),st=[L(),M.lineWrapping],it=[K(),M.lineWrapping];const T=(0,R.memo)(o=>{let t=(0,w.c)(41),{theme:a}=tt(),e,r,i,l,c,k,C,j;t[0]===o?(e=t[1],r=t[2],i=t[3],l=t[4],c=t[5],k=t[6],C=t[7],j=t[8]):({code:r,className:e,initiallyHideCode:i,showHideCode:k,showCopyCode:C,insertNewCell:l,language:j,...c}=o,t[0]=o,t[1]=e,t[2]=r,t[3]=i,t[4]=l,t[5]=c,t[6]=k,t[7]=C,t[8]=j);let m=k===void 0?!0:k,b=C===void 0?!0:C,B=j===void 0?"python":j,[n,H]=(0,R.useState)(i),d;t[9]===e?d=t[10]:(d=A("relative hover-actions-parent w-full overflow-hidden",e),t[9]=e,t[10]=d);let p;t[11]!==n||t[12]!==m?(p=m&&n&&(0,s.jsx)(ct,{tooltip:"Show code",onClick:()=>H(!1)}),t[11]=n,t[12]=m,t[13]=p):p=t[13];let h;t[14]!==r||t[15]!==b?(h=b&&(0,s.jsx)(lt,{text:r}),t[14]=r,t[15]=b,t[16]=h):h=t[16];let f;t[17]!==r||t[18]!==l?(f=l&&(0,s.jsx)(mt,{code:r}),t[17]=r,t[18]=l,t[19]=f):f=t[19];let x;t[20]!==n||t[21]!==m?(x=m&&!n&&(0,s.jsx)(nt,{onClick:()=>H(!0)}),t[20]=n,t[21]=m,t[22]=x):x=t[22];let y;t[23]!==h||t[24]!==f||t[25]!==x?(y=(0,s.jsxs)("div",{className:"absolute top-0 right-0 my-1 mx-2 z-10 hover-action flex gap-2",children:[h,f,x]}),t[23]=h,t[24]=f,t[25]=x,t[26]=y):y=t[26];let z=n&&"opacity-20 h-8 overflow-hidden",v;t[27]===z?v=t[28]:(v=A("cm",z),t[27]=z,t[28]=v);let _=a==="dark"?"dark":"light",S=!n,P=B==="python"?st:it,u;t[29]!==r||t[30]!==c||t[31]!==v||t[32]!==_||t[33]!==S||t[34]!==P?(u=(0,s.jsx)(et,{...c,className:v,theme:_,height:"100%",editable:S,extensions:P,value:r,readOnly:!0}),t[29]=r,t[30]=c,t[31]=v,t[32]=_,t[33]=S,t[34]=P,t[35]=u):u=t[35];let N;return t[36]!==u||t[37]!==d||t[38]!==p||t[39]!==y?(N=(0,s.jsxs)("div",{className:d,children:[p,y,u]}),t[36]=u,t[37]=d,t[38]=p,t[39]=y,t[40]=N):N=t[40],N});T.displayName="ReadonlyCode";var lt=o=>{let t=(0,w.c)(5),a;t[0]===o.text?a=t[1]:(a=J.stopPropagation(async()=>{await ot(o.text),$({title:"Copied to clipboard"})}),t[0]=o.text,t[1]=a);let e=a,r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(U,{size:14,strokeWidth:1.5}),t[2]=r):r=t[2];let i;return t[3]===e?i=t[4]:(i=(0,s.jsx)(g,{content:"Copy code",usePortal:!1,children:(0,s.jsx)(W,{onClick:e,size:"xs",className:"py-0",variant:"secondary",children:r})}),t[3]=e,t[4]=i),i},nt=o=>{let t=(0,w.c)(3),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(X,{size:14,strokeWidth:1.5}),t[0]=a):a=t[0];let e;return t[1]===o.onClick?e=t[2]:(e=(0,s.jsx)(g,{content:"Hide code",usePortal:!1,children:(0,s.jsx)(W,{onClick:o.onClick,size:"xs",className:"py-0",variant:"secondary",children:a})}),t[1]=o.onClick,t[2]=e),e};const ct=o=>{let t=(0,w.c)(7),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(V,{className:"hover-action w-5 h-5 text-muted-foreground cursor-pointer absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-80 hover:opacity-100 z-20"}),t[0]=a):a=t[0];let e;t[1]===o.tooltip?e=t[2]:(e=(0,s.jsx)(g,{usePortal:!1,content:o.tooltip,children:a}),t[1]=o.tooltip,t[2]=e);let r;return t[3]!==o.className||t[4]!==o.onClick||t[5]!==e?(r=(0,s.jsx)("div",{className:o.className,onClick:o.onClick,children:e}),t[3]=o.className,t[4]=o.onClick,t[5]=e,t[6]=r):r=t[6],r};var mt=o=>{let t=(0,w.c)(6),a=G(),e;t[0]!==a||t[1]!==o.code?(e=()=>{a(o.code)},t[0]=a,t[1]=o.code,t[2]=e):e=t[2];let r=e,i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Z,{size:14,strokeWidth:1.5}),t[3]=i):i=t[3];let l;return t[4]===r?l=t[5]:(l=(0,s.jsx)(g,{content:"Add code to notebook",usePortal:!1,children:(0,s.jsx)(W,{onClick:r,size:"xs",className:"py-0",variant:"secondary",children:i})}),t[4]=r,t[5]=l),l};export{rt as i,O as n,at as r,T as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as g}from"./chunk-LvLJmgfZ.js";import{u as d}from"./useEvent-D91BmmQi.js";import{t as A}from"./compiler-runtime-B3qBwwSJ.js";import{p as v,s as b}from"./useEventListener-BakX-tnw.js";import{h as p}from"./utils-Dev6I_Kv.js";import{t as y}from"./cn-X2M2usMq.js";import{t as D}from"./jsx-runtime-PbYoItBR.js";import{l as S}from"./dropdown-menu-DfGLyCbP.js";import{t as h}from"./tooltip-CgQpRVyN.js";import{t as x}from"./kbd-
|
|
1
|
+
import{s as g}from"./chunk-LvLJmgfZ.js";import{u as d}from"./useEvent-D91BmmQi.js";import{t as A}from"./compiler-runtime-B3qBwwSJ.js";import{p as v,s as b}from"./useEventListener-BakX-tnw.js";import{h as p}from"./utils-Dev6I_Kv.js";import{t as y}from"./cn-X2M2usMq.js";import{t as D}from"./jsx-runtime-PbYoItBR.js";import{l as S}from"./dropdown-menu-DfGLyCbP.js";import{t as h}from"./tooltip-CgQpRVyN.js";import{t as x}from"./kbd-BCXa3Ocm.js";var f=A(),m=g(D(),1);function _(o,e=!0){return(0,m.jsx)(E,{shortcut:o,includeName:e})}var E=o=>{let e=(0,f.c)(11),{shortcut:l,includeName:s}=o,t=s===void 0?!0:s,a=d(p),n;e[0]!==a||e[1]!==l?(n=a.getHotkey(l),e[0]=a,e[1]=l,e[2]=n):n=e[2];let r=n,c;e[3]!==r.name||e[4]!==t?(c=t&&(0,m.jsx)("span",{className:"mr-2",children:r.name}),e[3]=r.name,e[4]=t,e[5]=c):c=e[5];let i;e[6]===r.key?i=e[7]:(i=(0,m.jsx)(j,{shortcut:r.key}),e[6]=r.key,e[7]=i);let u;return e[8]!==c||e[9]!==i?(u=(0,m.jsxs)("span",{className:"inline-flex",children:[c,i]}),e[8]=c,e[9]=i,e[10]=u):u=e[10],u};const j=o=>{let e=(0,f.c)(10),{shortcut:l,className:s}=o;if(l===b||l===""){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m.jsx)("span",{}),e[0]=r):r=e[0],r}let t,a;if(e[1]!==s||e[2]!==l){let r=l.split("-");e[5]===s?t=e[6]:(t=y("flex gap-1",s),e[5]=s,e[6]=t),a=r.map(k).map(L),e[1]=s,e[2]=l,e[3]=t,e[4]=a}else t=e[3],a=e[4];let n;return e[7]!==t||e[8]!==a?(n=(0,m.jsx)("div",{className:t,children:a}),e[7]=t,e[8]=a,e[9]=n):n=e[9],n};function H(o){return(0,m.jsx)(w,{shortcut:o})}const w=o=>{let e=(0,f.c)(6),{className:l,shortcut:s}=o,t=d(p),a;e[0]!==t||e[1]!==s?(a=t.getHotkey(s),e[0]=t,e[1]=s,e[2]=a):a=e[2];let n=a,r;return e[3]!==l||e[4]!==n.key?(r=(0,m.jsx)(C,{shortcut:n.key,className:l}),e[3]=l,e[4]=n.key,e[5]=r):r=e[5],r},C=o=>{let e=(0,f.c)(12),{shortcut:l,className:s}=o;if(l===b||l===""){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,m.jsx)("span",{}),e[0]=c):c=e[0],c}let t,a,n;if(e[1]!==s||e[2]!==l){let c=l.split("-");t=S,e[6]===s?a=e[7]:(a=y("flex gap-1 items-center",s),e[6]=s,e[7]=a),n=c.map(k).map(F),e[1]=s,e[2]=l,e[3]=t,e[4]=a,e[5]=n}else t=e[3],a=e[4],n=e[5];let r;return e[8]!==t||e[9]!==a||e[10]!==n?(r=(0,m.jsx)(t,{className:a,children:n}),e[8]=t,e[9]=a,e[10]=n,e[11]=r):r=e[11],r};function k(o){let e=v()?"mac":"default",l=o.toLowerCase(),s=I[o.toLowerCase()];if(s){let t=s.symbols[e]||s.symbols.default;return[s.label,t]}return[l]}var I={ctrl:{symbols:{mac:"\u2303",default:"Ctrl"},label:"Control"},control:{symbols:{mac:"\u2303",default:"Ctrl"},label:"Control"},shift:{symbols:{mac:"\u21E7",default:"Shift"},label:"Shift"},alt:{symbols:{mac:"\u2325",default:"Alt"},label:"Alt/Option"},escape:{symbols:{mac:"\u238B",default:"Esc"},label:"Escape"},arrowup:{symbols:{default:"\u2191"},label:"Arrow Up"},arrowdown:{symbols:{default:"\u2193"},label:"Arrow Down"},arrowleft:{symbols:{default:"\u2190"},label:"Arrow Left"},arrowright:{symbols:{default:"\u2192"},label:"Arrow Right"},backspace:{symbols:{mac:"\u232B",default:"\u27F5"},label:"Backspace"},tab:{symbols:{mac:"\u21E5",default:"\u2B7E"},label:"Tab"},capslock:{symbols:{default:"\u21EA"},label:"Caps Lock"},fn:{symbols:{default:"Fn"},label:"Fn"},cmd:{symbols:{mac:"\u2318",windows:"\u229E Win",default:"Command"},label:"Command"},insert:{symbols:{default:"Ins"},label:"Insert"},delete:{symbols:{mac:"\u2326",default:"Del"},label:"Delete"},home:{symbols:{mac:"\u2196",default:"Home"},label:"Home"},end:{symbols:{mac:"\u2198",default:"End"},label:"End"},mod:{symbols:{mac:"\u2318",windows:"\u229E Win",default:"Ctrl"},label:"Control"}};function N(o){return o.charAt(0).toUpperCase()+o.slice(1)}function L(o){let[e,l]=o;return l?(0,m.jsx)(h,{asChild:!1,tabIndex:-1,content:e,delayDuration:300,children:(0,m.jsx)(x,{children:l},e)},e):(0,m.jsx)(x,{children:N(e)},e)}function F(o){let[e,l]=o;return l?(0,m.jsx)(h,{content:e,delayDuration:300,tabIndex:-1,children:(0,m.jsx)("span",{children:l},e)},e):(0,m.jsx)("span",{children:N(e)},e)}export{_ as a,H as i,C as n,w as r,j as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as s}from"./requests-KshNNAOp.js";import{t as r}from"./DeferredRequestRegistry-
|
|
1
|
+
import{t as s}from"./requests-KshNNAOp.js";import{t as r}from"./DeferredRequestRegistry-EP9ZArpv.js";const o=new r("secrets-result",async(t,e)=>{await s().listSecretKeys({requestId:t,...e})});export{o as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var J;import"./purify.es-DfJp_of2.js";import"./src-CvyFXpBy.js";import{g as ze}from"./chunk-S3R3BYOJ-C7n0Esov.js";import{n as u,r as ke,t as Ge}from"./src-BnrQkOKh.js";import{B as Xe,C as Je,U as Ze,_ as et,a as tt,b as Ne,v as st,z as it}from"./chunk-ABZYJK2D-BWwBJaW4.js";import"./chunk-HN2XXSSU-Bcaj5fRB.js";import"./chunk-CVBHYZKI-C-NWvPQL.js";import"./chunk-ATLVNIR6-ZywQjHDL.js";import"./dist-BXRWfNwi.js";import"./chunk-JA3XYJ7Z-BC57JRLK.js";import"./chunk-JZLCHNYA-CmPEo2OR.js";import"./chunk-QXUST7PY-DiH4MyLq.js";import{r as nt,t as rt}from"./chunk-N4CR4FBY-qcFzulsJ.js";import{t as at}from"./chunk-55IACEB6-Cr4aqhf3.js";import{t as lt}from"./chunk-QN33PNHL-CfKFSQ8y.js";var qe=(function(){var e=u(function(i,m,a,s){for(a||(a={}),s=i.length;s--;a[i[s]]=m);return a},"o"),r=[1,3],h=[1,4],c=[1,5],y=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],d=[2,7],o=[1,26],p=[1,27],S=[1,28],T=[1,29],C=[1,33],A=[1,34],v=[1,35],L=[1,36],x=[1,37],O=[1,38],M=[1,24],$=[1,31],D=[1,32],w=[1,30],_=[1,39],g=[1,40],R=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],G=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pe=[27,29],Ae=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],Me=[1,75],$e=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],ne=[1,88],re=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],V=[63,64],De=[1,101],we=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[1,110],B=[1,106],Q=[1,107],H=[1,108],K=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],ge={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(i,m,a,s,f,t,me){var n=t.length-1;switch(f){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:r,9:h,11:c,13:y},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:h,11:c,13:y},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:h,11:c,13:y},{1:[2,2]},{4:17,5:E,7:13,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:43,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:44,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:45,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:46,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:47,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:48,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:49,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:50,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(R,[2,17]),e(R,[2,18]),e(R,[2,19]),e(R,[2,20]),{30:60,33:62,75:P,89:_,90:g},{30:63,33:62,75:P,89:_,90:g},{30:64,33:62,75:P,89:_,90:g},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{62:77,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{30:78,33:62,75:P,89:_,90:g},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:_,90:g},{5:[1,95]},{30:96,33:62,75:P,89:_,90:g},{5:[1,97]},{30:98,33:62,75:P,89:_,90:g},{63:[1,99]},e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),{64:[1,100]},e(R,[2,59],{76:U}),e(R,[2,64],{76:De}),{33:103,75:[1,102],89:_,90:g},e(we,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(R,[2,57],{76:De}),e(R,[2,58],{76:U}),{5:Y,28:105,31:B,34:Q,36:H,38:K,40:W},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:U},{33:119,89:_,90:g},{33:120,89:_,90:g},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(R,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Y,28:126,31:B,34:Q,36:H,38:K,40:W},e(R,[2,28]),{5:[1,127]},e(R,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(R,[2,47]),{5:[1,131]},e(R,[2,48]),e(R,[2,49]),e(we,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),{33:132,89:_,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(R,[2,27]),{5:Y,28:145,31:B,34:Q,36:H,38:K,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(R,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(R,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(R,[2,43]),{5:Y,28:159,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:160,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:161,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:162,31:B,34:Q,36:H,38:K,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(R,[2,23]),e(R,[2,24]),e(R,[2,25]),e(R,[2,26]),e(R,[2,44]),e(R,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(i,m){if(m.recoverable)this.trace(i);else{var a=Error(i);throw a.hash=m,a}},"parseError"),parse:u(function(i){var m=this,a=[0],s=[],f=[null],t=[],me=this.table,n="",Re=0,Fe=0,Pe=0,He=2,Ue=1,Ke=t.slice.call(arguments,1),I=Object.create(this.lexer),j={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(j.yy[Ie]=this.yy[Ie]);I.setInput(i,j.yy),j.yy.lexer=I,j.yy.parser=this,I.yylloc===void 0&&(I.yylloc={});var Se=I.yylloc;t.push(Se);var We=I.options&&I.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(q){a.length-=2*q,f.length-=q,t.length-=q}u(je,"popStack");function Ve(){var q=s.pop()||I.lex()||Ue;return typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=m.symbols_[q]||q),q}u(Ve,"lex");for(var b,be,z,N,Te,X={},fe,F,Ye,_e;;){if(z=a[a.length-1],this.defaultActions[z]?N=this.defaultActions[z]:(b??(b=Ve()),N=me[z]&&me[z][b]),N===void 0||!N.length||!N[0]){var Be="";for(fe in _e=[],me[z])this.terminals_[fe]&&fe>He&&_e.push("'"+this.terminals_[fe]+"'");Be=I.showPosition?"Parse error on line "+(Re+1)+`:
|
|
1
|
+
var J;import"./purify.es-DdxMtdqK.js";import"./src-CyeQdfB6.js";import{g as ze}from"./chunk-S3R3BYOJ-DHLCcICg.js";import{n as u,r as ke,t as Ge}from"./src-BnrQkOKh.js";import{B as Xe,C as Je,U as Ze,_ as et,a as tt,b as Ne,v as st,z as it}from"./chunk-ABZYJK2D-DntHwfwl.js";import"./chunk-HN2XXSSU-Bcaj5fRB.js";import"./chunk-CVBHYZKI-C-NWvPQL.js";import"./chunk-ATLVNIR6-CZy1WXhH.js";import"./dist-BXRWfNwi.js";import"./chunk-JA3XYJ7Z-Bj396ovX.js";import"./chunk-JZLCHNYA-QttzWzFq.js";import"./chunk-QXUST7PY-EJQ74OiC.js";import{r as nt,t as rt}from"./chunk-N4CR4FBY-DgrFkHXi.js";import{t as at}from"./chunk-55IACEB6-BZgGh8Op.js";import{t as lt}from"./chunk-QN33PNHL-shgGaZ1X.js";var qe=(function(){var e=u(function(i,m,a,s){for(a||(a={}),s=i.length;s--;a[i[s]]=m);return a},"o"),r=[1,3],h=[1,4],c=[1,5],y=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],d=[2,7],o=[1,26],p=[1,27],S=[1,28],T=[1,29],C=[1,33],A=[1,34],v=[1,35],L=[1,36],x=[1,37],O=[1,38],M=[1,24],$=[1,31],D=[1,32],w=[1,30],_=[1,39],g=[1,40],R=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],G=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pe=[27,29],Ae=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],Me=[1,75],$e=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],ne=[1,88],re=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],V=[63,64],De=[1,101],we=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[1,110],B=[1,106],Q=[1,107],H=[1,108],K=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],ge={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(i,m,a,s,f,t,me){var n=t.length-1;switch(f){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:r,9:h,11:c,13:y},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:h,11:c,13:y},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:h,11:c,13:y},{1:[2,2]},{4:17,5:E,7:13,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:43,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:44,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:45,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:46,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:47,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:48,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:49,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:50,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(R,[2,17]),e(R,[2,18]),e(R,[2,19]),e(R,[2,20]),{30:60,33:62,75:P,89:_,90:g},{30:63,33:62,75:P,89:_,90:g},{30:64,33:62,75:P,89:_,90:g},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{62:77,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{30:78,33:62,75:P,89:_,90:g},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:_,90:g},{5:[1,95]},{30:96,33:62,75:P,89:_,90:g},{5:[1,97]},{30:98,33:62,75:P,89:_,90:g},{63:[1,99]},e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),{64:[1,100]},e(R,[2,59],{76:U}),e(R,[2,64],{76:De}),{33:103,75:[1,102],89:_,90:g},e(we,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(R,[2,57],{76:De}),e(R,[2,58],{76:U}),{5:Y,28:105,31:B,34:Q,36:H,38:K,40:W},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:U},{33:119,89:_,90:g},{33:120,89:_,90:g},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(R,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Y,28:126,31:B,34:Q,36:H,38:K,40:W},e(R,[2,28]),{5:[1,127]},e(R,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(R,[2,47]),{5:[1,131]},e(R,[2,48]),e(R,[2,49]),e(we,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),{33:132,89:_,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(R,[2,27]),{5:Y,28:145,31:B,34:Q,36:H,38:K,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(R,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(R,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(R,[2,43]),{5:Y,28:159,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:160,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:161,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:162,31:B,34:Q,36:H,38:K,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(R,[2,23]),e(R,[2,24]),e(R,[2,25]),e(R,[2,26]),e(R,[2,44]),e(R,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(i,m){if(m.recoverable)this.trace(i);else{var a=Error(i);throw a.hash=m,a}},"parseError"),parse:u(function(i){var m=this,a=[0],s=[],f=[null],t=[],me=this.table,n="",Re=0,Fe=0,Pe=0,He=2,Ue=1,Ke=t.slice.call(arguments,1),I=Object.create(this.lexer),j={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(j.yy[Ie]=this.yy[Ie]);I.setInput(i,j.yy),j.yy.lexer=I,j.yy.parser=this,I.yylloc===void 0&&(I.yylloc={});var Se=I.yylloc;t.push(Se);var We=I.options&&I.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(q){a.length-=2*q,f.length-=q,t.length-=q}u(je,"popStack");function Ve(){var q=s.pop()||I.lex()||Ue;return typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=m.symbols_[q]||q),q}u(Ve,"lex");for(var b,be,z,N,Te,X={},fe,F,Ye,_e;;){if(z=a[a.length-1],this.defaultActions[z]?N=this.defaultActions[z]:(b??(b=Ve()),N=me[z]&&me[z][b]),N===void 0||!N.length||!N[0]){var Be="";for(fe in _e=[],me[z])this.terminals_[fe]&&fe>He&&_e.push("'"+this.terminals_[fe]+"'");Be=I.showPosition?"Parse error on line "+(Re+1)+`:
|
|
2
2
|
`+I.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(Re+1)+": Unexpected "+(b==Ue?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Be,{text:I.match,token:this.terminals_[b]||b,line:I.yylineno,loc:Se,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+b);switch(N[0]){case 1:a.push(b),f.push(I.yytext),t.push(I.yylloc),a.push(N[1]),b=null,be?(b=be,be=null):(Fe=I.yyleng,n=I.yytext,Re=I.yylineno,Se=I.yylloc,Pe>0&&Pe--);break;case 2:if(F=this.productions_[N[1]][1],X.$=f[f.length-F],X._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},We&&(X._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(X,[n,Fe,Re,j.yy,N[1],f,t].concat(Ke)),Te!==void 0)return Te;F&&(a=a.slice(0,-1*F*2),f=f.slice(0,-1*F),t=t.slice(0,-1*F)),a.push(this.productions_[N[1]][0]),f.push(X.$),t.push(X._$),Ye=me[a[a.length-2]][a[a.length-1]],a.push(Ye);break;case 3:return!0}}return!0},"parse")};ge.lexer=(function(){return{EOF:1,parseError:u(function(i,m){if(this.yy.parser)this.yy.parser.parseError(i,m);else throw Error(i)},"parseError"),setInput:u(function(i,m){return this.yy=m||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var m=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===s.length?this.yylloc.first_column:0)+s[s.length-a.length].length-a[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),m=Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ll=Object.defineProperty;var Pl=(Ce,ke,T)=>ke in Ce?Ll(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:T}):Ce[ke]=T;var I=(Ce,ke,T)=>Pl(Ce,typeof ke!="symbol"?ke+"":ke,T);import{s as mn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Si}from"./useEvent-D91BmmQi.js";import{t as Il}from"./react-Bj1aDYRI.js";import{D as Ml,Et as Nl,ai as zl,ct as $l,ei as Bl,ti as Dl,__tla as Hl}from"./cells-DiASVTIh.js";import"./react-dom-CSu739Rf.js";import{t as Ei}from"./compiler-runtime-B3qBwwSJ.js";import{_ as _l,t as ql}from"./useEventListener-BakX-tnw.js";import{C as fn,c as jl,t as Ol}from"./utils-Dev6I_Kv.js";import{v as Fl}from"./config-3clPIEB9.js";import{t as zt}from"./cn-X2M2usMq.js";import{t as Vl}from"./jsx-runtime-PbYoItBR.js";import{n as Ul}from"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{Mt as Wl,__tla as Kl}from"./JsonOutput-CWVuEz6C.js";import"./download-CdS_EveB.js";import{t as vn}from"./tooltip-CgQpRVyN.js";import{r as Ri,t as bn}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{t as Zl}from"./createLucideIcon-BTp1tQDO.js";import{d as Ql,g as $t,h as Xl,l as Yl,__tla as Gl}from"./layout-C0MKkswN.js";import{__tla as Jl}from"./markdown-renderer-CyLjgnQY.js";import{t as eo}from"./code-DP40S9ln.js";import{t as to}from"./eye-off-DI0EQXw0.js";import{n as io,t as so,__tla as no}from"./cell-editor-DQKaGrC9.js";import{n as ro,t as ao}from"./RunButton-BMpP08P_.js";import{t as lo}from"./readonly-python-code-BK3Xk2qY.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import{r as oo}from"./useTheme-D_ZbTTJw.js";import"./purify.es-DfJp_of2.js";import"./dates-D8uxHHPL.js";import{t as co}from"./CellStatus-6opTJjMX.js";import{n as uo}from"./useDebounce-CpLI2dsc.js";import{i as ho}from"./useRunCells-DXtOL4UR.js";import"./utils-DPvpQ891.js";import"./vega-loader.browser-CZV6_g2i.js";import"./defaultLocale-OkOxlkkM.js";import"./defaultLocale-DK1MWd7f.js";import{__tla as po}from"./chunk-5FQGJX7Z-DTLanAkx.js";import{r as go}from"./html-to-image-BWhkUSek.js";import{n as mo,r as fo,t as kn}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import"./esm-X3Tr2pur.js";import"./name-cell-input-DBkW5PZU.js";import"./multi-icon-CTvmuLdL.js";import{__tla as vo}from"./loro_wasm_bg-CXnd80ne.js";import"./ws-BnE9sl8z.js";import"./Inputs-CqgPhOqy.js";import"./dist-DQlrXcW2.js";import"./dist-B_4mXtvJ.js";import"./dist-BRRMCoI_.js";import"./dist-BzGK1_vc.js";import"./dist-DyuwOQr-.js";import"./dist-DoxplNOD.js";import"./dist-sJHUucQ8.js";import"./dist-npZrjkCf.js";import"./dist-CkHYcq4S.js";import"./esm-DwJBDgEq.js";let Ai,yn,Bt,Ti,Ci,bo=Promise.all([(()=>{try{return Hl}catch{}})(),(()=>{try{return Kl}catch{}})(),(()=>{try{return Gl}catch{}})(),(()=>{try{return Jl}catch{}})(),(()=>{try{return no}catch{}})(),(()=>{try{return po}catch{}})(),(()=>{try{return vo}catch{}})()]).then(async()=>{var wt,xt;var Ce=Zl("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),ke=Ei(),T=mn(Il(),1),wn=Object.defineProperty,xn=Object.defineProperties,Sn=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Dt=(e,t,i)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ye=(e,t)=>{for(var i in t||(t={}))En.call(t,i)&&Dt(e,i,t[i]);if(Ni)for(var i of Ni(t))Rn.call(t,i)&&Dt(e,i,t[i]);return e},zi=(e,t)=>xn(e,Sn(t)),$i=(e,t,i)=>Dt(e,typeof t=="symbol"?t:t+"",i),An=(e,t,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(e,t)).next())}),_e=(e,t)=>{for(let i in t)e[i]=t[i];return e},C=(e,t)=>Array.from(e.querySelectorAll(t)),Ht=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},qe=e=>{if(typeof e=="string"){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},Ee=(e,t)=>{e.style.transform=t},lt=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!!(i&&i.call(e,t))},ee=(e,t)=>{if(e&&typeof e.closest=="function")return e.closest(t);for(;e;){if(lt(e,t))return e;e=e.parentElement}return null},Bi=e=>{e||(e=document.documentElement);let t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)},Tn=(e,t,i,s="")=>{let n=e.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===e)return a}let r=document.createElement(t);return r.className=i,r.innerHTML=s,e.appendChild(r),r},_t=e=>{let t=document.createElement("style");return e&&e.length>0&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},Di=()=>{let e={};for(let t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(e[s]=n),i}),e){let i=e[t];e[t]=qe(unescape(i))}return e.dependencies!==void 0&&delete e.dependencies,e},Cn=(e,t=0)=>{var i;if(e){let s,n=e.style.height;return e.style.height="0px",e.parentElement&&(e.parentElement.style.height="auto"),s=t-(((i=e.parentElement)==null?void 0:i.offsetHeight)||0),e.style.height=n+"px",e.parentElement&&e.parentElement.style.removeProperty("height"),s}return t},Ln={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Pn=(e="")=>{let t=e.split(".").pop();return t?Ln[t]:void 0},In=(e="")=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Hi=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Hi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_i=/android/gi.test(Hi),Mn=(function(e){if(e){var t=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in e?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};e.cancelAnimationFrame(a);var R=function(){return u(l.filter((function(N){return N.dirty&&N.active})))};if(v.sync)return R();a=e.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(N){return N.dirty=v})),c(R)}},u=function(v){v.filter((function(N){return!N.styleComputed})).forEach((function(N){N.styleComputed=d(N)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(N){y(N),h(N)})),R.forEach(z)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},d=function(v){var R=e.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},z=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},D=function(v,R){return function(N){v.dirty=R,v.active&&c(N)}},L=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},P=function(v){v.observeMutations&&(v.observer=new MutationObserver(D(v,s)),v.observer.observe(v.element,v.observeMutations))},$={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){e.clearTimeout(_),_=e.setTimeout(o(n),B.observeWindowDelay)},M=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;M.forEach((function(N){e[R](N,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function G(v,R){var N=Object.assign({},$,R),W=v.map((function(te){var se=Object.assign({},N,{element:te,active:!0});return(function(K){K.originalStyle={whiteSpace:K.element.style.whiteSpace,display:K.element.style.display,fontSize:K.element.style.fontSize},P(K),K.newbie=!0,K.dirty=!0,l.push(K)})(se),{element:te,fit:D(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:L(se)}}));return c(),W}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?G(t(document.querySelectorAll(v)),R):G([v],R)[0]}})(typeof window>"u"?null:window),Nn=class{constructor(e){$i(this,"allowedToPlayAudio",null),this.Reveal=e,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{this.startEmbeddedMedia({target:e})}),this.clearMediaPlaybackErrors()})}shouldPreload(e){if(this.Reveal.isScrollView())return!0;let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();e.style.setProperty("display",n,"important")}else e.style.display=i;C(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),C(e,"video, audio").forEach(n=>{let r=0;C(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Le&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=e.slideBackgroundElement;if(s){s.style.display="block";let n=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=e.getAttribute("data-background-image"),c=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),u=e.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${In(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=Pn(g);d&&p.setAttribute("type",d),h.appendChild(p)}),n.appendChild(h)}else if(r&&t.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{Mn(t,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",C(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),C(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),C(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,s)=>{C(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(t);r&&r.indexOf(s)===-1&&n.setAttribute(t,r+(/\?/.test(r)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){if(e){let t=this.Reveal.isSpeakerNotes();C(e,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),C(e,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(t&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),t||(C(e,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),C(e,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(e){let t=e.target;typeof t.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=t.paused===!1,s=t.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(t.load(),t.play())},1e3)}startEmbeddedMedia(e){let t=!!ee(e.target,"html"),i=!!ee(e.target,".present");t&&i&&(e.target.paused||e.target.ended)&&(e.target.currentTime=0,this.playMediaElement(e.target)),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(e){let t=e.play();t&&typeof t.catch=="function"&&t.then(()=>{e.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,e.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(e);let s=!!ee(e,"html"),n=!!ee(e,".present"),r=e.muted;s&&n&&!r&&(e.setAttribute("data-muted-by-reveal","true"),e.muted=!0,e.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(e)}))}else e.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(e)})}startEmbeddedIframe(e){let t=e.target;if(this.preventIframeAutoFocus(e),t&&t.contentWindow){let i=!!ee(e.target,"html"),s=!!ee(e.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=t.hasAttribute("data-autoplay")||!!ee(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=_e({unloadIframes:!0},t),e&&e.parentNode&&(C(e,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),C(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),C(e,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),C(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&C(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let e=this.failedAudioPlaybackTargets.size,t=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":t>0?s="Unmute video":e>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(e){this.failedAudioPlaybackTargets.add(e),this.showPlayOrUnmuteButton(e)}onVideoPlaybackNotAllowed(e){this.failedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(e){this.failedMutedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{e.hasAttribute("data-muted-by-reveal")&&(e.muted=!1,e.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(e){let t=e.target;if(t&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===t?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Pe=".slides section",we=".slides>section",qt=".slides>section.present>section",zn=".backgrounds>.slide-background",$n=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Bn="h.v",Dn="h/v",jt="c",qi="c/t",Hn=class{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintView()&&(e.showSlideNumber==="all"||e.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t=this.Reveal.getConfig(),i,s=Bn;if(typeof t.slideNumber=="function")i=t.slideNumber(e);else{typeof t.slideNumber=="string"&&(s=t.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=jt);let r=e&&e.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case jt:i.push(this.Reveal.getSlidePastCount(e)+r);break;case qi:i.push(this.Reveal.getSlidePastCount(e)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(e);i.push(l.h+r);let a=s===Dn?"/":".";this.Reveal.isVerticalSlide(e)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(e);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(e,t,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
1
|
+
var Ll=Object.defineProperty;var Pl=(Ce,ke,T)=>ke in Ce?Ll(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:T}):Ce[ke]=T;var I=(Ce,ke,T)=>Pl(Ce,typeof ke!="symbol"?ke+"":ke,T);import{s as mn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Si}from"./useEvent-D91BmmQi.js";import{t as Il}from"./react-Bj1aDYRI.js";import{D as Ml,Et as Nl,ai as zl,ct as $l,ei as Bl,ti as Dl,__tla as Hl}from"./cells-BidbgSuB.js";import"./react-dom-CSu739Rf.js";import{t as Ei}from"./compiler-runtime-B3qBwwSJ.js";import{_ as _l,t as ql}from"./useEventListener-BakX-tnw.js";import{C as fn,c as jl,t as Ol}from"./utils-Dev6I_Kv.js";import{v as Fl}from"./config-BE150fVL.js";import{t as zt}from"./cn-X2M2usMq.js";import{t as Vl}from"./jsx-runtime-PbYoItBR.js";import{n as Ul}from"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{Mt as Wl,__tla as Kl}from"./JsonOutput-CxKHBYIA.js";import"./download-DgEarSps.js";import{t as vn}from"./tooltip-CgQpRVyN.js";import{r as Ri,t as bn}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{t as Zl}from"./createLucideIcon-BTp1tQDO.js";import{d as Ql,g as $t,h as Xl,l as Yl,__tla as Gl}from"./layout-CVg460UU.js";import{__tla as Jl}from"./markdown-renderer-CGZTB2Dx.js";import{t as eo}from"./code-DP40S9ln.js";import{t as to}from"./eye-off-DI0EQXw0.js";import{n as io,t as so,__tla as no}from"./cell-editor-CvLW6KK3.js";import{n as ro,t as ao}from"./RunButton-B0ruC_FE.js";import{t as lo}from"./readonly-python-code-DtUWOxnZ.js";import"./dist-DHMtQYxT.js";import"./dist-Bj9Iedc0.js";import"./dist-D-o1OXc9.js";import"./dist-BZhJ1bTM.js";import"./dist-DnIl7RU-.js";import"./session-B6_8umQX.js";import{r as oo}from"./useTheme-CWoNQwFz.js";import"./purify.es-DdxMtdqK.js";import"./dates-CnrjjcMO.js";import{t as co}from"./CellStatus-BGSEw-sx.js";import{n as uo}from"./useDebounce-BlBSYv0n.js";import{i as ho}from"./useRunCells-DFXV3Rm5.js";import"./utils-BIlJBJIu.js";import"./vega-loader.browser-BJ9oKrvH.js";import"./defaultLocale-CuYNS33t.js";import"./defaultLocale-CGfP-Ye3.js";import{__tla as po}from"./chunk-5FQGJX7Z-C6VN0dQj.js";import{r as go}from"./html-to-image-TCtIotr9.js";import{n as mo,r as fo,t as kn}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import"./esm-DSv-aO_T.js";import"./name-cell-input-D4k4IMJD.js";import"./multi-icon-CGXdgpE4.js";import{__tla as vo}from"./loro_wasm_bg-CXnd80ne.js";import"./ws-BnE9sl8z.js";import"./Inputs-CqgPhOqy.js";import"./dist-DQlrXcW2.js";import"./dist-B_4mXtvJ.js";import"./dist-BRRMCoI_.js";import"./dist-BzGK1_vc.js";import"./dist-d_9Qt_7_.js";import"./dist-DoxplNOD.js";import"./dist-Cq98Ix9k.js";import"./dist-npZrjkCf.js";import"./dist-CkHYcq4S.js";import"./esm-BqXnk7X6.js";let Ai,yn,Bt,Ti,Ci,bo=Promise.all([(()=>{try{return Hl}catch{}})(),(()=>{try{return Kl}catch{}})(),(()=>{try{return Gl}catch{}})(),(()=>{try{return Jl}catch{}})(),(()=>{try{return no}catch{}})(),(()=>{try{return po}catch{}})(),(()=>{try{return vo}catch{}})()]).then(async()=>{var wt,xt;var Ce=Zl("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),ke=Ei(),T=mn(Il(),1),wn=Object.defineProperty,xn=Object.defineProperties,Sn=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Dt=(e,t,i)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ye=(e,t)=>{for(var i in t||(t={}))En.call(t,i)&&Dt(e,i,t[i]);if(Ni)for(var i of Ni(t))Rn.call(t,i)&&Dt(e,i,t[i]);return e},zi=(e,t)=>xn(e,Sn(t)),$i=(e,t,i)=>Dt(e,typeof t=="symbol"?t:t+"",i),An=(e,t,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(e,t)).next())}),_e=(e,t)=>{for(let i in t)e[i]=t[i];return e},C=(e,t)=>Array.from(e.querySelectorAll(t)),Ht=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},qe=e=>{if(typeof e=="string"){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},Ee=(e,t)=>{e.style.transform=t},lt=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!!(i&&i.call(e,t))},ee=(e,t)=>{if(e&&typeof e.closest=="function")return e.closest(t);for(;e;){if(lt(e,t))return e;e=e.parentElement}return null},Bi=e=>{e||(e=document.documentElement);let t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)},Tn=(e,t,i,s="")=>{let n=e.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===e)return a}let r=document.createElement(t);return r.className=i,r.innerHTML=s,e.appendChild(r),r},_t=e=>{let t=document.createElement("style");return e&&e.length>0&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},Di=()=>{let e={};for(let t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(e[s]=n),i}),e){let i=e[t];e[t]=qe(unescape(i))}return e.dependencies!==void 0&&delete e.dependencies,e},Cn=(e,t=0)=>{var i;if(e){let s,n=e.style.height;return e.style.height="0px",e.parentElement&&(e.parentElement.style.height="auto"),s=t-(((i=e.parentElement)==null?void 0:i.offsetHeight)||0),e.style.height=n+"px",e.parentElement&&e.parentElement.style.removeProperty("height"),s}return t},Ln={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Pn=(e="")=>{let t=e.split(".").pop();return t?Ln[t]:void 0},In=(e="")=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Hi=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Hi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_i=/android/gi.test(Hi),Mn=(function(e){if(e){var t=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in e?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};e.cancelAnimationFrame(a);var R=function(){return u(l.filter((function(N){return N.dirty&&N.active})))};if(v.sync)return R();a=e.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(N){return N.dirty=v})),c(R)}},u=function(v){v.filter((function(N){return!N.styleComputed})).forEach((function(N){N.styleComputed=d(N)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(N){y(N),h(N)})),R.forEach(z)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},d=function(v){var R=e.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},z=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},D=function(v,R){return function(N){v.dirty=R,v.active&&c(N)}},L=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},P=function(v){v.observeMutations&&(v.observer=new MutationObserver(D(v,s)),v.observer.observe(v.element,v.observeMutations))},$={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){e.clearTimeout(_),_=e.setTimeout(o(n),B.observeWindowDelay)},M=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;M.forEach((function(N){e[R](N,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function G(v,R){var N=Object.assign({},$,R),W=v.map((function(te){var se=Object.assign({},N,{element:te,active:!0});return(function(K){K.originalStyle={whiteSpace:K.element.style.whiteSpace,display:K.element.style.display,fontSize:K.element.style.fontSize},P(K),K.newbie=!0,K.dirty=!0,l.push(K)})(se),{element:te,fit:D(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:L(se)}}));return c(),W}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?G(t(document.querySelectorAll(v)),R):G([v],R)[0]}})(typeof window>"u"?null:window),Nn=class{constructor(e){$i(this,"allowedToPlayAudio",null),this.Reveal=e,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{this.startEmbeddedMedia({target:e})}),this.clearMediaPlaybackErrors()})}shouldPreload(e){if(this.Reveal.isScrollView())return!0;let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();e.style.setProperty("display",n,"important")}else e.style.display=i;C(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),C(e,"video, audio").forEach(n=>{let r=0;C(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Le&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=e.slideBackgroundElement;if(s){s.style.display="block";let n=e.slideBackgroundContentElement,r=e.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=e.getAttribute("data-background-image"),c=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),u=e.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${In(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=Pn(g);d&&p.setAttribute("type",d),h.appendChild(p)}),n.appendChild(h)}else if(r&&t.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{Mn(t,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",C(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),C(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),C(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,s)=>{C(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(t);r&&r.indexOf(s)===-1&&n.setAttribute(t,r+(/\?/.test(r)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){if(e){let t=this.Reveal.isSpeakerNotes();C(e,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),C(e,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(t&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),t||(C(e,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),C(e,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(e){let t=e.target;typeof t.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=t.paused===!1,s=t.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(t.load(),t.play())},1e3)}startEmbeddedMedia(e){let t=!!ee(e.target,"html"),i=!!ee(e.target,".present");t&&i&&(e.target.paused||e.target.ended)&&(e.target.currentTime=0,this.playMediaElement(e.target)),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(e){let t=e.play();t&&typeof t.catch=="function"&&t.then(()=>{e.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,e.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(e);let s=!!ee(e,"html"),n=!!ee(e,".present"),r=e.muted;s&&n&&!r&&(e.setAttribute("data-muted-by-reveal","true"),e.muted=!0,e.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(e)}))}else e.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(e)})}startEmbeddedIframe(e){let t=e.target;if(this.preventIframeAutoFocus(e),t&&t.contentWindow){let i=!!ee(e.target,"html"),s=!!ee(e.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=t.hasAttribute("data-autoplay")||!!ee(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=_e({unloadIframes:!0},t),e&&e.parentNode&&(C(e,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),C(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),C(e,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),C(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&C(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let e=this.failedAudioPlaybackTargets.size,t=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":t>0?s="Unmute video":e>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(e){this.failedAudioPlaybackTargets.add(e),this.showPlayOrUnmuteButton(e)}onVideoPlaybackNotAllowed(e){this.failedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(e){this.failedMutedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{e.hasAttribute("data-muted-by-reveal")&&(e.muted=!1,e.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(e){let t=e.target;if(t&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===t?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Pe=".slides section",we=".slides>section",qt=".slides>section.present>section",zn=".backgrounds>.slide-background",$n=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Bn="h.v",Dn="h/v",jt="c",qi="c/t",Hn=class{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintView()&&(e.showSlideNumber==="all"||e.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t=this.Reveal.getConfig(),i,s=Bn;if(typeof t.slideNumber=="function")i=t.slideNumber(e);else{typeof t.slideNumber=="string"&&(s=t.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=jt);let r=e&&e.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case jt:i.push(this.Reveal.getSlidePastCount(e)+r);break;case qi:i.push(this.Reveal.getSlidePastCount(e)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(e);i.push(l.h+r);let a=s===Dn?"/":".";this.Reveal.isVerticalSlide(e)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(e);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(e,t,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
2
2
|
<span class="slide-number-a">${e}</span>
|
|
3
3
|
<span class="slide-number-delimiter">${t}</span>
|
|
4
4
|
<span class="slide-number-b">${i}</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as E}from"./chunk-LvLJmgfZ.js";import{u as I}from"./useEvent-D91BmmQi.js";import{t as L}from"./react-Bj1aDYRI.js";import{D as U,g as $,ki as W,x as F}from"./cells-
|
|
1
|
+
import{s as E}from"./chunk-LvLJmgfZ.js";import{u as I}from"./useEvent-D91BmmQi.js";import{t as L}from"./react-Bj1aDYRI.js";import{D as U,g as $,ki as W,x as F}from"./cells-BidbgSuB.js";import"./react-dom-CSu739Rf.js";import{t as P}from"./compiler-runtime-B3qBwwSJ.js";import{x as H}from"./utils-Dev6I_Kv.js";import{n as z}from"./constants-B9JJ72XE.js";import{T as M,l as O,m as V}from"./config-BE150fVL.js";import{t as Y}from"./cn-X2M2usMq.js";import{t as q}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{N as G,Nt as J,Y as K}from"./JsonOutput-CxKHBYIA.js";import{r as Q}from"./download-DgEarSps.js";import{n as X,t as R}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{r as Z}from"./requests-KshNNAOp.js";import"./layout-CVg460UU.js";import{l as ee}from"./state-WA3j91X9.js";import"./markdown-renderer-CGZTB2Dx.js";import{t as te}from"./copy-IBNGDypD.js";import{i as re,l as se,n as oe,r as B,t as ae,u as ie}from"./panels-C3XyfWZa.js";import{t as ne}from"./spinner-DTBVbtl-.js";import"./dist-DHMtQYxT.js";import"./dist-Bj9Iedc0.js";import"./dist-D-o1OXc9.js";import"./dist-BZhJ1bTM.js";import"./dist-DnIl7RU-.js";import{t as le}from"./use-toast-BH8bU9Xf.js";import{t as me}from"./session-B6_8umQX.js";import"./purify.es-DdxMtdqK.js";import"./dates-CnrjjcMO.js";import{n as ce}from"./copy-CyasABTK.js";import{a as de,c as pe,l as he,n as xe,r as fe,t as be}from"./dialog-Dr_Y1zNi.js";import{t as je}from"./share-vrPro738.js";import"./utils-BIlJBJIu.js";import"./vega-loader.browser-BJ9oKrvH.js";import"./defaultLocale-CuYNS33t.js";import"./defaultLocale-CGfP-Ye3.js";import{a as ue}from"./cell-link-BWqpbaiv.js";import"./chunk-5FQGJX7Z-C6VN0dQj.js";import"./html-to-image-TCtIotr9.js";import{n as ge,t as ye}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import"./esm-DSv-aO_T.js";import"./name-cell-input-D4k4IMJD.js";import{n as ke,t as _e}from"./marimo-icons-CbdeMmbB.js";import"./ws-BnE9sl8z.js";import"./dist-DQlrXcW2.js";import"./dist-B_4mXtvJ.js";import"./dist-BRRMCoI_.js";import"./dist-BzGK1_vc.js";import"./dist-d_9Qt_7_.js";import"./dist-DoxplNOD.js";import"./dist-Cq98Ix9k.js";import"./dist-npZrjkCf.js";import"./dist-CkHYcq4S.js";import"./esm-BqXnk7X6.js";var Ne=P(),ve=E(L(),1),t=E(q(),1);const we=o=>{let e=(0,Ne.c)(27),{appConfig:s}=o,{setCells:r}=U(),{sendComponentValues:p}=Z(),i;e[0]===p?i=e[1]:(i=()=>(B.INSTANCE.start(p),Se),e[0]=p,e[1]=i);let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[2]=n):n=e[2],(0,ve.useEffect)(i,n);let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=me(),e[3]=h):h=e[3];let u;e[4]===r?u=e[5]:(u={autoInstantiate:!0,setCells:r,sessionId:h},e[4]=r,e[5]=u);let{connection:l,reconnect:v}=oe(u),f=I(F),g;e[6]===l.state?g=e[7]:(g=V(l.state),e[6]=l.state,e[7]=g);let w=g,b=I($),y;e[8]!==s||e[9]!==b||e[10]!==w?(y=()=>w&&!b?(0,t.jsxs)(K,{milliseconds:2e3,fallback:null,children:[(0,t.jsx)(ne,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):(0,t.jsx)(re,{appConfig:s,mode:"read"}),e[8]=s,e[9]=b,e[10]=w,e[11]=y):y=e[11];let j=y,m;e:{if(typeof window>"u"){m=null;break e}let x,a;if(e[12]===Symbol.for("react.memo_cache_sentinel")){if(a=new URL(window.location.href),!a.searchParams.has("file")){m=null;break e}a.searchParams.delete("file"),x=a.searchParams.toString(),e[12]=x,e[13]=a,e[14]=m}else x=e[12],a=e[13],m=e[14];let C=x;m=C?`${a.pathname}?${C}`:a.pathname}let k=m,S=s.width,_;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=k&&(0,t.jsx)("div",{className:"flex items-center px-6 pt-4 sm:-mt-8",children:(0,t.jsxs)("a",{href:k,"aria-label":"Back to gallery",className:Y(X({variant:"text",size:"sm"}),"gap-2 px-0 text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(ee,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Back"})]})}),e[15]=_):_=e[15];let c;e[16]===l?c=e[17]:(c=(0,t.jsx)(ie,{connection:l,className:"sm:pt-8",children:_}),e[16]=l,e[17]=c);let d;e[18]===j?d=e[19]:(d=j(),e[18]=j,e[19]=d);let N;return e[20]!==s.width||e[21]!==l||e[22]!==f||e[23]!==v||e[24]!==c||e[25]!==d?(N=(0,t.jsxs)(se,{connection:l,isRunning:f,width:S,onReconnect:v,children:[c,d]}),e[20]=s.width,e[21]=l,e[22]=f,e[23]=v,e[24]=c,e[25]=d,e[26]=N):N=e[26],N};function Se(){B.INSTANCE.stop()}var A=P();const Ce=()=>{let o=(0,A.c)(3),e=I(W);if(!O()||!e)return null;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),o[0]=s):s=o[0];let r;return o[1]===e?r=o[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 print:hidden text-sm","data-testid":"static-notebook-banner",children:[s,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(ze,{code:e})})]}),o[1]=e,o[2]=r),r};var ze=o=>{var T;let e=(0,A.c)(36),{code:s}=o,r=ue()||"notebook.py",p=r.lastIndexOf("/");p!==-1&&(r=r.slice(p+1));let[i]=H(),n=((T=i.sharing)==null?void 0:T.molab)!==!1,h=window.location.href,u;e[0]===s?u=e[1]:(u=je({code:s,baseUrl:`${z.molab}/new`}),e[0]=s,e[1]=u);let l=u,v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(he,{asChild:!0,children:(0,t.jsx)(R,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[2]=v):v=e[2];let f;e[3]===r?f=e[4]:(f=(0,t.jsx)(pe,{children:r}),e[3]=r,e[4]=f);let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[5]=g):g=e[5];let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("br",{}),e[6]=w):w=e[6];let b;e[7]===r?b=e[8]:(b=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",w,"marimo edit ",r]})}),e[7]=r,e[8]=b);let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=!h.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[9]=y):y=e[9];let j;e[10]!==n||e[11]!==l?(j=n&&(0,t.jsxs)("div",{className:"pt-3 border-t flex gap-2 items-center",children:[(0,t.jsx)(R,{asChild:!0,variant:"outline",size:"xs",className:"shrink-0",children:(0,t.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(ke,{size:12,strokeWidth:1.5,className:"mr-1.5 mt-px text-(--grass-11)"}),"Open in molab"]})}),(0,t.jsxs)("p",{className:"text-sm text-(--sky-12)",children:["Run this notebook in"," ",(0,t.jsx)("span",{className:"font-semibold",children:"molab"}),", marimo's cloud-hosted notebook platform."]})]}),e[10]=n,e[11]=l,e[12]=j):j=e[12];let m;e[13]!==b||e[14]!==j?(m=(0,t.jsxs)(fe,{className:"pt-3 text-left space-y-3",children:[g,b,y,j]}),e[13]=b,e[14]=j,e[15]=m):m=e[15];let k;e[16]!==f||e[17]!==m?(k=(0,t.jsxs)(de,{children:[f,m]}),e[16]=f,e[17]=m,e[18]=k):k=e[18];let S;e[19]===s?S=e[20]:(S=async()=>{await ce(s),le({title:"Copied to clipboard"})},e[19]=s,e[20]=S);let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(te,{className:"w-3 h-3 mr-2"}),e[21]=_):_=e[21];let c;e[22]===S?c=e[23]:(c=(0,t.jsxs)(R,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:S,children:[_,"Copy code"]}),e[22]=S,e[23]=c);let d;e[24]!==s||e[25]!==r?(d=()=>{Q(new Blob([s],{type:"text/plain"}),r)},e[24]=s,e[25]=r,e[26]=d):d=e[26];let N;e[27]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(J,{className:"w-3 h-3 mr-2"}),e[27]=N):N=e[27];let x;e[28]===d?x=e[29]:(x=(0,t.jsxs)(R,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:d,children:[N,"Download"]}),e[28]=d,e[29]=x);let a;e[30]!==c||e[31]!==x?(a=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[c,x]}),e[30]=c,e[31]=x,e[32]=a):a=e[32];let C;return e[33]!==k||e[34]!==a?(C=(0,t.jsxs)(be,{children:[v,(0,t.jsxs)(xe,{children:[k,a]})]}),e[33]=k,e[34]=a,e[35]=C):C=e[35],C},D=P(),Re=M()||O(),Ie=o=>{let e=(0,D.c)(9),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(Ce,{}),e[0]=s):s=e[0];let r;e[1]===o.appConfig?r=e[2]:(r=(0,t.jsx)(we,{appConfig:o.appConfig}),e[1]=o.appConfig,e[2]=r);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=Re&&(0,t.jsx)(Pe,{}),e[3]=p):p=e[3];let i;e[4]===r?i=e[5]:(i=(0,t.jsxs)(ye,{children:[s,r,p]}),e[4]=r,e[5]=i);let n;e[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(G,{}),e[6]=n):n=e[6];let h;return e[7]===i?h=e[8]:(h=(0,t.jsx)(ae,{children:(0,t.jsxs)(ge,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[i,n]})}),e[7]=i,e[8]=h),h},Pe=()=>{let o=(0,D.c)(1),e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50 print:hidden","data-testid":"watermark",children:(0,t.jsxs)("a",{href:z.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)(_e,{className:"h-4 w-auto"})]})}),o[0]=e):e=o[0],e},Te=Ie;export{Te as default};
|
package/dist/assets/{sankeyDiagram-TZEHDZUN-w55_GOPb.js → sankeyDiagram-TZEHDZUN-BVzsFJnF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var W,G,j;import"./purify.es-DfJp_of2.js";import{n as xt}from"./ordinal-Cn9sg_-a.js";import{u as tt}from"./src-CvyFXpBy.js";import{t as kt}from"./colors-BG8Z91CW.js";import{n as x}from"./src-BnrQkOKh.js";import{B as vt,C as bt,G as Lt,U as Et,_ as wt,a as At,b as et,s as St,u as Mt,v as It,z as Pt}from"./chunk-ABZYJK2D-BWwBJaW4.js";var Nt=kt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ht(t,i){let r;if(i===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}return r}function ut(t,i){let r;if(i===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function nt(t,i){let r=0;if(i===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let u of t)(u=+i(u,++a,t))&&(r+=u)}return r}function Ct(t){return t.target.depth}function $t(t){return t.depth}function Ot(t,i){return i-1-t.height}function ct(t,i){return t.sourceLinks.length?t.depth:i-1}function Tt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ut(t.sourceLinks,Ct)-1:0}function Q(t){return function(){return t}}function ft(t,i){return Y(t.source,i.source)||t.index-i.index}function yt(t,i){return Y(t.target,i.target)||t.index-i.index}function Y(t,i){return t.y0-i.y0}function it(t){return t.value}function Dt(t){return t.index}function zt(t){return t.nodes}function jt(t){return t.links}function gt(t,i){let r=t.get(i);if(!r)throw Error("missing: "+i);return r}function dt({nodes:t}){for(let i of t){let r=i.y0,a=r;for(let u of i.sourceLinks)u.y0=r+u.width/2,r+=u.width;for(let u of i.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Ft(){let t=0,i=0,r=1,a=1,u=24,d=8,e,c=Dt,l=ct,y,p,g=zt,S=jt,L=6;function k(){let n={nodes:g.apply(null,arguments),links:S.apply(null,arguments)};return O(n),I(n),C(n),T(n),N(n),dt(n),n}k.update=function(n){return dt(n),n},k.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:Q(n),k):c},k.nodeAlign=function(n){return arguments.length?(l=typeof n=="function"?n:Q(n),k):l},k.nodeSort=function(n){return arguments.length?(y=n,k):y},k.nodeWidth=function(n){return arguments.length?(u=+n,k):u},k.nodePadding=function(n){return arguments.length?(d=e=+n,k):d},k.nodes=function(n){return arguments.length?(g=typeof n=="function"?n:Q(n),k):g},k.links=function(n){return arguments.length?(S=typeof n=="function"?n:Q(n),k):S},k.linkSort=function(n){return arguments.length?(p=n,k):p},k.size=function(n){return arguments.length?(t=i=0,r=+n[0],a=+n[1],k):[r-t,a-i]},k.extent=function(n){return arguments.length?(t=+n[0][0],r=+n[1][0],i=+n[0][1],a=+n[1][1],k):[[t,i],[r,a]]},k.iterations=function(n){return arguments.length?(L=+n,k):L};function O({nodes:n,links:f}){for(let[o,s]of n.entries())s.index=o,s.sourceLinks=[],s.targetLinks=[];let h=new Map(n.map((o,s)=>[c(o,s,n),o]));for(let[o,s]of f.entries()){s.index=o;let{source:_,target:b}=s;typeof _!="object"&&(_=s.source=gt(h,_)),typeof b!="object"&&(b=s.target=gt(h,b)),_.sourceLinks.push(s),b.targetLinks.push(s)}if(p!=null)for(let{sourceLinks:o,targetLinks:s}of n)o.sort(p),s.sort(p)}function I({nodes:n}){for(let f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function C({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.depth=s;for(let{target:b}of _.sourceLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function T({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.height=s;for(let{source:b}of _.targetLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function P({nodes:n}){let f=ht(n,s=>s.depth)+1,h=(r-t-u)/(f-1),o=Array(f);for(let s of n){let _=Math.max(0,Math.min(f-1,Math.floor(l.call(null,s,f))));s.layer=_,s.x0=t+_*h,s.x1=s.x0+u,o[_]?o[_].push(s):o[_]=[s]}if(y)for(let s of o)s.sort(y);return o}function v(n){let f=ut(n,h=>(a-i-(h.length-1)*e)/nt(h,it));for(let h of n){let o=i;for(let s of h){s.y0=o,s.y1=o+s.value*f,o=s.y1+e;for(let _ of s.sourceLinks)_.width=_.value*f}o=(a-o+e)/(h.length+1);for(let s=0;s<h.length;++s){let _=h[s];_.y0+=o*(s+1),_.y1+=o*(s+1)}B(h)}}function N(n){let f=P(n);e=Math.min(d,(a-i)/(ht(f,h=>h.length)-1)),v(f);for(let h=0;h<L;++h){let o=.99**h,s=Math.max(1-o,(h+1)/L);$(f,o,s),D(f,o,s)}}function D(n,f,h){for(let o=1,s=n.length;o<s;++o){let _=n[o];for(let b of _){let E=0,U=0;for(let{source:X,value:q}of b.targetLinks){let lt=q*(b.layer-X.layer);E+=z(X,b)*lt,U+=lt}if(!(U>0))continue;let R=(E/U-b.y0)*f;b.y0+=R,b.y1+=R,A(b)}y===void 0&&_.sort(Y),m(_,h)}}function $(n,f,h){for(let o=n.length-2;o>=0;--o){let s=n[o];for(let _ of s){let b=0,E=0;for(let{target:R,value:X}of _.sourceLinks){let q=X*(R.layer-_.layer);b+=M(_,R)*q,E+=q}if(!(E>0))continue;let U=(b/E-_.y0)*f;_.y0+=U,_.y1+=U,A(_)}y===void 0&&s.sort(Y),m(s,h)}}function m(n,f){let h=n.length>>1,o=n[h];V(n,o.y0-e,h-1,f),w(n,o.y1+e,h+1,f),V(n,a,n.length-1,f),w(n,i,0,f)}function w(n,f,h,o){for(;h<n.length;++h){let s=n[h],_=(f-s.y0)*o;_>1e-6&&(s.y0+=_,s.y1+=_),f=s.y1+e}}function V(n,f,h,o){for(;h>=0;--h){let s=n[h],_=(s.y1-f)*o;_>1e-6&&(s.y0-=_,s.y1-=_),f=s.y0-e}}function A({sourceLinks:n,targetLinks:f}){if(p===void 0){for(let{source:{sourceLinks:h}}of f)h.sort(yt);for(let{target:{targetLinks:h}}of n)h.sort(ft)}}function B(n){if(p===void 0)for(let{sourceLinks:f,targetLinks:h}of n)f.sort(yt),h.sort(ft)}function z(n,f){let h=n.y0-(n.sourceLinks.length-1)*e/2;for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h+=s+e}for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h-=s}return h}function M(n,f){let h=f.y0-(f.targetLinks.length-1)*e/2;for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h+=s+e}for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h-=s}return h}return k}var rt=Math.PI,st=2*rt,F=1e-6,Ut=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new ot}ot.prototype=pt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,r,a){this._+="Q"+ +t+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,i,r,a,u,d){this._+="C"+ +t+","+ +i+","+ +r+","+ +a+","+(this._x1=+u)+","+(this._y1=+d)},arcTo:function(t,i,r,a,u){t=+t,i=+i,r=+r,a=+a,u=+u;var d=this._x1,e=this._y1,c=r-t,l=a-i,y=d-t,p=e-i,g=y*y+p*p;if(u<0)throw Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(g>F)if(!(Math.abs(p*c-l*y)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var S=r-d,L=a-e,k=c*c+l*l,O=S*S+L*L,I=Math.sqrt(k),C=Math.sqrt(g),T=u*Math.tan((rt-Math.acos((k+g-O)/(2*I*C)))/2),P=T/C,v=T/I;Math.abs(P-1)>F&&(this._+="L"+(t+P*y)+","+(i+P*p)),this._+="A"+u+","+u+",0,0,"+ +(p*S>y*L)+","+(this._x1=t+v*c)+","+(this._y1=i+v*l)}},arc:function(t,i,r,a,u,d){t=+t,i=+i,r=+r,d=!!d;var e=r*Math.cos(a),c=r*Math.sin(a),l=t+e,y=i+c,p=1^d,g=d?a-u:u-a;if(r<0)throw Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+y:(Math.abs(this._x1-l)>F||Math.abs(this._y1-y)>F)&&(this._+="L"+l+","+y),r&&(g<0&&(g=g%st+st),g>Ut?this._+="A"+r+","+r+",0,1,"+p+","+(t-e)+","+(i-c)+"A"+r+","+r+",0,1,"+p+","+(this._x1=l)+","+(this._y1=y):g>F&&(this._+="A"+r+","+r+",0,"+ +(g>=rt)+","+p+","+(this._x1=t+r*Math.cos(u))+","+(this._y1=i+r*Math.sin(u))))},rect:function(t,i,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};var Wt=pt;function _t(t){return function(){return t}}function Gt(t){return t[0]}function Vt(t){return t[1]}var Bt=Array.prototype.slice;function Rt(t){return t.source}function Xt(t){return t.target}function qt(t){var i=Rt,r=Xt,a=Gt,u=Vt,d=null;function e(){var c,l=Bt.call(arguments),y=i.apply(this,l),p=r.apply(this,l);if(d||(d=c=Wt()),t(d,+a.apply(this,(l[0]=y,l)),+u.apply(this,l),+a.apply(this,(l[0]=p,l)),+u.apply(this,l)),c)return d=null,c+""||null}return e.source=function(c){return arguments.length?(i=c,e):i},e.target=function(c){return arguments.length?(r=c,e):r},e.x=function(c){return arguments.length?(a=typeof c=="function"?c:_t(+c),e):a},e.y=function(c){return arguments.length?(u=typeof c=="function"?c:_t(+c),e):u},e.context=function(c){return arguments.length?(d=c??null,e):d},e}function Qt(t,i,r,a,u){t.moveTo(i,r),t.bezierCurveTo(i=(i+a)/2,r,i,u,a,u)}function Yt(){return qt(Qt)}function Kt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Ht(){return Yt().source(Kt).target(Zt)}var at=(function(){var t=x(function(e,c,l,y){for(l||(l={}),y=e.length;y--;l[e[y]]=c);return l},"o"),i=[1,9],r=[1,10],a=[1,5,10,12],u={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:x(function(e,c,l,y,p,g,S){var L=g.length-1;switch(p){case 7:let k=y.findOrCreateNode(g[L-4].trim().replaceAll('""','"')),O=y.findOrCreateNode(g[L-2].trim().replaceAll('""','"')),I=parseFloat(g[L].trim());y.addLink(k,O,I);break;case 8:case 9:case 11:this.$=g[L];break;case 10:this.$=g[L-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:r},{15:18,16:7,17:8,18:i,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:i,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:x(function(e,c){if(c.recoverable)this.trace(e);else{var l=Error(e);throw l.hash=c,l}},"parseError"),parse:x(function(e){var c=this,l=[0],y=[],p=[null],g=[],S=this.table,L="",k=0,O=0,I=0,C=2,T=1,P=g.slice.call(arguments,1),v=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);v.setInput(e,N.yy),N.yy.lexer=v,N.yy.parser=this,v.yylloc===void 0&&(v.yylloc={});var $=v.yylloc;g.push($);var m=v.options&&v.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(E){l.length-=2*E,p.length-=E,g.length-=E}x(w,"popStack");function V(){var E=y.pop()||v.lex()||T;return typeof E!="number"&&(E instanceof Array&&(y=E,E=y.pop()),E=c.symbols_[E]||E),E}x(V,"lex");for(var A,B,z,M,n,f={},h,o,s,_;;){if(z=l[l.length-1],this.defaultActions[z]?M=this.defaultActions[z]:(A??(A=V()),M=S[z]&&S[z][A]),M===void 0||!M.length||!M[0]){var b="";for(h in _=[],S[z])this.terminals_[h]&&h>C&&_.push("'"+this.terminals_[h]+"'");b=v.showPosition?"Parse error on line "+(k+1)+`:
|
|
1
|
+
var W,G,j;import"./purify.es-DdxMtdqK.js";import{n as xt}from"./ordinal-CIZb_ice.js";import{u as tt}from"./src-CyeQdfB6.js";import{t as kt}from"./colors-BG8Z91CW.js";import{n as x}from"./src-BnrQkOKh.js";import{B as vt,C as bt,G as Lt,U as Et,_ as wt,a as At,b as et,s as St,u as Mt,v as It,z as Pt}from"./chunk-ABZYJK2D-DntHwfwl.js";var Nt=kt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ht(t,i){let r;if(i===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}return r}function ut(t,i){let r;if(i===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function nt(t,i){let r=0;if(i===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let u of t)(u=+i(u,++a,t))&&(r+=u)}return r}function Ct(t){return t.target.depth}function $t(t){return t.depth}function Ot(t,i){return i-1-t.height}function ct(t,i){return t.sourceLinks.length?t.depth:i-1}function Tt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ut(t.sourceLinks,Ct)-1:0}function Q(t){return function(){return t}}function ft(t,i){return Y(t.source,i.source)||t.index-i.index}function yt(t,i){return Y(t.target,i.target)||t.index-i.index}function Y(t,i){return t.y0-i.y0}function it(t){return t.value}function Dt(t){return t.index}function zt(t){return t.nodes}function jt(t){return t.links}function gt(t,i){let r=t.get(i);if(!r)throw Error("missing: "+i);return r}function dt({nodes:t}){for(let i of t){let r=i.y0,a=r;for(let u of i.sourceLinks)u.y0=r+u.width/2,r+=u.width;for(let u of i.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Ft(){let t=0,i=0,r=1,a=1,u=24,d=8,e,c=Dt,l=ct,y,p,g=zt,S=jt,L=6;function k(){let n={nodes:g.apply(null,arguments),links:S.apply(null,arguments)};return O(n),I(n),C(n),T(n),N(n),dt(n),n}k.update=function(n){return dt(n),n},k.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:Q(n),k):c},k.nodeAlign=function(n){return arguments.length?(l=typeof n=="function"?n:Q(n),k):l},k.nodeSort=function(n){return arguments.length?(y=n,k):y},k.nodeWidth=function(n){return arguments.length?(u=+n,k):u},k.nodePadding=function(n){return arguments.length?(d=e=+n,k):d},k.nodes=function(n){return arguments.length?(g=typeof n=="function"?n:Q(n),k):g},k.links=function(n){return arguments.length?(S=typeof n=="function"?n:Q(n),k):S},k.linkSort=function(n){return arguments.length?(p=n,k):p},k.size=function(n){return arguments.length?(t=i=0,r=+n[0],a=+n[1],k):[r-t,a-i]},k.extent=function(n){return arguments.length?(t=+n[0][0],r=+n[1][0],i=+n[0][1],a=+n[1][1],k):[[t,i],[r,a]]},k.iterations=function(n){return arguments.length?(L=+n,k):L};function O({nodes:n,links:f}){for(let[o,s]of n.entries())s.index=o,s.sourceLinks=[],s.targetLinks=[];let h=new Map(n.map((o,s)=>[c(o,s,n),o]));for(let[o,s]of f.entries()){s.index=o;let{source:_,target:b}=s;typeof _!="object"&&(_=s.source=gt(h,_)),typeof b!="object"&&(b=s.target=gt(h,b)),_.sourceLinks.push(s),b.targetLinks.push(s)}if(p!=null)for(let{sourceLinks:o,targetLinks:s}of n)o.sort(p),s.sort(p)}function I({nodes:n}){for(let f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function C({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.depth=s;for(let{target:b}of _.sourceLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function T({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.height=s;for(let{source:b}of _.targetLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function P({nodes:n}){let f=ht(n,s=>s.depth)+1,h=(r-t-u)/(f-1),o=Array(f);for(let s of n){let _=Math.max(0,Math.min(f-1,Math.floor(l.call(null,s,f))));s.layer=_,s.x0=t+_*h,s.x1=s.x0+u,o[_]?o[_].push(s):o[_]=[s]}if(y)for(let s of o)s.sort(y);return o}function v(n){let f=ut(n,h=>(a-i-(h.length-1)*e)/nt(h,it));for(let h of n){let o=i;for(let s of h){s.y0=o,s.y1=o+s.value*f,o=s.y1+e;for(let _ of s.sourceLinks)_.width=_.value*f}o=(a-o+e)/(h.length+1);for(let s=0;s<h.length;++s){let _=h[s];_.y0+=o*(s+1),_.y1+=o*(s+1)}B(h)}}function N(n){let f=P(n);e=Math.min(d,(a-i)/(ht(f,h=>h.length)-1)),v(f);for(let h=0;h<L;++h){let o=.99**h,s=Math.max(1-o,(h+1)/L);$(f,o,s),D(f,o,s)}}function D(n,f,h){for(let o=1,s=n.length;o<s;++o){let _=n[o];for(let b of _){let E=0,U=0;for(let{source:X,value:q}of b.targetLinks){let lt=q*(b.layer-X.layer);E+=z(X,b)*lt,U+=lt}if(!(U>0))continue;let R=(E/U-b.y0)*f;b.y0+=R,b.y1+=R,A(b)}y===void 0&&_.sort(Y),m(_,h)}}function $(n,f,h){for(let o=n.length-2;o>=0;--o){let s=n[o];for(let _ of s){let b=0,E=0;for(let{target:R,value:X}of _.sourceLinks){let q=X*(R.layer-_.layer);b+=M(_,R)*q,E+=q}if(!(E>0))continue;let U=(b/E-_.y0)*f;_.y0+=U,_.y1+=U,A(_)}y===void 0&&s.sort(Y),m(s,h)}}function m(n,f){let h=n.length>>1,o=n[h];V(n,o.y0-e,h-1,f),w(n,o.y1+e,h+1,f),V(n,a,n.length-1,f),w(n,i,0,f)}function w(n,f,h,o){for(;h<n.length;++h){let s=n[h],_=(f-s.y0)*o;_>1e-6&&(s.y0+=_,s.y1+=_),f=s.y1+e}}function V(n,f,h,o){for(;h>=0;--h){let s=n[h],_=(s.y1-f)*o;_>1e-6&&(s.y0-=_,s.y1-=_),f=s.y0-e}}function A({sourceLinks:n,targetLinks:f}){if(p===void 0){for(let{source:{sourceLinks:h}}of f)h.sort(yt);for(let{target:{targetLinks:h}}of n)h.sort(ft)}}function B(n){if(p===void 0)for(let{sourceLinks:f,targetLinks:h}of n)f.sort(yt),h.sort(ft)}function z(n,f){let h=n.y0-(n.sourceLinks.length-1)*e/2;for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h+=s+e}for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h-=s}return h}function M(n,f){let h=f.y0-(f.targetLinks.length-1)*e/2;for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h+=s+e}for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h-=s}return h}return k}var rt=Math.PI,st=2*rt,F=1e-6,Ut=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new ot}ot.prototype=pt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,r,a){this._+="Q"+ +t+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,i,r,a,u,d){this._+="C"+ +t+","+ +i+","+ +r+","+ +a+","+(this._x1=+u)+","+(this._y1=+d)},arcTo:function(t,i,r,a,u){t=+t,i=+i,r=+r,a=+a,u=+u;var d=this._x1,e=this._y1,c=r-t,l=a-i,y=d-t,p=e-i,g=y*y+p*p;if(u<0)throw Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(g>F)if(!(Math.abs(p*c-l*y)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var S=r-d,L=a-e,k=c*c+l*l,O=S*S+L*L,I=Math.sqrt(k),C=Math.sqrt(g),T=u*Math.tan((rt-Math.acos((k+g-O)/(2*I*C)))/2),P=T/C,v=T/I;Math.abs(P-1)>F&&(this._+="L"+(t+P*y)+","+(i+P*p)),this._+="A"+u+","+u+",0,0,"+ +(p*S>y*L)+","+(this._x1=t+v*c)+","+(this._y1=i+v*l)}},arc:function(t,i,r,a,u,d){t=+t,i=+i,r=+r,d=!!d;var e=r*Math.cos(a),c=r*Math.sin(a),l=t+e,y=i+c,p=1^d,g=d?a-u:u-a;if(r<0)throw Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+y:(Math.abs(this._x1-l)>F||Math.abs(this._y1-y)>F)&&(this._+="L"+l+","+y),r&&(g<0&&(g=g%st+st),g>Ut?this._+="A"+r+","+r+",0,1,"+p+","+(t-e)+","+(i-c)+"A"+r+","+r+",0,1,"+p+","+(this._x1=l)+","+(this._y1=y):g>F&&(this._+="A"+r+","+r+",0,"+ +(g>=rt)+","+p+","+(this._x1=t+r*Math.cos(u))+","+(this._y1=i+r*Math.sin(u))))},rect:function(t,i,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};var Wt=pt;function _t(t){return function(){return t}}function Gt(t){return t[0]}function Vt(t){return t[1]}var Bt=Array.prototype.slice;function Rt(t){return t.source}function Xt(t){return t.target}function qt(t){var i=Rt,r=Xt,a=Gt,u=Vt,d=null;function e(){var c,l=Bt.call(arguments),y=i.apply(this,l),p=r.apply(this,l);if(d||(d=c=Wt()),t(d,+a.apply(this,(l[0]=y,l)),+u.apply(this,l),+a.apply(this,(l[0]=p,l)),+u.apply(this,l)),c)return d=null,c+""||null}return e.source=function(c){return arguments.length?(i=c,e):i},e.target=function(c){return arguments.length?(r=c,e):r},e.x=function(c){return arguments.length?(a=typeof c=="function"?c:_t(+c),e):a},e.y=function(c){return arguments.length?(u=typeof c=="function"?c:_t(+c),e):u},e.context=function(c){return arguments.length?(d=c??null,e):d},e}function Qt(t,i,r,a,u){t.moveTo(i,r),t.bezierCurveTo(i=(i+a)/2,r,i,u,a,u)}function Yt(){return qt(Qt)}function Kt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Ht(){return Yt().source(Kt).target(Zt)}var at=(function(){var t=x(function(e,c,l,y){for(l||(l={}),y=e.length;y--;l[e[y]]=c);return l},"o"),i=[1,9],r=[1,10],a=[1,5,10,12],u={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:x(function(e,c,l,y,p,g,S){var L=g.length-1;switch(p){case 7:let k=y.findOrCreateNode(g[L-4].trim().replaceAll('""','"')),O=y.findOrCreateNode(g[L-2].trim().replaceAll('""','"')),I=parseFloat(g[L].trim());y.addLink(k,O,I);break;case 8:case 9:case 11:this.$=g[L];break;case 10:this.$=g[L-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:r},{15:18,16:7,17:8,18:i,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:i,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:x(function(e,c){if(c.recoverable)this.trace(e);else{var l=Error(e);throw l.hash=c,l}},"parseError"),parse:x(function(e){var c=this,l=[0],y=[],p=[null],g=[],S=this.table,L="",k=0,O=0,I=0,C=2,T=1,P=g.slice.call(arguments,1),v=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);v.setInput(e,N.yy),N.yy.lexer=v,N.yy.parser=this,v.yylloc===void 0&&(v.yylloc={});var $=v.yylloc;g.push($);var m=v.options&&v.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(E){l.length-=2*E,p.length-=E,g.length-=E}x(w,"popStack");function V(){var E=y.pop()||v.lex()||T;return typeof E!="number"&&(E instanceof Array&&(y=E,E=y.pop()),E=c.symbols_[E]||E),E}x(V,"lex");for(var A,B,z,M,n,f={},h,o,s,_;;){if(z=l[l.length-1],this.defaultActions[z]?M=this.defaultActions[z]:(A??(A=V()),M=S[z]&&S[z][A]),M===void 0||!M.length||!M[0]){var b="";for(h in _=[],S[z])this.terminals_[h]&&h>C&&_.push("'"+this.terminals_[h]+"'");b=v.showPosition?"Parse error on line "+(k+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+_.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(k+1)+": Unexpected "+(A==T?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(b,{text:v.match,token:this.terminals_[A]||A,line:v.yylineno,loc:$,expected:_})}if(M[0]instanceof Array&&M.length>1)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+A);switch(M[0]){case 1:l.push(A),p.push(v.yytext),g.push(v.yylloc),l.push(M[1]),A=null,B?(A=B,B=null):(O=v.yyleng,L=v.yytext,k=v.yylineno,$=v.yylloc,I>0&&I--);break;case 2:if(o=this.productions_[M[1]][1],f.$=p[p.length-o],f._$={first_line:g[g.length-(o||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(o||1)].first_column,last_column:g[g.length-1].last_column},m&&(f._$.range=[g[g.length-(o||1)].range[0],g[g.length-1].range[1]]),n=this.performAction.apply(f,[L,O,k,N.yy,M[1],p,g].concat(P)),n!==void 0)return n;o&&(l=l.slice(0,-1*o*2),p=p.slice(0,-1*o),g=g.slice(0,-1*o)),l.push(this.productions_[M[1]][0]),p.push(f.$),g.push(f._$),s=S[l[l.length-2]][l[l.length-1]],l.push(s);break;case 3:return!0}}return!0},"parse")};u.lexer=(function(){return{EOF:1,parseError:x(function(e,c){if(this.yy.parser)this.yy.parser.parseError(e,c);else throw Error(e)},"parseError"),setInput:x(function(e,c){return this.yy=c||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:x(function(e){var c=e.length,l=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(e){this.unput(this.match.slice(e))},"less"),pastInput:x(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var e=this.pastInput(),c=Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as ae}from"./chunk-LvLJmgfZ.js";import{d as be,l as ye,n as V,p as oe,u as we}from"./useEvent-D91BmmQi.js";import{t as Ne}from"./react-Bj1aDYRI.js";import{D as ke,Fi as ze,I as Ce,In as Se,Ui as Ie,Wi as m,__tla as Oe}from"./cells-
|
|
1
|
+
import{s as ae}from"./chunk-LvLJmgfZ.js";import{d as be,l as ye,n as V,p as oe,u as we}from"./useEvent-D91BmmQi.js";import{t as Ne}from"./react-Bj1aDYRI.js";import{D as ke,Fi as ze,I as Ce,In as Se,Ui as Ie,Wi as m,__tla as Oe}from"./cells-BidbgSuB.js";import"./react-dom-CSu739Rf.js";import{t as se}from"./compiler-runtime-B3qBwwSJ.js";import{v as ie}from"./useEventListener-BakX-tnw.js";import{x as Ae}from"./utils-Dev6I_Kv.js";import{t as Le}from"./constants-B9JJ72XE.js";import{t as le}from"./cn-X2M2usMq.js";import{t as Me}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{n as Pe,__tla as De}from"./JsonOutput-CxKHBYIA.js";import"./download-DgEarSps.js";import{t as z}from"./tooltip-CgQpRVyN.js";import{t as C}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{r as Ee}from"./requests-KshNNAOp.js";import{t as ne}from"./createLucideIcon-BTp1tQDO.js";import{f as Re,__tla as He}from"./layout-CVg460UU.js";import{n as Ve,t as qe,__tla as Te}from"./LazyAnyLanguageCodeMirror-CUQODgGJ.js";import{__tla as Ue}from"./markdown-renderer-CGZTB2Dx.js";import{u as Fe}from"./toDate-DCE7d2fN.js";import{t as Ge,__tla as We}from"./cell-editor-CvLW6KK3.js";import{t as Be}from"./spinner-DTBVbtl-.js";import{i as Je}from"./useDeleteCell-CCCMHD2a.js";import"./dist-DHMtQYxT.js";import"./dist-Bj9Iedc0.js";import"./dist-D-o1OXc9.js";import"./dist-BZhJ1bTM.js";import"./dist-DnIl7RU-.js";import"./session-B6_8umQX.js";import{r as Ke}from"./useTheme-CWoNQwFz.js";import"./purify.es-DdxMtdqK.js";import"./dates-CnrjjcMO.js";import"./utils-BIlJBJIu.js";import"./vega-loader.browser-BJ9oKrvH.js";import"./defaultLocale-CuYNS33t.js";import"./defaultLocale-CGfP-Ye3.js";import{__tla as Qe}from"./chunk-5FQGJX7Z-C6VN0dQj.js";import"./html-to-image-TCtIotr9.js";import{o as Xe}from"./focus-CocfMydm.js";import{n as Ye,r as Ze,t as me}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import{a as $e}from"./renderShortcut-CKbqJyj4.js";import"./esm-DSv-aO_T.js";import"./name-cell-input-D4k4IMJD.js";import{n as et,r as tt}from"./panel-context-RKllh8pM.js";import{__tla as rt}from"./loro_wasm_bg-CXnd80ne.js";import"./ws-BnE9sl8z.js";import"./Inputs-CqgPhOqy.js";import"./dist-DQlrXcW2.js";import"./dist-B_4mXtvJ.js";import"./dist-BRRMCoI_.js";import"./dist-BzGK1_vc.js";import"./dist-d_9Qt_7_.js";import"./dist-DoxplNOD.js";import"./dist-Cq98Ix9k.js";import"./dist-npZrjkCf.js";import"./dist-CkHYcq4S.js";import"./esm-BqXnk7X6.js";import{t as at}from"./kiosk-mode-sfaqwl5N.js";let ce,ot=Promise.all([(()=>{try{return Oe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return rt}catch{}})()]).then(async()=>{var de=ne("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),he=ne("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),pe=se(),q=ae(Ne(),1),ue=15;const T=ze("marimo:scratchpadHistory:v1",[],Se),fe=oe(!1),xe=oe(null,(e,s,i)=>{if(i=i.trim(),!i)return;let n=e(T);s(T,[i,...n.filter(c=>c!==i)].slice(0,ue))});var t=ae(Me(),1),_e={hide_code:!1,disabled:!1};const ve=()=>{var re;let e=(0,pe.c)(60),s=Ce(),[i]=Ae(),{theme:n}=Ke(),c=(0,q.useRef)(null),U=Xe(),{createNewCell:F,updateCellCode:d}=ke(),{sendRunScratchpad:h}=Ee(),S=et(),G=tt(),l=s.cellRuntime[m],W=l==null?void 0:l.output,I=l==null?void 0:l.status,B=l==null?void 0:l.consoleOutputs,r=((re=s.cellData.__scratch__)==null?void 0:re.code)??"",J=be(xe),[o,p]=ye(fe),u=we(T),O;e[0]!==J||e[1]!==r||e[2]!==h?(O=()=>{h({code:r}),J(r)},e[0]=J,e[1]=r,e[2]=h,e[3]=O):O=e[3];let f=V(O),A;e[4]!==r||e[5]!==F||e[6]!==U?(A=()=>{r.trim()&&F({code:r,before:!1,cellId:U??"__end__"})},e[4]=r,e[5]=F,e[6]=U,e[7]=A):A=e[7];let K=V(A),L;e[8]!==h||e[9]!==d?(L=()=>{d({cellId:m,code:"",formattingChange:!1}),h({code:""});let a=c.current;a&&a.dispatch({changes:{from:0,to:a.state.doc.length,insert:""}})},e[8]=h,e[9]=d,e[10]=L):L=e[10];let Q=V(L),M;e[11]!==p||e[12]!==d?(M=a=>{p(!1),d({cellId:m,code:a,formattingChange:!1});let k=c.current;k&&k.dispatch({changes:{from:0,to:k.state.doc.length,insert:a}})},e[11]=p,e[12]=d,e[13]=M):M=e[13];let X=V(M),[Y,ge]=(0,q.useState)(),P;e[14]!==X||e[15]!==u||e[16]!==o||e[17]!==n?(P=()=>o?(0,t.jsx)("div",{className:"absolute inset-0 z-100 bg-background p-3 border-none overflow-auto",children:(0,t.jsx)("div",{className:"overflow-auto flex flex-col gap-3",children:u.map((a,k)=>(0,t.jsx)("div",{className:"border rounded-md hover:shadow-sm cursor-pointer hover:border-input overflow-hidden",onClick:()=>X(a),children:(0,t.jsx)(q.Suspense,{children:(0,t.jsx)(qe,{language:"python",theme:n,basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1},value:a.trim(),editable:!1,readOnly:!0})})},k))})}):null,e[14]=X,e[15]=u,e[16]=o,e[17]=n,e[18]=P):P=e[18];let Z=P,D;e[19]!==Q||e[20]!==K||e[21]!==f||e[22]!==u.length||e[23]!==o||e[24]!==p||e[25]!==I?(D=()=>(0,t.jsxs)("div",{className:"flex items-center shrink-0 border-b",children:[(0,t.jsx)(z,{content:$e("cell.run"),children:(0,t.jsx)(C,{"data-testid":"scratchpad-run-button",onClick:f,disabled:o,variant:"text",size:"xs",children:(0,t.jsx)(Je,{color:"var(--grass-11)",size:16})})}),(0,t.jsx)(z,{content:"Clear code and outputs",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:Q,children:(0,t.jsx)(de,{size:16})})}),(0,t.jsx)(at,{children:(0,t.jsx)(z,{content:"Insert code",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:K,children:(0,t.jsx)(Ve,{size:16})})})}),(I==="running"||I==="queued")&&(0,t.jsx)(Be,{className:"inline",size:"small"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(z,{content:"Toggle history",children:(0,t.jsx)(C,{size:"xs",variant:"text",className:le(o&&"bg-(--sky-3) rounded-none"),onClick:()=>p(!o),disabled:u.length===0,children:(0,t.jsx)(he,{size:16})})}),(0,t.jsx)(z,{content:(0,t.jsx)("span",{className:"block max-w-prose",children:"Use this scratchpad to experiment with code without restrictions on variable names. Variables defined here aren't saved to notebook memory, and the code is not saved in the notebook file."}),children:(0,t.jsx)(C,{size:"xs",variant:"text",children:(0,t.jsx)(Fe,{size:16})})})]}),e[19]=Q,e[20]=K,e[21]=f,e[22]=u.length,e[23]=o,e[24]=p,e[25]=I,e[26]=D):D=e[26];let $=D,je=S==="vertical",E;e[27]===Symbol.for("react.memo_cache_sentinel")?(E=Ie.create(m),e[27]=E):E=e[27];let x;e[28]===$?x=e[29]:(x=$(),e[28]=$,e[29]=x);let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R=a=>{c.current=a},e[30]=R):R=e[30];let _;e[31]!==r||e[32]!==f||e[33]!==Y||e[34]!==n||e[35]!==i?(_=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Ge,{theme:n,showPlaceholder:!1,id:m,code:r,config:_e,status:"idle",serializedEditorState:null,runCell:f,userConfig:i,editorViewRef:c,setEditorView:R,hidden:!1,showHiddenCode:ie.NOOP,languageAdapter:Y,setLanguageAdapter:ge})}),e[31]=r,e[32]=f,e[33]=Y,e[34]=n,e[35]=i,e[36]=_):_=e[36];let v;e[37]===Z?v=e[38]:(v=Z(),e[37]=Z,e[38]=v);let g;e[39]!==v||e[40]!==x||e[41]!==_?(g=(0,t.jsx)(me,{defaultSize:40,minSize:20,maxSize:70,children:(0,t.jsxs)("div",{className:"h-full flex flex-col overflow-hidden relative",children:[x,_,v]})}),e[39]=v,e[40]=x,e[41]=_,e[42]=g):g=e[42];let ee=je?"h-1":"w-1",j;e[43]===ee?j=e[44]:(j=le("bg-border hover:bg-primary/50 transition-colors",ee),e[43]=ee,e[44]=j);let b;e[45]===j?b=e[46]:(b=(0,t.jsx)(Ze,{className:j}),e[45]=j,e[46]=b);let y;e[47]===W?y=e[48]:(y=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Pe,{allowExpand:!1,output:W,className:Le.outputArea,cellId:m,stale:!1,loading:!1})}),e[47]=W,e[48]=y);let w;e[49]===B?w=e[50]:(w=(0,t.jsx)("div",{className:"overflow-auto shrink-0 max-h-[50%]",children:(0,t.jsx)(Re,{consoleOutputs:B,className:"overflow-auto",stale:!1,interrupted:!1,cellName:"_",onSubmitDebugger:ie.NOOP,cellId:m,debuggerActive:!1})}),e[49]=B,e[50]=w);let N;e[51]!==y||e[52]!==w?(N=(0,t.jsx)(me,{defaultSize:60,minSize:20,children:(0,t.jsxs)("div",{className:"h-full flex flex-col divide-y overflow-hidden",children:[y,w]})}),e[51]=y,e[52]=w,e[53]=N):N=e[53];let H;return e[54]!==S||e[55]!==G||e[56]!==g||e[57]!==b||e[58]!==N?(H=(0,t.jsx)("div",{className:"flex flex-col h-full overflow-hidden",id:E,children:(0,t.jsxs)(Ye,{direction:S,className:"h-full",children:[g,b,N]},G)}),e[54]=S,e[55]=G,e[56]=g,e[57]=b,e[58]=N,e[59]=H):H=e[59],H};let te;te=se(),ce=()=>{let e=(0,te.c)(1),s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(ve,{}),e[0]=s):s=e[0],s}});export{ot as __tla,ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as g}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as k}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{t as M}from"./cn-X2M2usMq.js";import{t as E}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as L}from"./check-DQmqoJgr.js";import{t as A}from"./copy-IBNGDypD.js";import{n as D}from"./DeferredRequestRegistry-
|
|
1
|
+
import{s as g}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as k}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{t as M}from"./cn-X2M2usMq.js";import{t as E}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as L}from"./check-DQmqoJgr.js";import{t as A}from"./copy-IBNGDypD.js";import{n as D}from"./DeferredRequestRegistry-EP9ZArpv.js";import{t as P}from"./spinner-DTBVbtl-.js";import{t as T}from"./plus-CExKUszm.js";import{t as V}from"./badge-CFAaMy0O.js";import{t as q}from"./use-toast-BH8bU9Xf.js";import{n as B}from"./copy-CyasABTK.js";import{n as F}from"./ImperativeModal-MQnbMIO2.js";import{n as I}from"./error-banner-C4DZksWV.js";import{n as O}from"./useAsyncData-CT1LpOBD.js";import{a as R,i as S,n as G,o as w,r as _,t as H}from"./table-Fk_msRcD.js";import{n as J,r as K,t as C}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import{t as Q}from"./empty-state-vKu4k0Y4.js";import{t as U}from"./request-registry-unC7eRnq.js";import{n as W,t as X}from"./write-secret-modal-qfcjtCvk.js";var z=$(),Y=g(k(),1),r=g(E(),1),Z=()=>{let e=(0,z.c)(27),{openModal:t,closeModal:n}=F(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let{data:s,isPending:x,error:f,refetch:m}=O(re,l);if(x){let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(P,{size:"medium",centered:!0}),e[1]=o):o=e[1],o}if(f){let o;return e[2]===f?o=e[3]:(o=(0,r.jsx)(I,{error:f}),e[2]=f,e[3]=o),o}let c;e[4]===s?c=e[5]:(c=s.filter(te).map(oe),e[4]=s,e[5]=c);let i=c;if(s.length===0){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(Q,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:(0,r.jsx)(D,{})}),e[6]=o):o=e[6],o}let a;e[7]!==n||e[8]!==t||e[9]!==i||e[10]!==m?(a=()=>t((0,r.jsx)(X,{providerNames:i,onSuccess:()=>{m(),n()},onClose:n})),e[7]=n,e[8]=t,e[9]=i,e[10]=m,e[11]=a):a=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsx)(T,{className:"h-4 w-4"}),e[12]=b):b=e[12];let d;e[13]===a?d=e[14]:(d=(0,r.jsx)("div",{className:"flex justify-start h-8 border-b",children:(0,r.jsx)("button",{type:"button",className:"border-r px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:a,children:b})}),e[13]=a,e[14]=d);let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,r.jsx)(R,{children:(0,r.jsxs)(w,{children:[(0,r.jsx)(S,{children:"Environment Variable"}),(0,r.jsx)(S,{children:"Source"}),(0,r.jsx)(S,{})]})}),e[15]=j):j=e[15];let p;e[16]===s?p=e[17]:(p=s.map(se),e[16]=s,e[17]=p);let h;e[18]===p?h=e[19]:(h=(0,r.jsxs)(H,{className:"overflow-auto flex-1 mb-16",children:[j,(0,r.jsx)(G,{children:p})]}),e[18]=p,e[19]=h);let u;e[20]!==d||e[21]!==h?(u=(0,r.jsx)(C,{defaultSize:50,minSize:30,maxSize:80,children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[d,h]})}),e[20]=d,e[21]=h,e[22]=u):u=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=(0,r.jsx)(K,{className:"w-1 bg-border hover:bg-primary/50 transition-colors"}),e[23]=v):v=e[23];let y;e[24]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)(C,{defaultSize:50,children:(0,r.jsx)("div",{})}),e[24]=y):y=e[24];let N;return e[25]===u?N=e[26]:(N=(0,r.jsxs)(J,{direction:"horizontal",className:"h-full",children:[u,v,y]}),e[25]=u,e[26]=N),N},ee=e=>{let t=(0,z.c)(9),{className:n,ariaLabel:l,onCopy:s}=e,[x,f]=Y.useState(!1),m;t[0]===s?m=t[1]:(m=()=>{s(),f(!0),setTimeout(()=>f(!1),1e3)},t[0]=s,t[1]=m);let c=m,i;t[2]===x?i=t[3]:(i=x?(0,r.jsx)(L,{className:"w-3 h-3 text-green-700 rounded"}):(0,r.jsx)(A,{className:"w-3 h-3 hover:bg-muted rounded"}),t[2]=x,t[3]=i);let a;return t[4]!==l||t[5]!==n||t[6]!==c||t[7]!==i?(a=(0,r.jsx)("button",{type:"button",className:n,onClick:c,"aria-label":l,children:i}),t[4]=l,t[5]=n,t[6]=c,t[7]=i,t[8]=a):a=t[8],a};async function re(){return W((await U.request({})).secrets)}function te(e){return e.provider!=="env"}function oe(e){return e.name}function se(e){return e.keys.map(t=>(0,r.jsxs)(w,{className:"group",children:[(0,r.jsx)(_,{children:t}),(0,r.jsx)(_,{children:e.provider!=="env"&&(0,r.jsx)(V,{variant:"outline",className:"select-none",children:e.name})}),(0,r.jsx)(_,{children:(0,r.jsx)(ee,{ariaLabel:`Copy ${t}`,onCopy:async()=>{await B(`os.environ["${t}"]`),q({title:"Copied to clipboard",description:`os.environ["${t}"] has been copied to your clipboard.`})},className:M("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${e.name}-${t}`))}export{Z as default};
|
package/dist/assets/{sequenceDiagram-WL72ISMW-CW_L_PJr.js → sequenceDiagram-WL72ISMW-DdzNFBtb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var wt;import"./purify.es-DfJp_of2.js";import{u as Wt}from"./src-CvyFXpBy.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-C7n0Esov.js";import{n as x,r as G}from"./src-BnrQkOKh.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-BWwBJaW4.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-DqzZqBCh.js";import{t as De}from"./dist-BXRWfNwi.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-Yl1gB5ep.js";import{t as Ce}from"./chunk-QZHKN3VN-BAnb9AKF.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
|
|
1
|
+
var wt;import"./purify.es-DdxMtdqK.js";import{u as Wt}from"./src-CyeQdfB6.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-DHLCcICg.js";import{n as x,r as G}from"./src-BnrQkOKh.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-DntHwfwl.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-DqzZqBCh.js";import{t as De}from"./dist-BXRWfNwi.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-BgJLE0Za.js";import{t as Ce}from"./chunk-QZHKN3VN-BAnb9AKF.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
|
|
2
2
|
`+V.showPosition()+`
|
|
3
3
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":"Parse error on line "+(_t+1)+": Unexpected "+(tt==Qt?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(ae,{text:V.match,token:this.terminals_[tt]||tt,line:V.yylineno,loc:Yt,expected:vt})}if(st[0]instanceof Array&&st.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(st[0]){case 1:_.push(tt),C.push(V.yytext),h.push(V.yylloc),_.push(st[1]),tt=null,Vt?(tt=Vt,Vt=null):(Jt=V.yyleng,g=V.yytext,_t=V.yylineno,Yt=V.yylloc,Zt>0&&Zt--);break;case 2:if(dt=this.productions_[st[1]][1],Tt.$=C[C.length-dt],Tt._$={first_line:h[h.length-(dt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(dt||1)].first_column,last_column:h[h.length-1].last_column},fe&&(Tt._$.range=[h[h.length-(dt||1)].range[0],h[h.length-1].range[1]]),Ft=this.performAction.apply(Tt,[g,Jt,_t,xt.yy,st[1],C,h].concat(Te)),Ft!==void 0)return Ft;dt&&(_=_.slice(0,-1*dt*2),C=C.slice(0,-1*dt),h=h.slice(0,-1*dt)),_.push(this.productions_[st[1]][0]),C.push(Tt.$),h.push(Tt._$),ee=It[_[_.length-2]][_[_.length-1]],_.push(ee);break;case 3:return!0}}return!0},"parse")};Ct.lexer=(function(){return{EOF:1,parseError:x(function(I,A){if(this.yy.parser)this.yy.parser.parseError(I,A);else throw Error(I)},"parseError"),setInput:x(function(I,A){return this.yy=A||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var I=this._input[0];return this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I,I.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:x(function(I){var A=I.length,_=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===f.length?this.yylloc.first_column:0)+f[f.length-_.length].length-_[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(I){this.unput(this.match.slice(I))},"less"),pastInput:x(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var I=this.pastInput(),A=Array(I.length+1).join("-");return I+this.upcomingInput()+`
|