@datalayer/agent-runtimes 1.5.21 → 1.5.23
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-embed/chunks/{AgentDetails-C7tCazwB.js → AgentDetails-Xvq2IvHg.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-Cwps4GeH.js → AgentDetailsDialog-DmtKB_5z.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-Gk7jbg8t.js → AgentInspector-EiBHJgc9.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-BSSDOFrT.js → AgentInspectorDialog-3fbLXnLP.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-p2BAkwis.js → CellSidebarExtension-CDnzN9Cb.js} +8 -8
- package/dist-embed/chunks/ChatView-BjZ993Ch.js +32 -0
- package/dist-embed/chunks/{ContextPie-bd_YOjzP.js → ContextPie-DdsXl5s7.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-4gxuEH4A.js → DeckComponent-Cb4_dZpN.js} +2 -2
- package/dist-embed/chunks/{DocumentView-BZSYqTh_.js → DocumentView-Caxb2xz-.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-Cevnk5OF.js → EphemeralDocument-DIHjR5l8.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-JvALIbK2.js → EphemeralNotebook-1Rwa3anx.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CbghNk-F.js → ExcalidrawComponent-vJQwgcUt.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-BOVvWzYQ.js → ExcalidrawModal-BDgjdSz2.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-CRccZ2h7.js → JupyterLexicalExtension-_7FM5Om8.js} +28 -28
- package/dist-embed/chunks/{KernelVariables-ompObBEM.js → KernelVariables-CKIqy599.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-BlBEZPP4.js → LexicalToolRegistry-8wJyLumb.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-DP8sWqVy.js → NotebookToolSurfaces-YAM1bvZS.js} +1 -1
- package/dist-embed/chunks/{NotebookView-DC6BDVEp.js → NotebookView-C8RCvsR1.js} +1 -1
- package/dist-embed/chunks/{Output-C4hBhZ5k.js → Output-BWClePP-.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-CX8wvCLJ.js → SandboxDetailsDialog-CDSxIC0-.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-BuhXDyz6.js → SchemaForm-CO_2yGg2.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-C2X5Ehcg.js → WidgetVariableView--osoOLv8.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-CjgOnMCz.js → YouTubePlugin-BB7Z7INn.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-kzVu7pzT.js → abnfDiagram-VCTEODGH-faK2fyHC.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-ArgZTGSp.js → ar-SA-G6X2FPQ2-D6Ko4I2x.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DVZUrWEx.js → architectureDiagram-5GKGNRK7-DBMLRsbO.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-DQgz6n32.js → az-AZ-76LH7QW2-B3UhxnSz.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-Cx0dPt6-.js → bg-BG-XCXSNQG7-BS-QRZjB.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-DEQh5CUO.js → blockDiagram-868be97b-BXBoGds2.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-C6gbEBfg.js → blockDiagram-I7D4REHJ-BNkBA3Vb.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-BkekmuYO.js → bn-BD-2XOGV67Q-DNg0uIV0.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-CUcRctJE.js → c4Diagram-3f4bdde3-4OdTwU_t.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DSQiEaxC.js → c4Diagram-7LVT6UL2-BGpBMrvl.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Yr14RtMP.js → ca-ES-6MX7JW3Y-Bn4yHfTY.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-Bx9x9aeh.js → celltoolbartracker-DcYHi8Du.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DbzMjK_L.js → chunk-2Q5K7J3B-P4f8Cifn.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-rEZEdbpi.js → chunk-5VM5RSS4-BVaSZr_4.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BH7lDumP.js → chunk-F27PBJKO-C-90E7AT.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BA-vmq_V.js → chunk-IMKFNOWR--OZX7QCt.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BfRI4eJ2.js → chunk-JWPE2WC7-OHowekj4.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-B7pT6rUf.js → chunk-POPQ4Y6H-BgLsR3l7.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BxpYXJab.js → chunk-SVP7TREG-kM9Erqyf.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-LCiyX33a.js → chunk-TICWLB2K-pVdCft0o.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-islJGiCO.js → chunk-XXDRQBXY-BSfKSQ7y.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-C7-Ca_nP.js → classDiagram-ZZMXUADV-Dq0Eb9fh.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-BaJUb6H9.js → classDiagram-f62afe4f-C8j4XsQw.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-s6LKeK41.js → classDiagram-v2-604399ef-BVT78aGU.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-C7-Ca_nP.js → classDiagram-v2-VYDZK3BY-Dq0Eb9fh.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-BieLU8ls.js → code-block-IT6T5CEO-Dbm1cj5T.js} +1 -1
- package/dist-embed/chunks/{component-p2xkjXeh.js → component-CsXw-w1P.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BkezndW_.js → cose-bilkent-JH36ORCC-DEGpy0W8.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-Dw8k7JC8.js → createText-aed3d8b3-BukHQ1P8.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-DYR-S6bD.js → cs-CZ-2BRQDIVT-DUGnyonZ.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DqoI6t3s.js → cynefinDiagram-5FMLGOSQ-CnZ3wqXe.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-DhaHIgKI.js → da-DK-5WZEPLOC-Is8nybqO.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-pcAHu_bK.js → dagre-GXQ25YYZ-Dbp_O7kO.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-CJpRH2Fy.js → de-DE-XR44H4JA-D54sMa4L.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-W17wgXHY.js → diagram-S7CK7UJ4-DHPFd83P.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-mH7QBO8y.js → diagram-UQ7AKVKN-BqXFRP10.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CFHqpDaB.js → diagram-VSXAHHWV-DO0toZBQ.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DQ6XlKLw.js → diagram-VX7I27RA-Diuc1eIf.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Cenqf76m.js → diagram-Z3DM3KII-DtauJWd2.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Cqmnghct.js → ebnfDiagram-PWID7BFC-SU3uN2_2.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-ChO7JKaP.js → edges-b2856ca0-DbD0XDJS.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-DPGB1p8K.js → el-GR-BZB4AONW-CvM3SWat.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-jzhAXdZi.js → erDiagram-5d81789a-C-Tzt4MD.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-hAbP0vV0.js → erDiagram-RLTQ6QDP-C_c-qnRZ.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CLztgM3g.js → es-ES-U4NZUMDT-BZDRRuRf.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4--ffZf65_.js → eu-ES-A7QVB2H4-DAmknI9y.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Cwwej6FC.js → fa-IR-HGAKTJCU-CQhKri4O.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-Tw-dUSxy.js → fi-FI-Z5N7JZ37-DzEDoP64.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-DDUaXZ_Q.js → flowDb-185abca5-Di4aD0Mg.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-DpvDtFPK.js → flowDiagram-1629c991-fImernS2.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DENY4Bvt.js → flowDiagram-HODETNUW-DzoskzA4.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-TxFSXMN7.js → flowDiagram-v2-1d953310-P1qDfDo-.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-BGFxwidp.js → flowchart-elk-definition-6df44142-CXebTCvX.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-CT1NyjSV.js → fr-FR-RHASNOE6-DiSkyvEB.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-DJqKtGUz.js → ganttDiagram-3b0b3873-Bupos8HO.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Ddh9hVkO.js → ganttDiagram-EL5Y4UJY-e3WDalFj.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-B3BVHs36.js → gitGraphDiagram-WWUBYQGX-Ck49f0H9.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-vOvP_sU8.js → gitGraphDiagram-f01e8bc2-DM8FMetI.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BKTaXj_2.js → gl-ES-HMX3MZ6V-3AJMzY-I.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-BJ5SwTG5.js → he-IL-6SHJWFNN-Cuh5an4X.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-D5ZQxogx.js → hi-IN-IWLTKZ5I-BbeuFB83.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-CoAAAzpy.js → hu-HU-A5ZG7DT2-C1OMfhob.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DFWbGjYj.js → id-ID-SAP4L64H-BzKILJTZ.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-YA-Pbv-C.js → index-9bae90f3-l9tb84fw.js} +1 -1
- package/dist-embed/chunks/{index-CIDdX0nc.js → index-BFdE0KFI.js} +1 -1
- package/dist-embed/chunks/{index-Db1qHC1a.js → index-BMandbJB.js} +1 -1
- package/dist-embed/chunks/{index-BTeNnRc_.js → index-BO6VQLH6.js} +4 -4
- package/dist-embed/chunks/{index-1MXuxaax.js → index-BTnG8qrO.js} +1 -1
- package/dist-embed/chunks/{index-BVzIb3Wy.js → index-BktUM85c.js} +1 -1
- package/dist-embed/chunks/{index-BuyZwxeT.js → index-CAd5YQQl.js} +1 -1
- package/dist-embed/chunks/{index-DMf0f7ny.js → index-CFP9psRB.js} +2 -2
- package/dist-embed/chunks/{index-DPzPvDBn.js → index-CKFrz1es.js} +1 -1
- package/dist-embed/chunks/{index-DTCcg1ap.js → index-CM7xo08K.js} +1 -1
- package/dist-embed/chunks/{index-8Jy3Vws8.js → index-CPpm1tqJ.js} +6 -6
- package/dist-embed/chunks/{index-B0MhQWhs.js → index-CRZ1qthh.js} +1 -1
- package/dist-embed/chunks/{index-FbZJIbu_.js → index-CWwj0zW9.js} +1 -1
- package/dist-embed/chunks/{index-CCA_V9Td.js → index-Cu0bp_EI.js} +1 -1
- package/dist-embed/chunks/{index-BfMo5nXi.js → index-CyQgE_Es.js} +2 -2
- package/dist-embed/chunks/{index-BzQxauhZ.js → index-D4QM3qbA.js} +1 -1
- package/dist-embed/chunks/{index-D62kZnWZ.js → index-D64QvG43.js} +5 -5
- package/dist-embed/chunks/{index-JhvHCMRQ.js → index-DEjLPUAD.js} +1 -1
- package/dist-embed/chunks/{index-CkOZcvYl.js → index-DLimRfHQ.js} +1 -1
- package/dist-embed/chunks/{index-B0omKuYl.js → index-DN-cizG6.js} +1 -1
- package/dist-embed/chunks/{index-C7os26P7.js → index-DSN70XMH.js} +2 -2
- package/dist-embed/chunks/{index-CxIZHPCc.js → index-DY8mjz1l.js} +1 -1
- package/dist-embed/chunks/{index-BgWf1G8H.js → index-Dobs-OKl.js} +1 -1
- package/dist-embed/chunks/index-DyVR0igi.js +34 -0
- package/dist-embed/chunks/{index-6feFd5AZ.js → index-PqsSImlj.js} +1 -1
- package/dist-embed/chunks/{index-BNFZYAJT.js → index-SbFvdBPQ.js} +1 -1
- package/dist-embed/chunks/{index-B9vBhR-p.js → index-dYwQAVs_.js} +1 -1
- package/dist-embed/chunks/{index-DTbF6Y7O.js → index-f418CYn7.js} +1 -1
- package/dist-embed/chunks/{index-BL4KuFQP.js → index-f9WZsG2n.js} +1 -1
- package/dist-embed/chunks/{index-DSgHh0-i.js → index-noRoZrq5.js} +1 -1
- package/dist-embed/chunks/{index-B8y71UkT.js → index-wk9vl2uW.js} +1 -1
- package/dist-embed/chunks/{index-Dw1P-H6s.js → index-x45cMPwN.js} +1 -1
- package/dist-embed/chunks/{index.esm-B6P80s3J.js → index.esm-p0OnSU9h.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CZPNcDbH.js → infoDiagram-27XIBGKW-BjyM865y.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-Di_kmyTC.js → infoDiagram-a29d40f1-DXYFLipl.js} +1 -1
- package/dist-embed/chunks/{isEqual-D0eOPSLC.js → isEqual-Cwjr2skl.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DD5TaPvH.js → ishikawaDiagram-5VMMS53U-Bb5g5HNe.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-C7p9bCWQ.js → it-IT-JPQ66NNP-DuG05fUR.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-DupAM7Cv.js → ja-JP-DBVTYXUO-DeDfL3Bk.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-1NqbTyL4.js → journeyDiagram-3NMN7TZE-96VNFopN.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-xr9Xk_mL.js → journeyDiagram-95396277-CQ_kN2gp.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-DrthOcPY.js → kaa-6HZHGXH3-BRKFVG6s.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C4hr0kbU.js → kab-KAB-ZGHBKWFO-Uqakmhz5.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DlSwjr3b.js → kanban-definition-UXKFOSKX-BPsXEKm4.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CrjDkh9r.js → kk-KZ-P5N5QNE5-DWMXMIAK.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-JHWf7VZ6.js → km-KH-HSX4SM5Z-BXNl9QnV.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-CJ4JxKMG.js → ko-KR-MTYHY66A-BZgIqTuN.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-YSlLPag_.js → ku-TR-6OUDTVRD-CQNa5i5U.js} +1 -1
- package/dist-embed/chunks/{layout-5FOjTADt.js → layout-Dq0J6INj.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-eqXJbnX9.js → lexicalHooks-Pqoe8h_O.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-2v6r2YYq.js → lt-LT-XHIRWOB4-BQW2k7iv.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-DVGd68q4.js → lv-LV-5QDEKY6T-B0HRRCC4.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-BU1Nkb56.js → mermaid.core-B9dEBs01.js} +4 -4
- package/dist-embed/chunks/{mermaid.core-DY5DKOtx.js → mermaid.core-pflA3DMC.js} +2 -2
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-sSfUfKt8.js → mindmap-definition-YA3MSWOX-DwLQYAqQ.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-btrk6STt.js → mindmap-definition-e4c1d938-CDWIPlcb.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-D1q8zjMr.js → mr-IN-CRQNXWMA-DXR6sWSH.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-CCWuEpIN.js → my-MM-5M5IBNSE-BZ5_9oCm.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-eJ92wx2h.js → nb-NO-T6EIAALU-CBtv36wZ.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DmkMgsvp.js → nl-NL-IS3SIHDZ-CcqE3cY8.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-CWYEaXBn.js → nn-NO-6E72VCQL-Cl9wPgpU.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CayriaEZ.js → oc-FR-POXYY2M6-CQEkV2p1.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-CydiKcR8.js → pa-IN-N4M65BXN-CaE6yG0U.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB--dcG-x2B.js → pegDiagram-XKGWAZYB-Cwo6HzRh.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-fzYCDL7m.js → percentages-BXMCSKIN-Bk5xifLL.js} +3 -3
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-D-uncTun.js → pieDiagram-E7YTZNPT-BvBHesgq.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-BoVaJIdw.js → pieDiagram-c941bede-Bsn1Bxk5.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-DhiK4YSC.js → pl-PL-T2D74RX3-M1pQcF2j.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CwSVxIqs.js → pt-BR-5N22H2LF-BFDHu72z.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BnxquNJT.js → pt-PT-UZXXM6DQ-DFcZY1Gz.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-ClE_bWPS.js → quadrantDiagram-AXDQQJYC-AaQ_WgXa.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-V_e2KgDu.js → quadrantDiagram-cf8b8fe0-BhaNj-gz.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CkhmY0tS.js → railroadDiagram-O6MQD6OU-BlWFu3pn.js} +1 -1
- package/dist-embed/chunks/{renderer-BwlsmtXF.js → renderer-Dy4lZ1KZ.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-BZw7Ipej.js → requirementDiagram-53bda41b-C2WctYyl.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BXwXUXrr.js → requirementDiagram-BXWQKSXE-BpWNFdrw.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-D3G2f_fQ.js → ro-RO-JPDTUUEW-BGm_Xwik.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-SnVfNwaW.js → ru-RU-B4JR7IUQ-BsrZ_x8p.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-0B_Kvjm2.js → sankeyDiagram-P5KCCOFB-DnT5kYW5.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-e1QLivkZ.js → sankeyDiagram-c3ef121a-3FD4GIJS.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-N-16oABv.js → sequenceDiagram-82a5b84f-CZQmoHAd.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CtbkJYCv.js → sequenceDiagram-WJ2MYXX4-0HHgJN0L.js} +1 -1
- package/dist-embed/chunks/{sessions-C9DBCyZI.js → sessions-BRALW9Yv.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-Da7Bfexz.js → si-LK-N5RQ5JYF-BfaYS44g.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-B3xt8UaI.js → sizeCapture-INFHLROL-CIF2j9e_.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-BB-Ks1b-.js → sk-SK-C5VTKIMK-D-K9yMTN.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-DF3fUKHX.js → sl-SI-NN7IZMDC-B48XvZUw.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-BJcJNr41.js → stateDiagram-43e79a5f-CMlUXY1x.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-LjWP-fRB.js → stateDiagram-D77RDMKH-CkICPC-C.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DTEruWg2.js → stateDiagram-v2-2041ed4f-BcO6vvJA.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-_xCQcvgo.js → stateDiagram-v2-MP3YSRHH-BFlXwfgz.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-OIhmfs6N.js → styles-455b33cd-BfyZJvzN.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CwLjreIv.js → styles-f932cba9-k2wfF-9Q.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-DP74dQpR.js → styles-fcc2142b-z3csTkbW.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-Cf9zgTA9.js → subset-shared.chunk-DzA7mJjZ.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-WYW3AHku.js → subset-worker.chunk-CsTEdHAt.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-CeR-pJHy.js → sv-SE-XGPEYMSR-DfhLO_Vt.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-CgE5QJIv.js → svgDrawCommon-148a3cd9-NqUFgQ9x.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CZyflHYJ.js → swimlanes-42K2YHIH-B6pxWv6a.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Bmr6N4fj.js → swimlanesDiagram-VR7AAH4N-B9ThT6OH.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-lmsodGuU.js → ta-IN-2NMHFXQM-EZA_oxSt.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-DQCWr96I.js → th-TH-HPSO5L25-G9vy_zQH.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-DqY5EM6p.js → timeline-definition-24CTP7MA-DVcslyxd.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-B8wMEyZY.js → timeline-definition-7545f45a-IhzNtIcW.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-CqnvlGZW.js → tr-TR-DEFEU3FU-DBj_G5CD.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-DdWFjbHe.js → uk-UA-QMV73CPH-DN7lMu5H.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-63-O_xI8.js → vennDiagram-4TSXK5OY-KKysbuVs.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-CydTT0Fi.js → vi-VN-M7AON7JQ-LoT02qgd.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C9vLUvHf.js → wardleyDiagram-VM6X3IG4-CTed9ps7.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-BfoQg8n9.js → xychartDiagram-3f383b91-CsxcWMT8.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BZr3T3n_.js → xychartDiagram-S5SC5T6Z-Kpqryflz.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-DEn1TFfK.js → zh-CN-LNUGB5OW-CjexwOqT.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-DJQRmOHH.js → zh-HK-E62DVLB3-B0ys_HV6.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-B7s9vmSf.js → zh-TW-RAJ6MFWO-tQJWLJuU.js} +1 -1
- package/dist-embed/datalayer-app-main.js +19 -19
- package/lib/apps/apps/records.d.ts +0 -29
- package/lib/apps/apps/records.js +11 -34
- package/lib/apps/apps/threads.d.ts +2 -21
- package/lib/apps/apps/threads.js +0 -75
- package/lib/apps/embed/embedSession.d.ts +0 -8
- package/lib/apps/embed/embedSession.js +1 -38
- package/lib/apps/embed/visitorApp.d.ts +22 -3
- package/lib/apps/embed/visitorApp.js +42 -4
- package/lib/apps/plugins/chat/ChatView.js +2 -1
- package/lib/chat/base/ChatBase.js +1 -1
- package/lib/chat/base/fullContextMessages.js +1 -1
- package/lib/hooks/useAgUi.js +1 -1
- package/lib/hooks/useToolApprovals.d.ts +1 -1
- package/lib/hooks/useToolApprovals.js +1 -1
- package/lib/{protocols → portable}/agUiRefusal.d.ts +1 -1
- package/lib/{protocols → portable}/agUiRefusal.js +1 -1
- package/lib/portable/agui.d.ts +72 -0
- package/lib/portable/agui.js +174 -0
- package/lib/portable/conversation.d.ts +124 -0
- package/lib/portable/conversation.js +357 -0
- package/lib/portable/index.d.ts +11 -6
- package/lib/portable/index.js +14 -11
- package/lib/portable/records.d.ts +27 -0
- package/lib/portable/records.js +46 -0
- package/lib/portable/sessions.d.ts +92 -0
- package/lib/portable/sessions.js +134 -0
- package/lib/portable/thread.d.ts +41 -0
- package/lib/portable/thread.js +102 -0
- package/lib/protocols/AGUIAdapter.d.ts +0 -2
- package/lib/protocols/AGUIAdapter.js +39 -74
- package/package.json +1 -1
- package/dist-embed/chunks/ChatView-fHb_i4kH.js +0 -32
- package/dist-embed/chunks/index-DpJpQnPn.js +0 -34
- /package/lib/{utils → portable}/approvals.d.ts +0 -0
- /package/lib/{utils → portable}/approvals.js +0 -0
package/dist-embed/chunks/{code-block-IT6T5CEO-BieLU8ls.js → code-block-IT6T5CEO-Dbm1cj5T.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ku as Mt,kv as Br,kw as zn,kx as qn,ky as Xn,kz as tr,kA as Qn,kB as Jn,kC as Kn,_ as c,r as ce,kD as Zn,j as V,kE as Yn,kF as Gt}from"../datalayer-app-main.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ei(t){return Bt(t)}function Bt(t){return Array.isArray(t)?ti(t):t instanceof RegExp?t:typeof t=="object"?ri(t):t}function ti(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Bt(t[r]);return e}function ri(t){let e={};for(let r in t)e[r]=Bt(t[r]);return e}function Fr(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function jr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?jr(t.substring(0,t.length-1)):t.substr(~e+1)}var at=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Te=class{static hasCaptures(t){return t===null?!1:(at.lastIndex=0,at.test(t))}static replaceCaptures(t,e,r){return t.replace(at,(n,i,o,s)=>{let l=r[parseInt(i||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function Ur(t,e){return t<e?-1:t>e?1:0}function Wr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=Ur(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function rr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Hr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Be=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(oi(t),e)}static createFromParsedTheme(t,e){return ai(t,e)}_cachedMatchRoot=new zr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>ni(t.parent,i.parentScopes));return n?new qr(n.fontStyle,n.foreground,n.background):null}},lt=class Ve{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ve(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ve(r,e[n]);return r}push(e){return new Ve(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function ni(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ii(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ii(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var qr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function oi(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let m=s.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let m=s.settings.fontStyle.split(" ");for(let d=0,h=m.length;d<h;d++)switch(m[d]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&rr(s.settings.foreground)&&(u=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&rr(s.settings.background)&&(p=s.settings.background);for(let m=0,d=l.length;m<d;m++){let f=l[m].trim().split(" "),y=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),r[n++]=new si(y,E,i,a,u,p)}}return r}var si=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},x=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(x||{});function ai(t,e){t.sort((a,u)=>{let p=Ur(a.scope,u.scope);return p!==0||(p=Wr(a.parentScopes,u.parentScopes),p!==0)?p:a.index-u.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let o=new li(e),s=new qr(r,o.getId(n),o.getId(i)),l=new ci(new vt(0,null,-1,0,0),[]);for(let a=0,u=t.length;a<u;a++){let p=t[a];l.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new Be(o,s,l)}var li=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},ui=Object.freeze([]),vt=class Xr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,o){this.scopeDepth=e,this.parentScopes=r||ui,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Xr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},ci=class Ct{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Ct._cmpBySpecificity),r}insert(e,r,n,i,o,s){if(r===""){this._doInsertHere(e,n,i,o,s);return}let l=r.indexOf("."),a,u;l===-1?(a=r,u=""):(a=r.substring(0,l),u=r.substring(l+1));let p;this._children.hasOwnProperty(a)?p=this._children[a]:(p=new Ct(this._mainRule.clone(),vt.cloneArr(this._rulesWithParentScopes)),this._children[a]=p),p.insert(e+1,u,n,i,o,s)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(Wr(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new vt(e,r,n,i,o))}},de=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=D.getLanguageId(e),n=D.getTokenType(e),i=D.getFontStyle(e),o=D.getForeground(e),s=D.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,o,s,l){let a=D.getLanguageId(e),u=D.getTokenType(e),p=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),d=D.getForeground(e),h=D.getBackground(e);return r!==0&&(a=r),n!==8&&(u=n),i!==null&&(p=i?1:0),o!==-1&&(m=o),s!==0&&(d=s),l!==0&&(h=l),(a<<0|u<<8|p<<10|m<<11|d<<15|h<<24)>>>0}};function Fe(t,e){const r=[],n=pi(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(r.push({matcher:u,priority:a}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const a=o();return u=>!!a&&!a(u)}if(i==="("){i=n.next();const a=l();return i===")"&&(i=n.next()),a}if(nr(i)){const a=[];do a.push(i),i=n.next();while(nr(i));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return p=>a.every(m=>m(p))}function l(){const a=[];let u=s();for(;u&&(a.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return p=>a.some(m=>m(p))}}function nr(t){return!!t&&!!t.match(/[\w\.:]+/)}function pi(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Qr(t){typeof t.dispose=="function"&&t.dispose()}var Ae=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},mi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},di=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},hi=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ae(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new di;for(const r of t)fi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ae){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof Ae?Me({baseGrammar:o,selfGrammar:i},n):It(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=r.injections(t.scopeName);if(s)for(const l of s)n.add(new Ae(l))}function It(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];je([n],e,r)}}function Me(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&je(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&je(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function je(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Fr({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&je(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const s=Jr(o);switch(s.kind){case 0:Me({...e,selfGrammar:e.baseGrammar},r);break;case 1:Me(e,r);break;case 2:It(s.ruleName,{...e,repository:i},r);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};s.kind===4?It(s.ruleName,a,r):Me(a,r)}else s.kind===4?r.add(new mi(s.scopeName,s.ruleName)):r.add(new Ae(s.scopeName));break}}}var gi=class{kind=0},_i=class{kind=1},yi=class{constructor(t){this.ruleName=t}kind=2},Ei=class{constructor(t){this.scopeName=t}kind=3},bi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Jr(t){if(t==="$base")return new gi;if(t==="$self")return new _i;const e=t.indexOf("#");if(e===-1)return new Ei(t);if(e===0)return new yi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new bi(r,n)}}var wi=/\\(\d+)/,ir=/\\(\d+)/g,Ai=-1,Kr=-2;var Se=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Te.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Te.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${jr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Te.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Te.replaceCaptures(this._contentName,t,e)}},vi=class extends Se{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},Ci=class extends Se{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new ve(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ce,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},or=class extends Se{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ce,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rt=class extends Se{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,o,s,l,a,u){super(t,e,r,n),this._begin=new ve(i,this.id),this.beginCaptures=o,this._end=new ve(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ce;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Se{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,o,s,l,a){super(t,e,r,n),this._begin=new ve(i,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new ve(s,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ce;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ce,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Zr=class O{static createCaptureRule(e,r,n,i,o){return e.registerRule(s=>new vi(r,s,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Ci(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Fr({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new or(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(o,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,r,n),O._compilePatterns(e.patterns,r,n)):new Rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,O._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=O.getCompiledRuleId(e[s],r,n)),i[l]=O.createCaptureRule(r,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const u=Jr(l.include);switch(u.kind){case 0:case 1:a=O.getCompiledRuleId(n[l.include],r,n);break;case 2:let p=n[u.ruleName];p&&(a=O.getCompiledRuleId(p,r,n));break;case 3:case 4:const m=u.scopeName,d=u.kind===4?u.ruleName:null,h=r.getExternalGrammar(m,n);if(h)if(d){let f=h.repository[d];f&&(a=O.getCompiledRuleId(f,r,h.repository))}else a=O.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else a=O.getCompiledRuleId(l,r,n);if(a!==-1){const u=r.getRule(a);let p=!1;if((u instanceof or||u instanceof Rt||u instanceof Ue)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},ve=class Yr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],s=!1;for(let l=0;l<n;l++)if(e.charAt(l)==="\\"&&l+1<n){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(i,l)),o.push("$(?!\\n)(?<!\\n)"),i=l+2):(u==="A"||u==="G")&&(s=!0),l++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=wi.test(this.source):this.hasBackReferences=!1}clone(){return new Yr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return ir.lastIndex=0,this.source.replace(ir,(i,o)=>Hr(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,r[o]=l,n[o]=l,i[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):a==="G"?(e[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(e[o+1]=a,r[o+1]=a,n[o+1]=a,i[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ce=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new sr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new sr(t,n,this._items.map(i=>i.ruleId))}},sr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
1
|
+
import{kv as Mt,kw as Br,kx as zn,ky as qn,kz as Xn,kA as tr,kB as Qn,kC as Jn,kD as Kn,_ as c,r as ce,kE as Zn,j as V,kF as Yn,kG as Gt}from"../datalayer-app-main.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ei(t){return Bt(t)}function Bt(t){return Array.isArray(t)?ti(t):t instanceof RegExp?t:typeof t=="object"?ri(t):t}function ti(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Bt(t[r]);return e}function ri(t){let e={};for(let r in t)e[r]=Bt(t[r]);return e}function Fr(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function jr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?jr(t.substring(0,t.length-1)):t.substr(~e+1)}var at=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Te=class{static hasCaptures(t){return t===null?!1:(at.lastIndex=0,at.test(t))}static replaceCaptures(t,e,r){return t.replace(at,(n,i,o,s)=>{let l=r[parseInt(i||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function Ur(t,e){return t<e?-1:t>e?1:0}function Wr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=Ur(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function rr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Hr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Be=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(oi(t),e)}static createFromParsedTheme(t,e){return ai(t,e)}_cachedMatchRoot=new zr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>ni(t.parent,i.parentScopes));return n?new qr(n.fontStyle,n.foreground,n.background):null}},lt=class Ve{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ve(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ve(r,e[n]);return r}push(e){return new Ve(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function ni(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ii(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ii(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var qr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function oi(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let m=s.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let m=s.settings.fontStyle.split(" ");for(let d=0,h=m.length;d<h;d++)switch(m[d]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&rr(s.settings.foreground)&&(u=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&rr(s.settings.background)&&(p=s.settings.background);for(let m=0,d=l.length;m<d;m++){let f=l[m].trim().split(" "),y=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),r[n++]=new si(y,E,i,a,u,p)}}return r}var si=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},x=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(x||{});function ai(t,e){t.sort((a,u)=>{let p=Ur(a.scope,u.scope);return p!==0||(p=Wr(a.parentScopes,u.parentScopes),p!==0)?p:a.index-u.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let o=new li(e),s=new qr(r,o.getId(n),o.getId(i)),l=new ci(new vt(0,null,-1,0,0),[]);for(let a=0,u=t.length;a<u;a++){let p=t[a];l.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new Be(o,s,l)}var li=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},ui=Object.freeze([]),vt=class Xr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,o){this.scopeDepth=e,this.parentScopes=r||ui,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new Xr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},ci=class Ct{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Ct._cmpBySpecificity),r}insert(e,r,n,i,o,s){if(r===""){this._doInsertHere(e,n,i,o,s);return}let l=r.indexOf("."),a,u;l===-1?(a=r,u=""):(a=r.substring(0,l),u=r.substring(l+1));let p;this._children.hasOwnProperty(a)?p=this._children[a]:(p=new Ct(this._mainRule.clone(),vt.cloneArr(this._rulesWithParentScopes)),this._children[a]=p),p.insert(e+1,u,n,i,o,s)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(Wr(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new vt(e,r,n,i,o))}},de=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=D.getLanguageId(e),n=D.getTokenType(e),i=D.getFontStyle(e),o=D.getForeground(e),s=D.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,o,s,l){let a=D.getLanguageId(e),u=D.getTokenType(e),p=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),d=D.getForeground(e),h=D.getBackground(e);return r!==0&&(a=r),n!==8&&(u=n),i!==null&&(p=i?1:0),o!==-1&&(m=o),s!==0&&(d=s),l!==0&&(h=l),(a<<0|u<<8|p<<10|m<<11|d<<15|h<<24)>>>0}};function Fe(t,e){const r=[],n=pi(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(r.push({matcher:u,priority:a}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const a=o();return u=>!!a&&!a(u)}if(i==="("){i=n.next();const a=l();return i===")"&&(i=n.next()),a}if(nr(i)){const a=[];do a.push(i),i=n.next();while(nr(i));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return p=>a.every(m=>m(p))}function l(){const a=[];let u=s();for(;u&&(a.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return p=>a.some(m=>m(p))}}function nr(t){return!!t&&!!t.match(/[\w\.:]+/)}function pi(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Qr(t){typeof t.dispose=="function"&&t.dispose()}var Ae=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},mi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},di=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},hi=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ae(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new di;for(const r of t)fi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ae){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof Ae?Me({baseGrammar:o,selfGrammar:i},n):It(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=r.injections(t.scopeName);if(s)for(const l of s)n.add(new Ae(l))}function It(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];je([n],e,r)}}function Me(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&je(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&je(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function je(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Fr({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&je(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const s=Jr(o);switch(s.kind){case 0:Me({...e,selfGrammar:e.baseGrammar},r);break;case 1:Me(e,r);break;case 2:It(s.ruleName,{...e,repository:i},r);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};s.kind===4?It(s.ruleName,a,r):Me(a,r)}else s.kind===4?r.add(new mi(s.scopeName,s.ruleName)):r.add(new Ae(s.scopeName));break}}}var gi=class{kind=0},_i=class{kind=1},yi=class{constructor(t){this.ruleName=t}kind=2},Ei=class{constructor(t){this.scopeName=t}kind=3},bi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Jr(t){if(t==="$base")return new gi;if(t==="$self")return new _i;const e=t.indexOf("#");if(e===-1)return new Ei(t);if(e===0)return new yi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new bi(r,n)}}var wi=/\\(\d+)/,ir=/\\(\d+)/g,Ai=-1,Kr=-2;var Se=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Te.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Te.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${jr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Te.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Te.replaceCaptures(this._contentName,t,e)}},vi=class extends Se{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},Ci=class extends Se{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new ve(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ce,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},or=class extends Se{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ce,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rt=class extends Se{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,o,s,l,a,u){super(t,e,r,n),this._begin=new ve(i,this.id),this.beginCaptures=o,this._end=new ve(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ce;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Se{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,o,s,l,a){super(t,e,r,n),this._begin=new ve(i,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new ve(s,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ce;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ce,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Zr=class O{static createCaptureRule(e,r,n,i,o){return e.registerRule(s=>new vi(r,s,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Ci(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Fr({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new or(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(o,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,r,n),O._compilePatterns(e.patterns,r,n)):new Rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,O._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=O.getCompiledRuleId(e[s],r,n)),i[l]=O.createCaptureRule(r,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const u=Jr(l.include);switch(u.kind){case 0:case 1:a=O.getCompiledRuleId(n[l.include],r,n);break;case 2:let p=n[u.ruleName];p&&(a=O.getCompiledRuleId(p,r,n));break;case 3:case 4:const m=u.scopeName,d=u.kind===4?u.ruleName:null,h=r.getExternalGrammar(m,n);if(h)if(d){let f=h.repository[d];f&&(a=O.getCompiledRuleId(f,r,h.repository))}else a=O.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else a=O.getCompiledRuleId(l,r,n);if(a!==-1){const u=r.getRule(a);let p=!1;if((u instanceof or||u instanceof Rt||u instanceof Ue)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},ve=class Yr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],s=!1;for(let l=0;l<n;l++)if(e.charAt(l)==="\\"&&l+1<n){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(i,l)),o.push("$(?!\\n)(?<!\\n)"),i=l+2):(u==="A"||u==="G")&&(s=!0),l++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=wi.test(this.source):this.hasBackReferences=!1}clone(){return new Yr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return ir.lastIndex=0,this.source.replace(ir,(i,o)=>Hr(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,r[o]=l,n[o]=l,i[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):a==="G"?(e[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(e[o+1]=a,r[o+1]=a,n[o+1]=a,i[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ce=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new sr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new sr(t,n,this._items.map(i=>i.ruleId))}},sr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
2
2
|
`)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},ut=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Ii=class St{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,r){this._defaultAttributes=new ut(e,8),this._embeddedLanguagesMatcher=new Ri(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?St._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new ut(0,0);_getBasicScopeAttributes=new zr(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new ut(r,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(St.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Ri=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>Hr(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},ar=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function en(t,e,r,n,i,o,s,l){const a=e.content.length;let u=!1,p=-1;if(s){const h=Si(t,e,r,n,i,o);i=h.stack,n=h.linePos,r=h.isFirstLine,p=h.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new ar(i,!0);d()}return new ar(i,!1);function d(){const h=Li(t,e,r,n,i,p);if(!h){o.produce(i,a),u=!0;return}const f=h.captureIndices,y=h.matchedRuleId,E=f&&f.length>0?f[0].end>n:!1;if(y===Ai){const g=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ee(t,e,r,i,o,g.endCaptures,f),o.produce(i,f[0].end);const b=i;if(i=i.parent,p=b.getAnchorPos(),!E&&b.getEnterPos()===n){i=b,o.produce(i,a),u=!0;return}}else{const g=t.getRule(y);o.produce(i,f[0].start);const b=i,_=g.getName(e.content,f),w=i.contentNameScopesList.pushAttributed(_,t);if(i=i.push(y,n,p,f[0].end===a,null,w,w),g instanceof Rt){const v=g;Ee(t,e,r,i,o,v.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const k=v.getContentName(e.content,f),N=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(N),v.endHasBackReferences&&(i=i.withEndRule(v.getEndWithResolvedBackReferences(e.content,f))),!E&&b.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(g instanceof Ue){const v=g;Ee(t,e,r,i,o,v.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const k=v.getContentName(e.content,f),N=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(N),v.whileHasBackReferences&&(i=i.withEndRule(v.getWhileWithResolvedBackReferences(e.content,f))),!E&&b.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(Ee(t,e,r,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!E){i=i.safePop(),o.produce(i,a),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function Si(t,e,r,n,i,o){let s=i.beginRuleCapturedEOL?0:-1;const l=[];for(let a=i;a;a=a.pop()){const u=a.getRule(t);u instanceof Ue&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:p}=Pi(a.rule,t,a.stack.endRule,r,n===s),m=u.findNextMatchSync(e,n,p);if(m){if(m.ruleId!==Kr){i=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(a.stack,m.captureIndices[0].start),Ee(t,e,r,a.stack,o,a.rule.whileCaptures,m.captureIndices),o.produce(a.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function Li(t,e,r,n,i,o){const s=ki(t,e,r,n,i,o),l=t.getInjections();if(l.length===0)return s;const a=Ti(l,t,e,r,n,i,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,p=a.captureIndices[0].start;return p<u||a.priorityMatch&&p===u?a:s}function ki(t,e,r,n,i,o){const s=i.getRule(t),{ruleScanner:l,findOptions:a}=tn(s,t,i.endRule,r,n===o),u=l.findNextMatchSync(e,n,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Ti(t,e,r,n,i,o,s){let l=Number.MAX_VALUE,a=null,u,p=0;const m=o.contentNameScopesList.getScopeNames();for(let d=0,h=t.length;d<h;d++){const f=t[d];if(!f.matcher(m))continue;const y=e.getRule(f.ruleId),{ruleScanner:E,findOptions:g}=tn(y,e,null,n,i===s),b=E.findNextMatchSync(r,i,g);if(!b)continue;const _=b.captureIndices[0].start;if(!(_>=l)&&(l=_,a=b.captureIndices,u=b.ruleId,p=f.priority,l===i))break}return a?{priorityMatch:p===-1,captureIndices:a,matchedRuleId:u}:null}function tn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function Pi(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Ee(t,e,r,n,i,o,s){if(o.length===0)return;const l=e.content,a=Math.min(o.length,s.length),u=[],p=s[0].end;for(let m=0;m<a;m++){const d=o[m];if(d===null)continue;const h=s[m];if(h.length===0)continue;if(h.start>p)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(n,h.start),d.retokenizeCapturedWithRuleId){const y=d.getName(l,s),E=n.contentNameScopesList.pushAttributed(y,t),g=d.getContentName(l,s),b=E.pushAttributed(g,t),_=n.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,E,b),w=t.createOnigString(l.substring(0,h.end));en(t,w,r&&h.start===0,h.start,_,i,!1,0),Qr(w);continue}const f=d.getName(l,s);if(f!==null){const E=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);u.push(new Oi(E,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Oi=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function xi(t,e,r,n,i,o,s,l){return new Di(t,e,r,n,i,o,s,l)}function lr(t,e,r,n,i){const o=Fe(e,We),s=Zr.getCompiledRuleId(r,n,i.repository);for(const l of o)t.push({debugSelector:e,matcher:l.matcher,ruleId:s,grammar:i,priority:l.priority})}function We(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(Ni(e[i],n))return r=i+1,!0;return!1})}function Ni(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Di=class{constructor(t,e,r,n,i,o,s,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new Ii(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ur(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const u=Fe(a,We);for(const p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let s in i)lr(e,s,i[s],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const a=l.injectionSelector;a&&lr(e,a,l,this,l)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=ur(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=Zr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Lt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=de.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=be.createRootAndLookUpScopeName(d,m,this):h=be.createRoot("unknown",m),e=new Lt(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();t=t+`
|
|
3
3
|
`;const o=this.createOnigString(t),s=o.content.length,l=new Vi(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=en(this,o,i,0,e,l,!0,n);return Qr(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ur(t,e){return t=ei(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var be=class F{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=e?.scopePath??null;for(const o of r)i=lt.push(i,o.scopeNames),n=new F(n,i,o.encodedTokenAttributes);return n}static createRoot(e,r){return new F(null,new lt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),o=new lt(null,e),s=n.themeProvider.themeMatch(o),l=F.mergeAttributes(r,i,s);return new F(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return F.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,o=0,s=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,s=n.backgroundId),de.set(e,r.languageId,r.tokenType,null,i,o,s)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return F._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const o of n)i=F._pushAttributed(i,o,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),o=e.scopePath.push(r),s=n.themeProvider.themeMatch(o),l=F.mergeAttributes(e.tokenAttributes,i,s);return new F(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?r.reverse():void 0}},Lt=class Y{constructor(e,r,n,i,o,s,l,a){this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new Y(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:Y._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?be.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,o,s,l){return new Y(this,e,r,n,i,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,r){const n=be.fromExtension(e?.nameScopesList??null,r.nameScopesList);return new Y(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,be.fromExtension(n,r.contentNameScopesList))}},$i=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Fe(r,We).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>Fe(r,We).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Vi=class{constructor(t,e,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(n=de.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=de.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Mi=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,xi(t,o,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},Gi=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Mi(Be.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(Be.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new $i(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,o){const s=new hi(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,r,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,o)}},kt=Lt.NULL;const Bi=/["&'<>`]/g,Fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ji=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ui=/[|\\{}()[\]^$+*?.]/g,cr=new WeakMap;function Wi(t,e){if(t=t.replace(e.subset?Hi(e.subset):Bi,n),e.subset||e.escapeOnly)return t;return t.replace(Fi,r).replace(ji,n);function r(i,o,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function n(i,o,s){return e.format(i.charCodeAt(0),s.charCodeAt(o+1),e)}}function Hi(t){let e=cr.get(t);return e||(e=zi(t),cr.set(t,e)),e}function zi(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(Ui,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const qi=/[\dA-Fa-f]/;function Xi(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!qi.test(String.fromCharCode(e))?n:n+";"}const Qi=/\d/;function Ji(t,e,r){const n="&#"+String(t);return r&&e&&!Qi.test(String.fromCharCode(e))?n:n+";"}const Ki=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ct={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Zi=["cent","copy","divide","gt","lt","not","para","times"],rn={}.hasOwnProperty,Tt={};let Pe;for(Pe in ct)rn.call(ct,Pe)&&(Tt[ct[Pe]]=Pe);const Yi=/[^\dA-Za-z]/;function eo(t,e,r,n){const i=String.fromCharCode(t);if(rn.call(Tt,i)){const o=Tt[i],s="&"+o;return r&&Ki.includes(o)&&!Zi.includes(o)&&(!n||e&&e!==61&&Yi.test(String.fromCharCode(e)))?s:s+";"}return""}function to(t,e,r){let n=Xi(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=eo(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=Ji(t,e,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function me(t,e){return Wi(t,Object.assign({format:to},e))}const ro=/^>|^->|<!--|-->|--!>|<!-$/g,no=[">"],io=["<",">"];function oo(t,e,r,n){return n.settings.bogusComments?"<?"+me(t.value,Object.assign({},n.settings.characterReferences,{subset:no}))+">":"<!--"+t.value.replace(ro,i)+"-->";function i(o){return me(o,Object.assign({},n.settings.characterReferences,{subset:io}))}}function so(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const L=on(1),nn=on(-1),ao=[];function on(t){return e;function e(r,n,i){const o=r?r.children:ao;let s=(n||0)+t,l=o[s];if(!i)for(;l&&Mt(l);)s+=t,l=o[s];return l}}const lo={}.hasOwnProperty;function sn(t){return e;function e(r,n,i){return lo.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Ft=sn({body:co,caption:pt,colgroup:pt,dd:fo,dt:ho,head:pt,html:uo,li:mo,optgroup:go,option:_o,p:po,rp:pr,rt:pr,tbody:Eo,td:mr,tfoot:bo,th:mr,thead:yo,tr:wo});function pt(t,e,r){const n=L(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Mt(n.value.charAt(0)))}function uo(t,e,r){const n=L(r,e);return!n||n.type!=="comment"}function co(t,e,r){const n=L(r,e);return!n||n.type!=="comment"}function po(t,e,r){const n=L(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function mo(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="li"}function ho(t,e,r){const n=L(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function fo(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function pr(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function go(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function _o(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function yo(t,e,r){const n=L(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Eo(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function bo(t,e,r){return!L(r,e)}function wo(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function mr(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Ao=sn({body:Io,colgroup:Ro,head:Co,html:vo,tbody:So});function vo(t){const e=L(t,-1);return!e||e.type!=="comment"}function Co(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function Io(t){const e=L(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Mt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ro(t,e,r){const n=nn(r,e),i=L(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Ft(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function So(t,e,r){const n=nn(r,e),i=L(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Ft(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Oe={name:[[`
|
|
4
4
|
\f\r &/=>`.split(""),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as A,c4 as at,c3 as nt,lr as st,a8 as Je,r as Q,ls as it,lt as Er,ak as ot,c1 as ar,a0 as ce}from"../datalayer-app-main.js";import{_ as Z}from"./extends-CF3RwP-h.js";import{_ as ct,a as Or,b as He}from"./slicedToArray-C6MrPRv_.js";function ut(g){const{className:o,inputRef:f,rightIcon:s,...b}=g;return A.createElement("div",{className:at("jp-InputGroup",o)},A.createElement("input",{ref:f,...b}),s&&A.createElement("span",{className:"jp-InputGroupAction"},typeof s=="string"?A.createElement(nt.resolveReact,{icon:s,elementPosition:"center",tag:"span"}):A.createElement(s.react,{elementPosition:"center",tag:"span"})))}var je={exports:{}},nr;function lt(){return nr||(nr=1,(function(g){g.exports=(function(o){var f={};function s(b){if(f[b])return f[b].exports;var h=f[b]={exports:{},id:b,loaded:!1};return o[b].call(h.exports,h,h.exports,s),h.loaded=!0,h.exports}return s.m=o,s.c=f,s.p="",s(0)})([(function(o,f,s){o.exports=s(1)}),(function(o,f,s){Object.defineProperty(f,"__esModule",{value:!0});function b(m){return m&&m.__esModule?m:{default:m}}var h=s(2),l=b(h);f.default=l.default,o.exports=f.default}),(function(o,f,s){Object.defineProperty(f,"__esModule",{value:!0});var b=Object.assign||function(a){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(a[y]=v[y])}return a};f.default=r;function h(a){return a&&a.__esModule?a:{default:a}}function l(a,u){var v={};for(var y in a)u.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(a,y)&&(v[y]=a[y]);return v}var m=s(3),e=s(4),t=h(e),n=s(14),i=s(15),c=h(i);r.propTypes={activeClassName:t.default.string,activeIndex:t.default.number,activeStyle:t.default.object,autoEscape:t.default.bool,className:t.default.string,findChunks:t.default.func,highlightClassName:t.default.oneOfType([t.default.object,t.default.string]),highlightStyle:t.default.object,highlightTag:t.default.oneOfType([t.default.node,t.default.func,t.default.string]),sanitize:t.default.func,searchWords:t.default.arrayOf(t.default.oneOfType([t.default.string,t.default.instanceOf(RegExp)])).isRequired,textToHighlight:t.default.string.isRequired,unhighlightTag:t.default.oneOfType([t.default.node,t.default.func,t.default.string]),unhighlightClassName:t.default.string,unhighlightStyle:t.default.object};function r(a){var u=a.activeClassName,v=u===void 0?"":u,y=a.activeIndex,x=y===void 0?-1:y,O=a.activeStyle,N=a.autoEscape,U=a.caseSensitive,W=U===void 0?!1:U,te=a.className,me=a.findChunks,le=a.highlightClassName,ae=le===void 0?"":le,fe=a.highlightStyle,be=fe===void 0?{}:fe,he=a.highlightTag,ye=he===void 0?"mark":he,we=a.sanitize,ie=a.searchWords,ne=a.textToHighlight,re=a.unhighlightTag,de=re===void 0?"span":re,ve=a.unhighlightClassName,Ee=ve===void 0?"":ve,w=a.unhighlightStyle,T=l(a,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),B=(0,m.findAll)({autoEscape:N,caseSensitive:W,findChunks:me,sanitize:we,searchWords:ie,textToHighlight:ne}),j=ye,F=-1,P="",k=void 0,S=function(L){var J={};for(var K in L)J[K.toLowerCase()]=L[K];return J},M=(0,c.default)(S);return(0,n.createElement)("span",b({className:te},T,{children:B.map(function(D,L){var J=ne.substr(D.start,D.end-D.start);if(D.highlight){F++;var K=void 0;typeof ae=="object"?W?K=ae[J]:(ae=M(ae),K=ae[J.toLowerCase()]):K=ae;var xe=F===+x;P=K+" "+(xe?v:""),k=xe===!0&&O!=null?Object.assign({},be,O):be;var Ce={children:J,className:P,key:L,style:k};return typeof j!="string"&&(Ce.highlightIndex=F),(0,n.createElement)(j,Ce)}else return(0,n.createElement)(de,{children:J,className:Ee,key:L,style:w})})}))}o.exports=f.default}),(function(o,f){o.exports=(function(s){var b={};function h(l){if(b[l])return b[l].exports;var m=b[l]={exports:{},id:l,loaded:!1};return s[l].call(m.exports,m,m.exports,h),m.loaded=!0,m.exports}return h.m=s,h.c=b,h.p="",h(0)})([(function(s,b,h){s.exports=h(1)}),(function(s,b,h){Object.defineProperty(b,"__esModule",{value:!0});var l=h(2);Object.defineProperty(b,"combineChunks",{enumerable:!0,get:function(){return l.combineChunks}}),Object.defineProperty(b,"fillInChunks",{enumerable:!0,get:function(){return l.fillInChunks}}),Object.defineProperty(b,"findAll",{enumerable:!0,get:function(){return l.findAll}}),Object.defineProperty(b,"findChunks",{enumerable:!0,get:function(){return l.findChunks}})}),(function(s,b){Object.defineProperty(b,"__esModule",{value:!0}),b.findAll=function(i){var c=i.autoEscape,r=i.caseSensitive,a=r===void 0?!1:r,u=i.findChunks,v=u===void 0?l:u,y=i.sanitize,x=i.searchWords,O=i.textToHighlight;return m({chunksToHighlight:h({chunks:v({autoEscape:c,caseSensitive:a,sanitize:y,searchWords:x,textToHighlight:O})}),totalLength:O?O.length:0})};var h=b.combineChunks=function(i){var c=i.chunks;return c=c.sort(function(r,a){return r.start-a.start}).reduce(function(r,a){if(r.length===0)return[a];var u=r.pop();if(a.start<=u.end){var v=Math.max(u.end,a.end);r.push({start:u.start,end:v})}else r.push(u,a);return r},[]),c},l=function(i){var c=i.autoEscape,r=i.caseSensitive,a=i.sanitize,u=a===void 0?e:a,v=i.searchWords,y=i.textToHighlight;return y=u(y),v.filter(function(x){return x}).reduce(function(x,O){O=u(O),c&&(O=t(O));for(var N=new RegExp(O,r?"g":"gi"),U=void 0;U=N.exec(y);){var W=U.index,te=N.lastIndex;te>W&&x.push({start:W,end:te}),U.index==N.lastIndex&&N.lastIndex++}return x},[])};b.findChunks=l;var m=b.fillInChunks=function(i){var c=i.chunksToHighlight,r=i.totalLength,a=[],u=function(x,O,N){O-x>0&&a.push({start:x,end:O,highlight:N})};if(c.length===0)u(0,r,!1);else{var v=0;c.forEach(function(y){u(v,y.start,!1),u(y.start,y.end,!0),v=y.end}),u(v,r,!1)}return a};function e(n){return n}function t(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}})])}),(function(o,f,s){(function(b){if(b.env.NODE_ENV!=="production"){var h=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,l=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===h},m=!0;o.exports=s(6)(l,m)}else o.exports=s(13)()}).call(f,s(5))}),(function(o,f){var s=o.exports={},b,h;function l(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=l}catch{b=l}try{typeof clearTimeout=="function"?h=clearTimeout:h=m}catch{h=m}})();function e(x){if(b===setTimeout)return setTimeout(x,0);if((b===l||!b)&&setTimeout)return b=setTimeout,setTimeout(x,0);try{return b(x,0)}catch{try{return b.call(null,x,0)}catch{return b.call(this,x,0)}}}function t(x){if(h===clearTimeout)return clearTimeout(x);if((h===m||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(x);try{return h(x)}catch{try{return h.call(null,x)}catch{return h.call(this,x)}}}var n=[],i=!1,c,r=-1;function a(){!i||!c||(i=!1,c.length?n=c.concat(n):r=-1,n.length&&u())}function u(){if(!i){var x=e(a);i=!0;for(var O=n.length;O;){for(c=n,n=[];++r<O;)c&&c[r].run();r=-1,O=n.length}c=null,i=!1,t(x)}}s.nextTick=function(x){var O=new Array(arguments.length-1);if(arguments.length>1)for(var N=1;N<arguments.length;N++)O[N-1]=arguments[N];n.push(new v(x,O)),n.length===1&&!i&&e(u)};function v(x,O){this.fun=x,this.array=O}v.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function y(){}s.on=y,s.addListener=y,s.once=y,s.off=y,s.removeListener=y,s.removeAllListeners=y,s.emit=y,s.prependListener=y,s.prependOnceListener=y,s.listeners=function(x){return[]},s.binding=function(x){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(x){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}}),(function(o,f,s){(function(b){var h=s(7),l=s(8),m=s(9),e=s(10),t=s(11),n=s(12);o.exports=function(i,c){var r=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";function u(w){var T=w&&(r&&w[r]||w[a]);if(typeof T=="function")return T}var v="<<anonymous>>",y={array:U("array"),bool:U("boolean"),func:U("function"),number:U("number"),object:U("object"),string:U("string"),symbol:U("symbol"),any:W(),arrayOf:te,element:me(),instanceOf:le,node:he(),objectOf:fe,oneOf:ae,oneOfType:be,shape:ye,exact:we};function x(w,T){return w===T?w!==0||1/w===1/T:w!==w&&T!==T}function O(w){this.message=w,this.stack=""}O.prototype=Error.prototype;function N(w){if(b.env.NODE_ENV!=="production")var T={},B=0;function j(P,k,S,M,D,L,J){if(M=M||v,L=L||S,J!==t){if(c)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(b.env.NODE_ENV!=="production"&&typeof console<"u"){var K=M+":"+S;!T[K]&&B<3&&(m(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",L,M),T[K]=!0,B++)}}return k[S]==null?P?k[S]===null?new O("The "+D+" `"+L+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new O("The "+D+" `"+L+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:w(k,S,M,D,L)}var F=j.bind(null,!1);return F.isRequired=j.bind(null,!0),F}function U(w){function T(B,j,F,P,k,S){var M=B[j],D=re(M);if(D!==w){var L=de(M);return new O("Invalid "+P+" `"+k+"` of type "+("`"+L+"` supplied to `"+F+"`, expected ")+("`"+w+"`."))}return null}return N(T)}function W(){return N(h.thatReturnsNull)}function te(w){function T(B,j,F,P,k){if(typeof w!="function")return new O("Property `"+k+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var S=B[j];if(!Array.isArray(S)){var M=re(S);return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected an array."))}for(var D=0;D<S.length;D++){var L=w(S,D,F,P,k+"["+D+"]",t);if(L instanceof Error)return L}return null}return N(T)}function me(){function w(T,B,j,F,P){var k=T[B];if(!i(k)){var S=re(k);return new O("Invalid "+F+" `"+P+"` of type "+("`"+S+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return N(w)}function le(w){function T(B,j,F,P,k){if(!(B[j]instanceof w)){var S=w.name||v,M=Ee(B[j]);return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected ")+("instance of `"+S+"`."))}return null}return N(T)}function ae(w){if(!Array.isArray(w))return b.env.NODE_ENV!=="production"&&m(!1,"Invalid argument supplied to oneOf, expected an instance of array."),h.thatReturnsNull;function T(B,j,F,P,k){for(var S=B[j],M=0;M<w.length;M++)if(x(S,w[M]))return null;var D=JSON.stringify(w);return new O("Invalid "+P+" `"+k+"` of value `"+S+"` "+("supplied to `"+F+"`, expected one of "+D+"."))}return N(T)}function fe(w){function T(B,j,F,P,k){if(typeof w!="function")return new O("Property `"+k+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected an object."));for(var D in S)if(S.hasOwnProperty(D)){var L=w(S,D,F,P,k+"."+D,t);if(L instanceof Error)return L}return null}return N(T)}function be(w){if(!Array.isArray(w))return b.env.NODE_ENV!=="production"&&m(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),h.thatReturnsNull;for(var T=0;T<w.length;T++){var B=w[T];if(typeof B!="function")return m(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",ve(B),T),h.thatReturnsNull}function j(F,P,k,S,M){for(var D=0;D<w.length;D++){var L=w[D];if(L(F,P,k,S,M,t)==null)return null}return new O("Invalid "+S+" `"+M+"` supplied to "+("`"+k+"`."))}return N(j)}function he(){function w(T,B,j,F,P){return ie(T[B])?null:new O("Invalid "+F+" `"+P+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return N(w)}function ye(w){function T(B,j,F,P,k){var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type `"+M+"` "+("supplied to `"+F+"`, expected `object`."));for(var D in w){var L=w[D];if(L){var J=L(S,D,F,P,k+"."+D,t);if(J)return J}}return null}return N(T)}function we(w){function T(B,j,F,P,k){var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type `"+M+"` "+("supplied to `"+F+"`, expected `object`."));var D=e({},B[j],w);for(var L in D){var J=w[L];if(!J)return new O("Invalid "+P+" `"+k+"` key `"+L+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(B[j],null," ")+`
|
|
1
|
+
import{v as A,c4 as at,c3 as nt,ls as st,a8 as Je,r as Q,lt as it,lu as Er,ak as ot,c1 as ar,a0 as ce}from"../datalayer-app-main.js";import{_ as Z}from"./extends-CF3RwP-h.js";import{_ as ct,a as Or,b as He}from"./slicedToArray-C6MrPRv_.js";function ut(g){const{className:o,inputRef:f,rightIcon:s,...b}=g;return A.createElement("div",{className:at("jp-InputGroup",o)},A.createElement("input",{ref:f,...b}),s&&A.createElement("span",{className:"jp-InputGroupAction"},typeof s=="string"?A.createElement(nt.resolveReact,{icon:s,elementPosition:"center",tag:"span"}):A.createElement(s.react,{elementPosition:"center",tag:"span"})))}var je={exports:{}},nr;function lt(){return nr||(nr=1,(function(g){g.exports=(function(o){var f={};function s(b){if(f[b])return f[b].exports;var h=f[b]={exports:{},id:b,loaded:!1};return o[b].call(h.exports,h,h.exports,s),h.loaded=!0,h.exports}return s.m=o,s.c=f,s.p="",s(0)})([(function(o,f,s){o.exports=s(1)}),(function(o,f,s){Object.defineProperty(f,"__esModule",{value:!0});function b(m){return m&&m.__esModule?m:{default:m}}var h=s(2),l=b(h);f.default=l.default,o.exports=f.default}),(function(o,f,s){Object.defineProperty(f,"__esModule",{value:!0});var b=Object.assign||function(a){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(a[y]=v[y])}return a};f.default=r;function h(a){return a&&a.__esModule?a:{default:a}}function l(a,u){var v={};for(var y in a)u.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(a,y)&&(v[y]=a[y]);return v}var m=s(3),e=s(4),t=h(e),n=s(14),i=s(15),c=h(i);r.propTypes={activeClassName:t.default.string,activeIndex:t.default.number,activeStyle:t.default.object,autoEscape:t.default.bool,className:t.default.string,findChunks:t.default.func,highlightClassName:t.default.oneOfType([t.default.object,t.default.string]),highlightStyle:t.default.object,highlightTag:t.default.oneOfType([t.default.node,t.default.func,t.default.string]),sanitize:t.default.func,searchWords:t.default.arrayOf(t.default.oneOfType([t.default.string,t.default.instanceOf(RegExp)])).isRequired,textToHighlight:t.default.string.isRequired,unhighlightTag:t.default.oneOfType([t.default.node,t.default.func,t.default.string]),unhighlightClassName:t.default.string,unhighlightStyle:t.default.object};function r(a){var u=a.activeClassName,v=u===void 0?"":u,y=a.activeIndex,x=y===void 0?-1:y,O=a.activeStyle,N=a.autoEscape,U=a.caseSensitive,W=U===void 0?!1:U,te=a.className,me=a.findChunks,le=a.highlightClassName,ae=le===void 0?"":le,fe=a.highlightStyle,be=fe===void 0?{}:fe,he=a.highlightTag,ye=he===void 0?"mark":he,we=a.sanitize,ie=a.searchWords,ne=a.textToHighlight,re=a.unhighlightTag,de=re===void 0?"span":re,ve=a.unhighlightClassName,Ee=ve===void 0?"":ve,w=a.unhighlightStyle,T=l(a,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),B=(0,m.findAll)({autoEscape:N,caseSensitive:W,findChunks:me,sanitize:we,searchWords:ie,textToHighlight:ne}),j=ye,F=-1,P="",k=void 0,S=function(L){var J={};for(var K in L)J[K.toLowerCase()]=L[K];return J},M=(0,c.default)(S);return(0,n.createElement)("span",b({className:te},T,{children:B.map(function(D,L){var J=ne.substr(D.start,D.end-D.start);if(D.highlight){F++;var K=void 0;typeof ae=="object"?W?K=ae[J]:(ae=M(ae),K=ae[J.toLowerCase()]):K=ae;var xe=F===+x;P=K+" "+(xe?v:""),k=xe===!0&&O!=null?Object.assign({},be,O):be;var Ce={children:J,className:P,key:L,style:k};return typeof j!="string"&&(Ce.highlightIndex=F),(0,n.createElement)(j,Ce)}else return(0,n.createElement)(de,{children:J,className:Ee,key:L,style:w})})}))}o.exports=f.default}),(function(o,f){o.exports=(function(s){var b={};function h(l){if(b[l])return b[l].exports;var m=b[l]={exports:{},id:l,loaded:!1};return s[l].call(m.exports,m,m.exports,h),m.loaded=!0,m.exports}return h.m=s,h.c=b,h.p="",h(0)})([(function(s,b,h){s.exports=h(1)}),(function(s,b,h){Object.defineProperty(b,"__esModule",{value:!0});var l=h(2);Object.defineProperty(b,"combineChunks",{enumerable:!0,get:function(){return l.combineChunks}}),Object.defineProperty(b,"fillInChunks",{enumerable:!0,get:function(){return l.fillInChunks}}),Object.defineProperty(b,"findAll",{enumerable:!0,get:function(){return l.findAll}}),Object.defineProperty(b,"findChunks",{enumerable:!0,get:function(){return l.findChunks}})}),(function(s,b){Object.defineProperty(b,"__esModule",{value:!0}),b.findAll=function(i){var c=i.autoEscape,r=i.caseSensitive,a=r===void 0?!1:r,u=i.findChunks,v=u===void 0?l:u,y=i.sanitize,x=i.searchWords,O=i.textToHighlight;return m({chunksToHighlight:h({chunks:v({autoEscape:c,caseSensitive:a,sanitize:y,searchWords:x,textToHighlight:O})}),totalLength:O?O.length:0})};var h=b.combineChunks=function(i){var c=i.chunks;return c=c.sort(function(r,a){return r.start-a.start}).reduce(function(r,a){if(r.length===0)return[a];var u=r.pop();if(a.start<=u.end){var v=Math.max(u.end,a.end);r.push({start:u.start,end:v})}else r.push(u,a);return r},[]),c},l=function(i){var c=i.autoEscape,r=i.caseSensitive,a=i.sanitize,u=a===void 0?e:a,v=i.searchWords,y=i.textToHighlight;return y=u(y),v.filter(function(x){return x}).reduce(function(x,O){O=u(O),c&&(O=t(O));for(var N=new RegExp(O,r?"g":"gi"),U=void 0;U=N.exec(y);){var W=U.index,te=N.lastIndex;te>W&&x.push({start:W,end:te}),U.index==N.lastIndex&&N.lastIndex++}return x},[])};b.findChunks=l;var m=b.fillInChunks=function(i){var c=i.chunksToHighlight,r=i.totalLength,a=[],u=function(x,O,N){O-x>0&&a.push({start:x,end:O,highlight:N})};if(c.length===0)u(0,r,!1);else{var v=0;c.forEach(function(y){u(v,y.start,!1),u(y.start,y.end,!0),v=y.end}),u(v,r,!1)}return a};function e(n){return n}function t(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}})])}),(function(o,f,s){(function(b){if(b.env.NODE_ENV!=="production"){var h=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,l=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===h},m=!0;o.exports=s(6)(l,m)}else o.exports=s(13)()}).call(f,s(5))}),(function(o,f){var s=o.exports={},b,h;function l(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=l}catch{b=l}try{typeof clearTimeout=="function"?h=clearTimeout:h=m}catch{h=m}})();function e(x){if(b===setTimeout)return setTimeout(x,0);if((b===l||!b)&&setTimeout)return b=setTimeout,setTimeout(x,0);try{return b(x,0)}catch{try{return b.call(null,x,0)}catch{return b.call(this,x,0)}}}function t(x){if(h===clearTimeout)return clearTimeout(x);if((h===m||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(x);try{return h(x)}catch{try{return h.call(null,x)}catch{return h.call(this,x)}}}var n=[],i=!1,c,r=-1;function a(){!i||!c||(i=!1,c.length?n=c.concat(n):r=-1,n.length&&u())}function u(){if(!i){var x=e(a);i=!0;for(var O=n.length;O;){for(c=n,n=[];++r<O;)c&&c[r].run();r=-1,O=n.length}c=null,i=!1,t(x)}}s.nextTick=function(x){var O=new Array(arguments.length-1);if(arguments.length>1)for(var N=1;N<arguments.length;N++)O[N-1]=arguments[N];n.push(new v(x,O)),n.length===1&&!i&&e(u)};function v(x,O){this.fun=x,this.array=O}v.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function y(){}s.on=y,s.addListener=y,s.once=y,s.off=y,s.removeListener=y,s.removeAllListeners=y,s.emit=y,s.prependListener=y,s.prependOnceListener=y,s.listeners=function(x){return[]},s.binding=function(x){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(x){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}}),(function(o,f,s){(function(b){var h=s(7),l=s(8),m=s(9),e=s(10),t=s(11),n=s(12);o.exports=function(i,c){var r=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";function u(w){var T=w&&(r&&w[r]||w[a]);if(typeof T=="function")return T}var v="<<anonymous>>",y={array:U("array"),bool:U("boolean"),func:U("function"),number:U("number"),object:U("object"),string:U("string"),symbol:U("symbol"),any:W(),arrayOf:te,element:me(),instanceOf:le,node:he(),objectOf:fe,oneOf:ae,oneOfType:be,shape:ye,exact:we};function x(w,T){return w===T?w!==0||1/w===1/T:w!==w&&T!==T}function O(w){this.message=w,this.stack=""}O.prototype=Error.prototype;function N(w){if(b.env.NODE_ENV!=="production")var T={},B=0;function j(P,k,S,M,D,L,J){if(M=M||v,L=L||S,J!==t){if(c)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(b.env.NODE_ENV!=="production"&&typeof console<"u"){var K=M+":"+S;!T[K]&&B<3&&(m(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",L,M),T[K]=!0,B++)}}return k[S]==null?P?k[S]===null?new O("The "+D+" `"+L+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new O("The "+D+" `"+L+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:w(k,S,M,D,L)}var F=j.bind(null,!1);return F.isRequired=j.bind(null,!0),F}function U(w){function T(B,j,F,P,k,S){var M=B[j],D=re(M);if(D!==w){var L=de(M);return new O("Invalid "+P+" `"+k+"` of type "+("`"+L+"` supplied to `"+F+"`, expected ")+("`"+w+"`."))}return null}return N(T)}function W(){return N(h.thatReturnsNull)}function te(w){function T(B,j,F,P,k){if(typeof w!="function")return new O("Property `"+k+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var S=B[j];if(!Array.isArray(S)){var M=re(S);return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected an array."))}for(var D=0;D<S.length;D++){var L=w(S,D,F,P,k+"["+D+"]",t);if(L instanceof Error)return L}return null}return N(T)}function me(){function w(T,B,j,F,P){var k=T[B];if(!i(k)){var S=re(k);return new O("Invalid "+F+" `"+P+"` of type "+("`"+S+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return N(w)}function le(w){function T(B,j,F,P,k){if(!(B[j]instanceof w)){var S=w.name||v,M=Ee(B[j]);return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected ")+("instance of `"+S+"`."))}return null}return N(T)}function ae(w){if(!Array.isArray(w))return b.env.NODE_ENV!=="production"&&m(!1,"Invalid argument supplied to oneOf, expected an instance of array."),h.thatReturnsNull;function T(B,j,F,P,k){for(var S=B[j],M=0;M<w.length;M++)if(x(S,w[M]))return null;var D=JSON.stringify(w);return new O("Invalid "+P+" `"+k+"` of value `"+S+"` "+("supplied to `"+F+"`, expected one of "+D+"."))}return N(T)}function fe(w){function T(B,j,F,P,k){if(typeof w!="function")return new O("Property `"+k+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type "+("`"+M+"` supplied to `"+F+"`, expected an object."));for(var D in S)if(S.hasOwnProperty(D)){var L=w(S,D,F,P,k+"."+D,t);if(L instanceof Error)return L}return null}return N(T)}function be(w){if(!Array.isArray(w))return b.env.NODE_ENV!=="production"&&m(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),h.thatReturnsNull;for(var T=0;T<w.length;T++){var B=w[T];if(typeof B!="function")return m(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",ve(B),T),h.thatReturnsNull}function j(F,P,k,S,M){for(var D=0;D<w.length;D++){var L=w[D];if(L(F,P,k,S,M,t)==null)return null}return new O("Invalid "+S+" `"+M+"` supplied to "+("`"+k+"`."))}return N(j)}function he(){function w(T,B,j,F,P){return ie(T[B])?null:new O("Invalid "+F+" `"+P+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return N(w)}function ye(w){function T(B,j,F,P,k){var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type `"+M+"` "+("supplied to `"+F+"`, expected `object`."));for(var D in w){var L=w[D];if(L){var J=L(S,D,F,P,k+"."+D,t);if(J)return J}}return null}return N(T)}function we(w){function T(B,j,F,P,k){var S=B[j],M=re(S);if(M!=="object")return new O("Invalid "+P+" `"+k+"` of type `"+M+"` "+("supplied to `"+F+"`, expected `object`."));var D=e({},B[j],w);for(var L in D){var J=w[L];if(!J)return new O("Invalid "+P+" `"+k+"` key `"+L+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(B[j],null," ")+`
|
|
2
2
|
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var K=J(S,L,F,P,k+"."+L,t);if(K)return K}return null}return N(T)}function ie(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ie);if(w===null||i(w))return!0;var T=u(w);if(T){var B=T.call(w),j;if(T!==w.entries){for(;!(j=B.next()).done;)if(!ie(j.value))return!1}else for(;!(j=B.next()).done;){var F=j.value;if(F&&!ie(F[1]))return!1}}else return!1;return!0;default:return!1}}function ne(w,T){return w==="symbol"||T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol}function re(w){var T=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ne(T,w)?"symbol":T}function de(w){if(typeof w>"u"||w===null)return""+w;var T=re(w);if(T==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return T}function ve(w){var T=de(w);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function Ee(w){return!w.constructor||!w.constructor.name?v:w.constructor.name}return y.checkPropTypes=n,y.PropTypes=y,y}}).call(f,s(5))}),(function(o,f){function s(h){return function(){return h}}var b=function(){};b.thatReturns=s,b.thatReturnsFalse=s(!1),b.thatReturnsTrue=s(!0),b.thatReturnsNull=s(null),b.thatReturnsThis=function(){return this},b.thatReturnsArgument=function(h){return h},o.exports=b}),(function(o,f,s){(function(b){var h=function(e){};b.env.NODE_ENV!=="production"&&(h=function(e){if(e===void 0)throw new Error("invariant requires an error message argument")});function l(m,e,t,n,i,c,r,a){if(h(e),!m){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[t,n,i,c,r,a],y=0;u=new Error(e.replace(/%s/g,function(){return v[y++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}o.exports=l}).call(f,s(5))}),(function(o,f,s){(function(b){var h=s(7),l=h;if(b.env.NODE_ENV!=="production"){var m=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),c=1;c<n;c++)i[c-1]=arguments[c];var r=0,a="Warning: "+t.replace(/%s/g,function(){return i[r++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};l=function(t,n){if(n===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(n.indexOf("Failed Composite propType: ")!==0&&!t){for(var i=arguments.length,c=Array(i>2?i-2:0),r=2;r<i;r++)c[r-2]=arguments[r];m.apply(void 0,[n].concat(c))}}}o.exports=l}).call(f,s(5))}),(function(o,f){var s=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function l(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function m(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(r){return t[r]});if(i.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(r){c[r]=r}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}o.exports=m()?Object.assign:function(e,t){for(var n,i=l(e),c,r=1;r<arguments.length;r++){n=Object(arguments[r]);for(var a in n)b.call(n,a)&&(i[a]=n[a]);if(s){c=s(n);for(var u=0;u<c.length;u++)h.call(n,c[u])&&(i[c[u]]=n[c[u]])}}return i}}),(function(o,f){var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";o.exports=s}),(function(o,f,s){(function(b){if(b.env.NODE_ENV!=="production")var h=s(8),l=s(9),m=s(11),e={};function t(n,i,c,r,a){if(b.env.NODE_ENV!=="production"){for(var u in n)if(n.hasOwnProperty(u)){var v;try{h(typeof n[u]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",r||"React class",c,u,typeof n[u]),v=n[u](i,u,r,c,null,m)}catch(x){v=x}if(l(!v||v instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",c,u,typeof v),v instanceof Error&&!(v.message in e)){e[v.message]=!0;var y=a?a():"";l(!1,"Failed %s type: %s%s",c,v.message,y??"")}}}}o.exports=t}).call(f,s(5))}),(function(o,f,s){var b=s(7),h=s(8),l=s(11);o.exports=function(){function m(n,i,c,r,a,u){u!==l&&h(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}m.isRequired=m;function e(){return m}var t={array:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:e,element:m,instanceOf:e,node:m,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return t.checkPropTypes=b,t.PropTypes=t,t}}),(function(o,f){o.exports=st()}),(function(o,f){var s=function(l,m){return l===m};function b(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,m=void 0,e=[],t=void 0,n=!1,i=function(a,u){return l(a,e[u])},c=function(){for(var a=arguments.length,u=Array(a),v=0;v<a;v++)u[v]=arguments[v];return n&&m===this&&u.length===e.length&&u.every(i)||(n=!0,m=this,e=u,t=h.apply(this,u)),t};return c}o.exports=b})])})(je)),je.exports}var ft=lt();const sr=Je(ft);function bt(g){const o=Object.prototype.toString.call(g).slice(8,-1);return o==="Object"&&typeof g[Symbol.iterator]=="function"?"Iterable":o==="Custom"&&g.constructor!==Object&&g instanceof Object?"Object":o}function xr(g){let{styling:o,arrowStyle:f="single",expanded:s,nodeType:b,onClick:h}=g;return A.createElement("div",Z({},o("arrowContainer",f),{onClick:h}),A.createElement("div",o(["arrow","arrowSign"],b,s,f),"▶",f==="double"&&A.createElement("div",o(["arrowSign","arrowSignInner"]),"▶")))}function ht(g,o){return g==="Object"?Object.keys(o).length:g==="Array"?o.length:1/0}function dt(g){return typeof g.set=="function"}function vt(g,o,f){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1/0,h;if(g==="Object"){let l=Object.getOwnPropertyNames(o);f&&l.sort(f===!0?void 0:f),l=l.slice(s,b+1),h={entries:l.map(m=>({key:m,value:o[m]}))}}else if(g==="Array")h={entries:o.slice(s,b+1).map((l,m)=>({key:m+s,value:l}))};else{let l=0;const m=[];let e=!0;const t=dt(o);for(const n of o){if(l>b){e=!1;break}s<=l&&(t&&Array.isArray(n)?typeof n[0]=="string"||typeof n[0]=="number"?m.push({key:n[0],value:n[1]}):m.push({key:`[entry ${l}]`,value:{"[key]":n[0],"[value]":n[1]}}):m.push({key:l,value:n})),l++}h={hasMore:!e,entries:m}}return h}function ke(g,o,f){const s=[];for(;o-g>f*f;)f=f*f;for(let b=g;b<=o;b+=f)s.push({from:b,to:Math.min(o,b+f-1)});return s}function gt(g,o,f,s){let b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1/0;const l=vt.bind(null,g,o,f);if(!s)return l().entries;const m=h<1/0,e=Math.min(h-b,ht(g,o));if(g!=="Iterable"){if(e<=s||s<7)return l(b,h).entries}else if(e<=s&&!m)return l(b,h).entries;let t;if(g==="Iterable"){const{hasMore:n,entries:i}=l(b,b+s-1);t=n?[...i,...ke(b+s,b+2*s-1,s)]:i}else t=m?ke(b,h,s):[...l(0,s-5).entries,...ke(s-4,e-5,s),...l(e-4,e-1).entries];return t}function pt(g){const{styling:o,from:f,to:s,renderChildNodes:b,nodeType:h}=g,[l,m]=Q.useState(!1),e=Q.useCallback(()=>{m(!l)},[l]);return l?A.createElement("div",o("itemRange",l),b(g,f,s)):A.createElement("div",Z({},o("itemRange",l),{onClick:e}),A.createElement(xr,{nodeType:h,styling:o,expanded:!1,onClick:e,arrowStyle:"double"}),`${f} ... ${s}`)}function mt(g){return g.to!==void 0}function Cr(g,o,f){const{nodeType:s,data:b,collectionLimit:h,circularCache:l,keyPath:m,postprocessValue:e,sortObjectKeys:t}=g,n=[];return gt(s,b,t,h,o,f).forEach(i=>{if(mt(i))n.push(A.createElement(pt,Z({},g,{key:`ItemRange--${i.from}-${i.to}`,from:i.from,to:i.to,renderChildNodes:Cr})));else{const{key:c,value:r}=i,a=l.indexOf(r)!==-1;n.push(A.createElement(Tr,Z({},g,{postprocessValue:e,collectionLimit:h,key:`Node--${c}`,keyPath:[c,...m],value:e(r),circularCache:[...l,r],isCircular:a,hideRoot:!1})))}}),n}function Ke(g){const{circularCache:o=[],collectionLimit:f,createItemString:s,data:b,expandable:h,getItemString:l,hideRoot:m,isCircular:e,keyPath:t,labelRenderer:n,level:i=0,nodeType:c,nodeTypeIndicator:r,shouldExpandNodeInitially:a,styling:u}=g,[v,y]=Q.useState(e?!1:a(t,b,i)),x=Q.useCallback(()=>{h&&y(!v)},[h,v]),O=v||m&&i===0?Cr({...g,circularCache:o,level:i+1}):null,N=A.createElement("span",u("nestedNodeItemType",v),r),U=l(c,b,N,s(b,f),t),W=[t,c,v,h];return m?A.createElement("li",u("rootNode",...W),A.createElement("ul",u("rootNodeChildren",...W),O)):A.createElement("li",u("nestedNode",...W),h&&A.createElement(xr,{styling:u,nodeType:c,expanded:v,onClick:x}),A.createElement("label",Z({},u(["label","nestedNodeLabel"],...W),{onClick:x}),n(...W)),A.createElement("span",Z({},u("nestedNodeItemString",...W),{onClick:x}),U),A.createElement("ul",u("nestedNodeChildren",...W),O))}function yt(g){const o=Object.getOwnPropertyNames(g).length;return`${o} ${o!==1?"keys":"key"}`}function wt(g){let{data:o,...f}=g;return A.createElement(Ke,Z({},f,{data:o,nodeType:"Object",nodeTypeIndicator:f.nodeType==="Error"?"Error()":"{}",createItemString:yt,expandable:Object.getOwnPropertyNames(o).length>0}))}function Et(g){return`${g.length} ${g.length!==1?"items":"item"}`}function Ot(g){let{data:o,...f}=g;return A.createElement(Ke,Z({},f,{data:o,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:Et,expandable:o.length>0}))}function xt(g,o){let f=0,s=!1;if(Number.isSafeInteger(g.size))f=g.size;else for(const b of g){if(o&&f+1>o){s=!0;break}f+=1}return`${s?">":""}${f} ${f!==1?"entries":"entry"}`}function Ct(g){return A.createElement(Ke,Z({},g,{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:xt,expandable:!0}))}function se(g){let{nodeType:o,styling:f,labelRenderer:s,keyPath:b,valueRenderer:h,value:l,valueGetter:m=e=>e}=g;return A.createElement("li",f("value",o,b),A.createElement("label",f(["label","valueLabel"],o,b),s(b,o,!1,!1)),A.createElement("span",f("valueText",o,b),h(m(l),l,...b)))}function Tr(g){let{getItemString:o,keyPath:f,labelRenderer:s,styling:b,value:h,valueRenderer:l,isCustomNode:m,...e}=g;const t=m(h)?"Custom":bt(h),n={getItemString:o,key:f[0],keyPath:f,labelRenderer:s,nodeType:t,styling:b,value:h,valueRenderer:l},i={...e,...n,data:h,isCustomNode:m};switch(t){case"Object":case"Error":case"WeakMap":case"WeakSet":return A.createElement(wt,i);case"Array":return A.createElement(Ot,i);case"Iterable":case"Map":case"Set":return A.createElement(Ct,i);case"String":return A.createElement(se,Z({},n,{valueGetter:c=>`"${c}"`}));case"Number":return A.createElement(se,n);case"Boolean":return A.createElement(se,Z({},n,{valueGetter:c=>c?"true":"false"}));case"Date":return A.createElement(se,Z({},n,{valueGetter:c=>c.toISOString()}));case"Null":return A.createElement(se,Z({},n,{valueGetter:()=>"null"}));case"Undefined":return A.createElement(se,Z({},n,{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return A.createElement(se,Z({},n,{valueGetter:c=>c.toString()}));case"Custom":return A.createElement(se,n);default:return A.createElement(se,Z({},n,{valueGetter:()=>`<${t}>`}))}}const Tt={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},At={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},Rt={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},Nt={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},Ft={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},St={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},It={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},Mt={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},jt={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},kt={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},Dt={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},Bt={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},Lt={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},Pt={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},Ar={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},zt={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},$t={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},Ut={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},Gt={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},qt={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},Ht={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},Wt={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},Yt={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},Jt={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},Kt={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},Xt={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},Zt={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},Qt={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},Vt={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},_t={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},ea={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},ra={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},ta={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},aa={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},na={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},sa={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},ia={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},oa=Object.freeze(Object.defineProperty({__proto__:null,apathy:At,ashes:Rt,atelierDune:Nt,atelierForest:Ft,atelierHeath:St,atelierLakeside:It,atelierSeaside:Mt,bespin:jt,brewer:kt,bright:Dt,chalk:Bt,codeschool:Lt,colors:Pt,default:Ar,eighties:zt,embers:$t,flat:Ut,google:Gt,grayscale:qt,greenscreen:Ht,harmonic:Wt,hopscotch:Yt,isotope:Jt,marrakesh:Kt,mocha:Xt,monokai:Zt,ocean:Qt,paraiso:Vt,pop:_t,railscasts:ea,shapeshifter:ra,solarized:ta,summerfruit:aa,threezerotwofour:Tt,tomorrow:na,tube:sa,twilight:ia},Symbol.toStringTag,{value:"Module"}));var De={exports:{}},Be,ir;function Rr(){return ir||(ir=1,Be={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Be}var Le={exports:{}},Pe,or;function ca(){return or||(or=1,Pe=function(o){return!o||typeof o=="string"?!1:o instanceof Array||Array.isArray(o)||o.length>=0&&(o.splice instanceof Function||Object.getOwnPropertyDescriptor(o,o.length-1)&&o.constructor.name!=="String")}),Pe}var cr;function ua(){if(cr)return Le.exports;cr=1;var g=ca(),o=Array.prototype.concat,f=Array.prototype.slice,s=Le.exports=function(h){for(var l=[],m=0,e=h.length;m<e;m++){var t=h[m];g(t)?l=o.call(l,f.call(t)):l.push(t)}return l};return s.wrap=function(b){return function(){return b(s(arguments))}},Le.exports}var ur;function la(){if(ur)return De.exports;ur=1;var g=Rr(),o=ua(),f=Object.hasOwnProperty,s=Object.create(null);for(var b in g)f.call(g,b)&&(s[g[b]]=b);var h=De.exports={to:{},get:{}};h.get=function(e){var t=e.substring(0,3).toLowerCase(),n,i;switch(t){case"hsl":n=h.get.hsl(e),i="hsl";break;case"hwb":n=h.get.hwb(e),i="hwb";break;default:n=h.get.rgb(e),i="rgb";break}return n?{model:i,value:n}:null},h.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,a=[0,0,0,1],u,v,y;if(u=e.match(n)){for(y=u[2],u=u[1],v=0;v<3;v++){var x=v*2;a[v]=parseInt(u.slice(x,x+2),16)}y&&(a[3]=parseInt(y,16)/255)}else if(u=e.match(t)){for(u=u[1],y=u[3],v=0;v<3;v++)a[v]=parseInt(u[v]+u[v],16);y&&(a[3]=parseInt(y+y,16)/255)}else if(u=e.match(i)){for(v=0;v<3;v++)a[v]=parseInt(u[v+1],0);u[4]&&(u[5]?a[3]=parseFloat(u[4])*.01:a[3]=parseFloat(u[4]))}else if(u=e.match(c)){for(v=0;v<3;v++)a[v]=Math.round(parseFloat(u[v+1])*2.55);u[4]&&(u[5]?a[3]=parseFloat(u[4])*.01:a[3]=parseFloat(u[4]))}else return(u=e.match(r))?u[1]==="transparent"?[0,0,0,0]:f.call(g,u[1])?(a=g[u[1]],a[3]=1,a):null:null;for(v=0;v<3;v++)a[v]=l(a[v],0,255);return a[3]=l(a[3],0,1),a},h.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var i=parseFloat(n[4]),c=(parseFloat(n[1])%360+360)%360,r=l(parseFloat(n[2]),0,100),a=l(parseFloat(n[3]),0,100),u=l(isNaN(i)?1:i,0,1);return[c,r,a,u]}return null},h.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var i=parseFloat(n[4]),c=(parseFloat(n[1])%360+360)%360,r=l(parseFloat(n[2]),0,100),a=l(parseFloat(n[3]),0,100),u=l(isNaN(i)?1:i,0,1);return[c,r,a,u]}return null},h.to.hex=function(){var e=o(arguments);return"#"+m(e[0])+m(e[1])+m(e[2])+(e[3]<1?m(Math.round(e[3]*255)):"")},h.to.rgb=function(){var e=o(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},h.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+i+"%)":"rgba("+t+"%, "+n+"%, "+i+"%, "+e[3]+")"},h.to.hsl=function(){var e=o(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},h.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},h.to.keyword=function(e){return s[e.slice(0,3)]};function l(e,t,n){return Math.min(Math.max(t,e),n)}function m(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}return De.exports}var ze={exports:{}},lr;function Nr(){if(lr)return ze.exports;lr=1;var g=Rr(),o={};for(var f in g)g.hasOwnProperty(f)&&(o[g[f]]=f);var s=ze.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var b in s)if(s.hasOwnProperty(b)){if(!("channels"in s[b]))throw new Error("missing channels property: "+b);if(!("labels"in s[b]))throw new Error("missing channel labels property: "+b);if(s[b].labels.length!==s[b].channels)throw new Error("channel and label counts mismatch: "+b);var h=s[b].channels,l=s[b].labels;delete s[b].channels,delete s[b].labels,Object.defineProperty(s[b],"channels",{value:h}),Object.defineProperty(s[b],"labels",{value:l})}s.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,c=Math.min(t,n,i),r=Math.max(t,n,i),a=r-c,u,v,y;return r===c?u=0:t===r?u=(n-i)/a:n===r?u=2+(i-t)/a:i===r&&(u=4+(t-n)/a),u=Math.min(u*60,360),u<0&&(u+=360),y=(c+r)/2,r===c?v=0:y<=.5?v=a/(r+c):v=a/(2-r-c),[u,v*100,y*100]},s.rgb.hsv=function(e){var t,n,i,c,r,a=e[0]/255,u=e[1]/255,v=e[2]/255,y=Math.max(a,u,v),x=y-Math.min(a,u,v),O=function(N){return(y-N)/6/x+1/2};return x===0?c=r=0:(r=x/y,t=O(a),n=O(u),i=O(v),a===y?c=i-n:u===y?c=1/3+t-i:v===y&&(c=2/3+n-t),c<0?c+=1:c>1&&(c-=1)),[c*360,r*100,y*100]},s.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2],c=s.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(n,i));return i=1-1/255*Math.max(t,Math.max(n,i)),[c,r*100,i*100]},s.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,c,r,a,u;return u=Math.min(1-t,1-n,1-i),c=(1-t-u)/(1-u)||0,r=(1-n-u)/(1-u)||0,a=(1-i-u)/(1-u)||0,[c*100,r*100,a*100,u*100]};function m(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}return s.rgb.keyword=function(e){var t=o[e];if(t)return t;var n=1/0,i;for(var c in g)if(g.hasOwnProperty(c)){var r=g[c],a=m(e,r);a<n&&(n=a,i=c)}return i},s.keyword.rgb=function(e){return g[e]},s.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var c=t*.4124+n*.3576+i*.1805,r=t*.2126+n*.7152+i*.0722,a=t*.0193+n*.1192+i*.9505;return[c*100,r*100,a*100]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),n=t[0],i=t[1],c=t[2],r,a,u;return n/=95.047,i/=100,c/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,r=116*i-16,a=500*(n-i),u=200*(i-c),[r,a,u]},s.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100,c,r,a,u,v;if(n===0)return v=i*255,[v,v,v];i<.5?r=i*(1+n):r=i+n-i*n,c=2*i-r,u=[0,0,0];for(var y=0;y<3;y++)a=t+1/3*-(y-1),a<0&&a++,a>1&&a--,6*a<1?v=c+(r-c)*6*a:2*a<1?v=r:3*a<2?v=c+(r-c)*(2/3-a)*6:v=c,u[y]=v*255;return u},s.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,c=n,r=Math.max(i,.01),a,u;return i*=2,n*=i<=1?i:2-i,c*=r<=1?r:2-r,u=(i+n)/2,a=i===0?2*c/(r+c):2*n/(i+n),[t,a*100,u*100]},s.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,c=Math.floor(t)%6,r=t-Math.floor(t),a=255*i*(1-n),u=255*i*(1-n*r),v=255*i*(1-n*(1-r));switch(i*=255,c){case 0:return[i,v,a];case 1:return[u,i,a];case 2:return[a,i,v];case 3:return[a,u,i];case 4:return[v,a,i];case 5:return[i,a,u]}},s.hsv.hsl=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,c=Math.max(i,.01),r,a,u;return u=(2-n)*i,r=(2-n)*c,a=n*c,a/=r<=1?r:2-r,a=a||0,u/=2,[t,a*100,u*100]},s.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100,c=n+i,r,a,u,v;c>1&&(n/=c,i/=c),r=Math.floor(6*t),a=1-i,u=6*t-r,(r&1)!==0&&(u=1-u),v=n+u*(a-n);var y,x,O;switch(r){default:case 6:case 0:y=a,x=v,O=n;break;case 1:y=v,x=a,O=n;break;case 2:y=n,x=a,O=v;break;case 3:y=n,x=v,O=a;break;case 4:y=v,x=n,O=a;break;case 5:y=a,x=n,O=v;break}return[y*255,x*255,O*255]},s.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,c=e[3]/100,r,a,u;return r=1-Math.min(1,t*(1-c)+c),a=1-Math.min(1,n*(1-c)+c),u=1-Math.min(1,i*(1-c)+c),[r*255,a*255,u*255]},s.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,c,r,a;return c=t*3.2406+n*-1.5372+i*-.4986,r=t*-.9689+n*1.8758+i*.0415,a=t*.0557+n*-.204+i*1.057,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:c*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,c=Math.min(Math.max(0,c),1),r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),[c*255,r*255,a*255]},s.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2],c,r,a;return t/=95.047,n/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,c=116*n-16,r=500*(t-n),a=200*(n-i),[c,r,a]},s.lab.xyz=function(e){var t=e[0],n=e[1],i=e[2],c,r,a;r=(t+16)/116,c=n/500+r,a=r-i/200;var u=Math.pow(r,3),v=Math.pow(c,3),y=Math.pow(a,3);return r=u>.008856?u:(r-16/116)/7.787,c=v>.008856?v:(c-16/116)/7.787,a=y>.008856?y:(a-16/116)/7.787,c*=95.047,r*=100,a*=108.883,[c,r,a]},s.lab.lch=function(e){var t=e[0],n=e[1],i=e[2],c,r,a;return c=Math.atan2(i,n),r=c*360/2/Math.PI,r<0&&(r+=360),a=Math.sqrt(n*n+i*i),[t,a,r]},s.lch.lab=function(e){var t=e[0],n=e[1],i=e[2],c,r,a;return a=i/360*2*Math.PI,c=n*Math.cos(a),r=n*Math.sin(a),[t,c,r]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],c=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(c=Math.round(c/50),c===0)return 30;var r=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return c===2&&(r+=60),r},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];if(t===n&&n===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var c=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return c},s.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5,i=(t&1)*n*255,c=(t>>1&1)*n*255,r=(t>>2&1)*n*255;return[i,c,r]},s.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n,i=Math.floor(e/36)/5*255,c=Math.floor((n=e%36)/6)/5*255,r=n%6/5*255;return[i,c,r]},s.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split("").map(function(u){return u+u}).join(""));var i=parseInt(n,16),c=i>>16&255,r=i>>8&255,a=i&255;return[c,r,a]},s.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,c=Math.max(Math.max(t,n),i),r=Math.min(Math.min(t,n),i),a=c-r,u,v;return a<1?u=r/(1-a):u=0,a<=0?v=0:c===t?v=(n-i)/a%6:c===n?v=2+(i-t)/a:v=4+(t-n)/a+4,v/=6,v%=1,[v*360,a*100,u*100]},s.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,c=0;return n<.5?i=2*t*n:i=2*t*(1-n),i<1&&(c=(n-.5*i)/(1-i)),[e[0],i*100,c*100]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,c=0;return i<1&&(c=(n-i)/(1-i)),[e[0],i*100,c*100]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(n===0)return[i*255,i*255,i*255];var c=[0,0,0],r=t%1*6,a=r%1,u=1-a,v=0;switch(Math.floor(r)){case 0:c[0]=1,c[1]=a,c[2]=0;break;case 1:c[0]=u,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=a;break;case 3:c[0]=0,c[1]=u,c[2]=1;break;case 4:c[0]=a,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=u}return v=(1-n)*i,[(n*c[0]+v)*255,(n*c[1]+v)*255,(n*c[2]+v)*255]},s.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,i=t+n*(1-t),c=0;return i>0&&(c=t/i),[e[0],c*100,i*100]},s.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,i=n*(1-t)+.5*t,c=0;return i>0&&i<.5?c=t/(2*i):i>=.5&&i<1&&(c=t/(2*(1-i))),[e[0],c*100,i*100]},s.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,i=t+n*(1-t);return[e[0],(i-t)*100,(1-i)*100]},s.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1-n,c=i-t,r=0;return c<1&&(r=(i-c)/(1-c)),[e[0],c*100,r*100]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=(t<<16)+(t<<8)+t,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i},s.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]},ze.exports}var $e,fr;function fa(){if(fr)return $e;fr=1;var g=Nr();function o(){for(var h={},l=Object.keys(g),m=l.length,e=0;e<m;e++)h[l[e]]={distance:-1,parent:null};return h}function f(h){var l=o(),m=[h];for(l[h].distance=0;m.length;)for(var e=m.pop(),t=Object.keys(g[e]),n=t.length,i=0;i<n;i++){var c=t[i],r=l[c];r.distance===-1&&(r.distance=l[e].distance+1,r.parent=e,m.unshift(c))}return l}function s(h,l){return function(m){return l(h(m))}}function b(h,l){for(var m=[l[h].parent,h],e=g[l[h].parent][h],t=l[h].parent;l[t].parent;)m.unshift(l[t].parent),e=s(g[l[t].parent][t],e),t=l[t].parent;return e.conversion=m,e}return $e=function(h){for(var l=f(h),m={},e=Object.keys(l),t=e.length,n=0;n<t;n++){var i=e[n],c=l[i];c.parent!==null&&(m[i]=b(i,l))}return m},$e}var Ue,br;function ba(){if(br)return Ue;br=1;var g=Nr(),o=fa(),f={},s=Object.keys(g);function b(l){var m=function(e){return e==null?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),l(e))};return"conversion"in l&&(m.conversion=l.conversion),m}function h(l){var m=function(e){if(e==null)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var t=l(e);if(typeof t=="object")for(var n=t.length,i=0;i<n;i++)t[i]=Math.round(t[i]);return t};return"conversion"in l&&(m.conversion=l.conversion),m}return s.forEach(function(l){f[l]={},Object.defineProperty(f[l],"channels",{value:g[l].channels}),Object.defineProperty(f[l],"labels",{value:g[l].labels});var m=o(l),e=Object.keys(m);e.forEach(function(t){var n=m[t];f[l][t]=h(n),f[l][t].raw=b(n)})}),Ue=f,Ue}var Ge,hr;function ha(){if(hr)return Ge;hr=1;var g=la(),o=ba(),f=[].slice,s=["keyword","gray","hex"],b={};Object.keys(o).forEach(function(r){b[f.call(o[r].labels).sort().join("")]=r});var h={};function l(r,a){if(!(this instanceof l))return new l(r,a);if(a&&a in s&&(a=null),a&&!(a in o))throw new Error("Unknown model: "+a);var u,v;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof l)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var y=g.get(r);if(y===null)throw new Error("Unable to parse color from string: "+r);this.model=y.model,v=o[this.model].channels,this.color=y.value.slice(0,v),this.valpha=typeof y.value[v]=="number"?y.value[v]:1}else if(r.length){this.model=a||"rgb",v=o[this.model].channels;var x=f.call(r,0,v);this.color=c(x,v),this.valpha=typeof r[v]=="number"?r[v]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var O=Object.keys(r);"alpha"in r&&(O.splice(O.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var N=O.sort().join("");if(!(N in b))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=b[N];var U=o[this.model].labels,W=[];for(u=0;u<U.length;u++)W.push(r[U[u]]);this.color=c(W)}if(h[this.model])for(v=o[this.model].channels,u=0;u<v;u++){var te=h[this.model][u];te&&(this.color[u]=te(this.color[u]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var a=this.model in g.to?this:this.rgb();a=a.round(typeof r=="number"?r:1);var u=a.valpha===1?a.color:a.color.concat(this.valpha);return g.to[a.model](u)},percentString:function(r){var a=this.rgb().round(typeof r=="number"?r:1),u=a.valpha===1?a.color:a.color.concat(this.valpha);return g.to.rgb.percent(u)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},a=o[this.model].channels,u=o[this.model].labels,v=0;v<a;v++)r[u[v]]=this.color[v];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new l(this.color.map(e(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:t("rgb",0,n(255)),green:t("rgb",1,n(255)),blue:t("rgb",2,n(255)),hue:t(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:t("hsl",1,n(100)),lightness:t("hsl",2,n(100)),saturationv:t("hsv",1,n(100)),value:t("hsv",2,n(100)),chroma:t("hcg",1,n(100)),gray:t("hcg",2,n(100)),white:t("hwb",1,n(100)),wblack:t("hwb",2,n(100)),cyan:t("cmyk",0,n(100)),magenta:t("cmyk",1,n(100)),yellow:t("cmyk",2,n(100)),black:t("cmyk",3,n(100)),x:t("xyz",0,n(100)),y:t("xyz",1,n(100)),z:t("xyz",2,n(100)),l:t("lab",0,n(100)),a:t("lab",1),b:t("lab",2),keyword:function(r){return arguments.length?new l(r):o[this.model].keyword(this.color)},hex:function(r){return arguments.length?new l(r):g.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,a=[],u=0;u<r.length;u++){var v=r[u]/255;a[u]=v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4)}return .2126*a[0]+.7152*a[1]+.0722*a[2]},contrast:function(r){var a=this.luminosity(),u=r.luminosity();return a>u?(a+.05)/(u+.05):(u+.05)/(a+.05)},level:function(r){var a=this.contrast(r);return a>=7.1?"AAA":a>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,a=(r[0]*299+r[1]*587+r[2]*114)/1e3;return a<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),a=0;a<3;a++)r.color[a]=255-r.color[a];return r},lighten:function(r){var a=this.hsl();return a.color[2]+=a.color[2]*r,a},darken:function(r){var a=this.hsl();return a.color[2]-=a.color[2]*r,a},saturate:function(r){var a=this.hsl();return a.color[1]+=a.color[1]*r,a},desaturate:function(r){var a=this.hsl();return a.color[1]-=a.color[1]*r,a},whiten:function(r){var a=this.hwb();return a.color[1]+=a.color[1]*r,a},blacken:function(r){var a=this.hwb();return a.color[2]+=a.color[2]*r,a},grayscale:function(){var r=this.rgb().color,a=r[0]*.3+r[1]*.59+r[2]*.11;return l.rgb(a,a,a)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var a=this.hsl(),u=a.color[0];return u=(u+r)%360,u=u<0?360+u:u,a.color[0]=u,a},mix:function(r,a){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var u=r.rgb(),v=this.rgb(),y=a===void 0?.5:a,x=2*y-1,O=u.alpha()-v.alpha(),N=((x*O===-1?x:(x+O)/(1+x*O))+1)/2,U=1-N;return l.rgb(N*u.red()+U*v.red(),N*u.green()+U*v.green(),N*u.blue()+U*v.blue(),u.alpha()*y+v.alpha()*(1-y))}},Object.keys(o).forEach(function(r){if(s.indexOf(r)===-1){var a=o[r].channels;l.prototype[r]=function(){if(this.model===r)return new l(this);if(arguments.length)return new l(arguments,r);var u=typeof arguments[a]=="number"?a:this.valpha;return new l(i(o[this.model][r].raw(this.color)).concat(u),r)},l[r]=function(u){return typeof u=="number"&&(u=c(f.call(arguments),a)),new l(u,r)}}});function m(r,a){return Number(r.toFixed(a))}function e(r){return function(a){return m(a,r)}}function t(r,a,u){return r=Array.isArray(r)?r:[r],r.forEach(function(v){(h[v]||(h[v]=[]))[a]=u}),r=r[0],function(v){var y;return arguments.length?(u&&(v=u(v)),y=this[r](),y.color[a]=v,y):(y=this[r]().color[a],u&&(y=u(y)),y)}}function n(r){return function(a){return Math.max(0,Math.min(r,a))}}function i(r){return Array.isArray(r)?r:[r]}function c(r,a){for(var u=0;u<a;u++)typeof r[u]!="number"&&(r[u]=0);return r}return Ge=l,Ge}var da=ha();const dr=Je(da);var qe,vr;function va(){if(vr)return qe;vr=1;var g="Expected a function",o="__lodash_placeholder__",f=1,s=2,b=4,h=8,l=16,m=32,e=64,t=128,n=256,i=512,c=1/0,r=9007199254740991,a=17976931348623157e292,u=NaN,v=[["ary",t],["bind",f],["bindKey",s],["curry",h],["curryRight",l],["flip",i],["partial",m],["partialRight",e],["rearg",n]],y="[object Function]",x="[object GeneratorFunction]",O="[object Symbol]",N=/[\\^$.*+?()[\]{}|]/g,U=/^\s+|\s+$/g,W=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,te=/\{\n\/\* \[wrapped with (.+)\] \*/,me=/,? & /,le=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,he=/^(?:0|[1-9]\d*)$/,ye=parseInt,we=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,ie=typeof self=="object"&&self&&self.Object===Object&&self,ne=we||ie||Function("return this")();function re(d,p,E){switch(E.length){case 0:return d.call(p);case 1:return d.call(p,E[0]);case 2:return d.call(p,E[0],E[1]);case 3:return d.call(p,E[0],E[1],E[2])}return d.apply(p,E)}function de(d,p){for(var E=-1,C=d?d.length:0;++E<C&&p(d[E],E,d)!==!1;);return d}function ve(d,p){var E=d?d.length:0;return!!E&&w(d,p,0)>-1}function Ee(d,p,E,C){for(var R=d.length,I=E+-1;++I<R;)if(p(d[I],I,d))return I;return-1}function w(d,p,E){if(p!==p)return Ee(d,T,E);for(var C=E-1,R=d.length;++C<R;)if(d[C]===p)return C;return-1}function T(d){return d!==d}function B(d,p){for(var E=d.length,C=0;E--;)d[E]===p&&C++;return C}function j(d,p){return d?.[p]}function F(d){var p=!1;if(d!=null&&typeof d.toString!="function")try{p=!!(d+"")}catch{}return p}function P(d,p){for(var E=-1,C=d.length,R=0,I=[];++E<C;){var z=d[E];(z===p||z===o)&&(d[E]=o,I[R++]=E)}return I}var k=Function.prototype,S=Object.prototype,M=ne["__core-js_shared__"],D=(function(){var d=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})(),L=k.toString,J=S.hasOwnProperty,K=S.toString,xe=RegExp("^"+L.call(J).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=Object.create,Te=Math.max,Ir=Math.min,Xe=(function(){var d=Ve(Object,"defineProperty"),p=Ve.name;return p&&p.length>2?d:void 0})();function Mr(d){return ge(d)?Ce(d):{}}function jr(d){if(!ge(d)||Hr(d))return!1;var p=Kr(d)||F(d)?xe:fe;return p.test(Yr(d))}function kr(d,p,E,C){for(var R=-1,I=d.length,z=E.length,$=-1,q=p.length,H=Te(I-z,0),G=Array(q+H),X=!C;++$<q;)G[$]=p[$];for(;++R<z;)(X||R<I)&&(G[E[R]]=d[R]);for(;H--;)G[$++]=d[R++];return G}function Dr(d,p,E,C){for(var R=-1,I=d.length,z=-1,$=E.length,q=-1,H=p.length,G=Te(I-$,0),X=Array(G+H),Y=!C;++R<G;)X[R]=d[R];for(var V=R;++q<H;)X[V+q]=p[q];for(;++z<$;)(Y||R<I)&&(X[V+E[z]]=d[R++]);return X}function Br(d,p){var E=-1,C=d.length;for(p||(p=Array(C));++E<C;)p[E]=d[E];return p}function Lr(d,p,E){var C=p&f,R=Oe(d);function I(){var z=this&&this!==ne&&this instanceof I?R:d;return z.apply(C?E:this,arguments)}return I}function Oe(d){return function(){var p=arguments;switch(p.length){case 0:return new d;case 1:return new d(p[0]);case 2:return new d(p[0],p[1]);case 3:return new d(p[0],p[1],p[2]);case 4:return new d(p[0],p[1],p[2],p[3]);case 5:return new d(p[0],p[1],p[2],p[3],p[4]);case 6:return new d(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new d(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var E=Mr(d.prototype),C=d.apply(E,p);return ge(C)?C:E}}function Pr(d,p,E){var C=Oe(d);function R(){for(var I=arguments.length,z=Array(I),$=I,q=Qe(R);$--;)z[$]=arguments[$];var H=I<3&&z[0]!==q&&z[I-1]!==q?[]:P(z,q);if(I-=H.length,I<E)return Ze(d,p,Ne,R.placeholder,void 0,z,H,void 0,void 0,E-I);var G=this&&this!==ne&&this instanceof R?C:d;return re(G,this,z)}return R}function Ne(d,p,E,C,R,I,z,$,q,H){var G=p&t,X=p&f,Y=p&s,V=p&(h|l),Se=p&i,Ae=Y?void 0:Oe(d);function Re(){for(var oe=arguments.length,_=Array(oe),Ie=oe;Ie--;)_[Ie]=arguments[Ie];if(V)var rr=Qe(Re),rt=B(_,rr);if(C&&(_=kr(_,C,R,V)),I&&(_=Dr(_,I,z,V)),oe-=rt,V&&oe<H){var tt=P(_,rr);return Ze(d,p,Ne,Re.placeholder,E,_,tt,$,q,H-oe)}var tr=X?E:this,Me=Y?tr[d]:d;return oe=_.length,$?_=Wr(_,$):Se&&oe>1&&_.reverse(),G&&q<oe&&(_.length=q),this&&this!==ne&&this instanceof Re&&(Me=Ae||Oe(Me)),Me.apply(tr,_)}return Re}function zr(d,p,E,C){var R=p&f,I=Oe(d);function z(){for(var $=-1,q=arguments.length,H=-1,G=C.length,X=Array(G+q),Y=this&&this!==ne&&this instanceof z?I:d;++H<G;)X[H]=C[H];for(;q--;)X[H++]=arguments[++$];return re(Y,R?E:this,X)}return z}function Ze(d,p,E,C,R,I,z,$,q,H){var G=p&h,X=G?z:void 0,Y=G?void 0:z,V=G?I:void 0,Se=G?void 0:I;p|=G?m:e,p&=~(G?e:m),p&b||(p&=-4);var Ae=E(d,p,R,V,X,Se,Y,$,q,H);return Ae.placeholder=C,_e(Ae,d,p)}function $r(d,p,E,C,R,I,z,$){var q=p&s;if(!q&&typeof d!="function")throw new TypeError(g);var H=C?C.length:0;if(H||(p&=-97,C=R=void 0),z=z===void 0?z:Te(er(z),0),$=$===void 0?$:er($),H-=R?R.length:0,p&e){var G=C,X=R;C=R=void 0}var Y=[d,p,E,C,R,G,X,I,z,$];if(d=Y[0],p=Y[1],E=Y[2],C=Y[3],R=Y[4],$=Y[9]=Y[9]==null?q?0:d.length:Te(Y[9]-H,0),!$&&p&(h|l)&&(p&=-25),!p||p==f)var V=Lr(d,p,E);else p==h||p==l?V=Pr(d,p,$):(p==m||p==(f|m))&&!R.length?V=zr(d,p,E,C):V=Ne.apply(void 0,Y);return _e(V,d,p)}function Qe(d){var p=d;return p.placeholder}function Ve(d,p){var E=j(d,p);return jr(E)?E:void 0}function Ur(d){var p=d.match(te);return p?p[1].split(me):[]}function Gr(d,p){var E=p.length,C=E-1;return p[C]=(E>1?"& ":"")+p[C],p=p.join(E>2?", ":" "),d.replace(W,`{
|
|
3
3
|
/* [wrapped with `+p+`] */
|
|
4
4
|
`)}function qr(d,p){return p=p??r,!!p&&(typeof d=="number"||he.test(d))&&d>-1&&d%1==0&&d<p}function Hr(d){return!!D&&D in d}function Wr(d,p){for(var E=d.length,C=Ir(p.length,E),R=Br(d);C--;){var I=p[C];d[C]=qr(I,E)?R[I]:void 0}return d}var _e=Xe?function(d,p,E){var C=p+"";return Xe(d,"toString",{configurable:!0,enumerable:!1,value:_r(Gr(C,Jr(Ur(C),E)))})}:et;function Yr(d){if(d!=null){try{return L.call(d)}catch{}try{return d+""}catch{}}return""}function Jr(d,p){return de(v,function(E){var C="_."+E[0];p&E[1]&&!ve(d,C)&&d.push(C)}),d.sort()}function Fe(d,p,E){p=E?void 0:p;var C=$r(d,h,void 0,void 0,void 0,void 0,void 0,p);return C.placeholder=Fe.placeholder,C}function Kr(d){var p=ge(d)?K.call(d):"";return p==y||p==x}function ge(d){var p=typeof d;return!!d&&(p=="object"||p=="function")}function Xr(d){return!!d&&typeof d=="object"}function Zr(d){return typeof d=="symbol"||Xr(d)&&K.call(d)==O}function Qr(d){if(!d)return d===0?d:0;if(d=Vr(d),d===c||d===-c){var p=d<0?-1:1;return p*a}return d===d?d:0}function er(d){var p=Qr(d),E=p%1;return p===p?E?p-E:p:0}function Vr(d){if(typeof d=="number")return d;if(Zr(d))return u;if(ge(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=ge(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=d.replace(U,"");var E=ae.test(d);return E||be.test(d)?ye(d.slice(2),E?2:8):le.test(d)?u:+d}function _r(d){return function(){return d}}function et(d){return d}return Fe.placeholder={},qe=Fe,qe}var ga=va();const gr=Je(ga);function pa(g){var o=g[0],f=g[1],s=g[2],b,h,l;return b=o*1+f*0+s*1.13983,h=o*1+f*-.39465+s*-.5806,l=o*1+f*2.02311+s*0,b=Math.min(Math.max(0,b),1),h=Math.min(Math.max(0,h),1),l=Math.min(Math.max(0,l),1),[b*255,h*255,l*255]}function ma(g){var o=g[0]/255,f=g[1]/255,s=g[2]/255,b=o*.299+f*.587+s*.114,h=o*-.14713+f*-.28886+s*.436,l=o*.615+f*-.51499+s*-.10001;return[b,h,l]}function pr(g,o){var f=Object.keys(g);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(g);o&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),f.push.apply(f,s)}return f}function ee(g){for(var o=1;o<arguments.length;o++){var f=arguments[o]!=null?arguments[o]:{};o%2?pr(Object(f),!0).forEach(function(s){ct(g,s,f[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(f)):pr(Object(f)).forEach(function(s){Object.defineProperty(g,s,Object.getOwnPropertyDescriptor(f,s))})}return g}var Fr=Ar,mr=Object.keys(Fr),ya=function(o){return o<.25?1:o<.5?.9-o:1.1-o},wa=function(o){var f=dr(o),s=ma(f.array()),b=Or(s,3),h=b[0],l=b[1],m=b[2],e=[ya(h),l,m],t=pa(e);return dr.rgb(t).hex()},pe=function(o){return function(f){return{className:[f.className,o.className].filter(Boolean).join(" "),style:ee(ee({},f.style||{}),o.style||{})}}},Ea=function(o,f){if(o===void 0)return f;if(f===void 0)return o;var s=He(o),b=He(f);switch(s){case"string":switch(b){case"string":return[f,o].filter(Boolean).join(" ");case"object":return pe({className:o,style:f});case"function":return function(h){for(var l=arguments.length,m=new Array(l>1?l-1:0),e=1;e<l;e++)m[e-1]=arguments[e];return pe({className:o})(f.apply(void 0,[h].concat(m)))}}break;case"object":switch(b){case"string":return pe({className:f,style:o});case"object":return ee(ee({},f),o);case"function":return function(h){for(var l=arguments.length,m=new Array(l>1?l-1:0),e=1;e<l;e++)m[e-1]=arguments[e];return pe({style:o})(f.apply(void 0,[h].concat(m)))}}break;case"function":switch(b){case"string":return function(h){for(var l=arguments.length,m=new Array(l>1?l-1:0),e=1;e<l;e++)m[e-1]=arguments[e];return o.apply(void 0,[pe(h)({className:f})].concat(m))};case"object":return function(h){for(var l=arguments.length,m=new Array(l>1?l-1:0),e=1;e<l;e++)m[e-1]=arguments[e];return o.apply(void 0,[pe(h)({style:f})].concat(m))};case"function":return function(h){for(var l=arguments.length,m=new Array(l>1?l-1:0),e=1;e<l;e++)m[e-1]=arguments[e];return o.apply(void 0,[f.apply(void 0,[h].concat(m))].concat(m))}}}},Oa=function(o,f){var s=Object.keys(f);for(var b in o)s.indexOf(b)===-1&&s.push(b);return s.reduce(function(h,l){return h[l]=Ea(o[l],f[l]),h},{})},xa=function(o,f){for(var s=arguments.length,b=new Array(s>2?s-2:0),h=2;h<s;h++)b[h-2]=arguments[h];if(f===null)return o;Array.isArray(f)||(f=[f]);var l=f.map(function(e){return o[e]}).filter(Boolean),m=l.reduce(function(e,t){return typeof t=="string"?e.className=[e.className,t].filter(Boolean).join(" "):He(t)==="object"?e.style=ee(ee({},e.style),t):typeof t=="function"&&(e=ee(ee({},e),t.apply(void 0,[e].concat(b)))),e},{className:"",style:{}});return m.className||delete m.className,Object.keys(m.style).length===0&&delete m.style,m},We=function(o){return Object.keys(o).reduce(function(f,s){return f[s]=/^base/.test(s)?wa(o[s]):s==="scheme"?o[s]+":inverted":o[s],f},{})},Ca=gr(function(g){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.defaultBase16,b=s===void 0?Fr:s,h=o.base16Themes,l=h===void 0?null:h,m=Ta(f,l);m&&(f=ee(ee({},m),f));for(var e=mr.reduce(function(u,v){return u[v]=f[v]||b[v],u},{}),t=Object.keys(f).reduce(function(u,v){return mr.indexOf(v)===-1&&(u[v]=f[v]),u},{}),n=g(e),i=Oa(t,n),c=arguments.length,r=new Array(c>3?c-3:0),a=3;a<c;a++)r[a-3]=arguments[a];return gr(xa,2).apply(void 0,[i].concat(r))},3),Sr=function(o){return!!o.extend},Ta=function(o,f){if(o&&Sr(o)&&o.extend&&(o=o.extend),typeof o=="string"){var s=o.split(":"),b=Or(s,2),h=b[0],l=b[1];f?o=f[h]:o=oa[h],l==="inverted"&&(o=We(o))}return o&&Object.prototype.hasOwnProperty.call(o,"base00")?o:void 0},Aa=function(o){return typeof o=="string"?"".concat(o,":inverted"):o&&Sr(o)&&o.extend?typeof o.extend=="string"?ee(ee({},o),{},{extend:"".concat(o.extend,":inverted")}):ee(ee({},o),{},{extend:We(o.extend)}):o&&We(o)};const Ra={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},Na=g=>({BACKGROUND_COLOR:g.base00,TEXT_COLOR:g.base07,STRING_COLOR:g.base0B,DATE_COLOR:g.base0B,NUMBER_COLOR:g.base09,BOOLEAN_COLOR:g.base09,NULL_COLOR:g.base08,UNDEFINED_COLOR:g.base08,FUNCTION_COLOR:g.base08,SYMBOL_COLOR:g.base08,LABEL_COLOR:g.base0D,ARROW_COLOR:g.base0D,ITEM_STRING_COLOR:g.base0B,ITEM_STRING_EXPANDED_COLOR:g.base03}),Fa=g=>({String:g.STRING_COLOR,Date:g.DATE_COLOR,Number:g.NUMBER_COLOR,Boolean:g.BOOLEAN_COLOR,Null:g.NULL_COLOR,Undefined:g.UNDEFINED_COLOR,Function:g.FUNCTION_COLOR,Symbol:g.SYMBOL_COLOR}),Sa=g=>{const o=Na(g);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:o.BACKGROUND_COLOR},value:(f,s,b)=>{let{style:h}=f;return{style:{...h,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:b.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}},label:{display:"inline-block",color:o.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:(f,s)=>{let{style:b}=f;return{style:{...b,color:Fa(o)[s]}}},itemRange:(f,s)=>({style:{paddingTop:s?0:"0.25em",cursor:"pointer",color:o.LABEL_COLOR}}),arrow:(f,s,b)=>{let{style:h}=f;return{style:{...h,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:b?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:b?"rotateZ(90deg)":"rotateZ(0deg)",transform:b?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}},arrowContainer:(f,s)=>{let{style:b}=f;return{style:{...b,display:"inline-block",paddingRight:"0.5em",paddingLeft:s==="double"?"1em":0,cursor:"pointer"}}},arrowSign:{color:o.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:(f,s,b,h,l)=>{let{style:m}=f;return{style:{...m,position:"relative",paddingTop:"0.25em",marginLeft:s.length>1?"0.875em":0,paddingLeft:l?0:"1.125em"}}},rootNode:{padding:0,margin:0},nestedNodeLabel:(f,s,b,h,l)=>{let{style:m}=f;return{style:{...m,margin:0,padding:0,WebkitUserSelect:l?"inherit":"text",MozUserSelect:l?"inherit":"text",cursor:l?"pointer":"default"}}},nestedNodeItemString:(f,s,b,h)=>{let{style:l}=f;return{style:{...l,paddingLeft:"0.5em",cursor:"default",color:h?o.ITEM_STRING_EXPANDED_COLOR:o.ITEM_STRING_COLOR}}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(f,s,b)=>{let{style:h}=f;return{style:{...h,padding:0,margin:0,listStyle:"none",display:b?"block":"none"}}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},Ia=Ca(Sa,{defaultBase16:Ra}),yr=g=>g,Ma=(g,o,f)=>f===0,ja=(g,o,f,s)=>A.createElement("span",null,f," ",s),ka=g=>{let[o]=g;return A.createElement("span",null,o,":")},Da=()=>!1;function Ba(g){let{data:o,theme:f,invertTheme:s,keyPath:b=["root"],labelRenderer:h=ka,valueRenderer:l=yr,shouldExpandNodeInitially:m=Ma,hideRoot:e=!1,getItemString:t=ja,postprocessValue:n=yr,isCustomNode:i=Da,collectionLimit:c=50,sortObjectKeys:r=!1}=g;const a=Q.useMemo(()=>Ia(s?Aa(f):f),[f,s]);return A.createElement("ul",a("tree"),A.createElement(Tr,{keyPath:e?[]:b,value:n(o),isCustomNode:i,styling:a,labelRenderer:h,valueRenderer:l,shouldExpandNodeInitially:m,hideRoot:e,getItemString:t,postprocessValue:n,collectionLimit:c,sortObjectKeys:r}))}function ue(g){var o;return(o=Er.style([g]))!==null&&o!==void 0?o:""}class Ua extends Q.Component{constructor(){super(...arguments),this.state={filter:"",value:""},this.timer=0,this.handleChange=o=>{const{value:f}=o.target;this.setState({value:f}),window.clearTimeout(this.timer),this.timer=window.setTimeout(()=>{this.setState({filter:f})},300)}}componentDidMount(){it.mount(document,Er.module)}render(){const f=(this.props.translator||ot).load("jupyterlab"),{data:s,metadata:b,forwardedRef:h}=this.props,l=b&&b.root?b.root:"root",m=this.state.filter?Ye(s,this.state.filter,[l]):[l];return Q.createElement("div",{className:"container",ref:h},Q.createElement(ut,{className:"filter",type:"text",placeholder:f.__("Find…"),onChange:this.handleChange,value:this.state.value,rightIcon:"ui-components:search"}),Q.createElement(Ba,{data:s,collectionLimit:100,theme:{extend:La,valueLabel:ue(ce.variableName),valueText:ue(ce.string),nestedNodeItemString:ue(ce.comment)},invertTheme:!1,keyPath:[l],getItemString:(e,t,n,i)=>Array.isArray(t)?Q.createElement("span",null,n," ",i):Object.keys(t).length===0?Q.createElement("span",null,n):null,labelRenderer:([e,t])=>Q.createElement("span",{className:ue(ce.keyword)},Q.createElement(sr,{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"})),valueRenderer:e=>{let t=ue(ce.string);return typeof e=="number"&&(t=ue(ce.number)),(e==="true"||e==="false")&&(t=ue(ce.keyword)),Q.createElement("span",{className:t},Q.createElement(sr,{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"}))},shouldExpandNodeInitially:(e,t,n)=>b&&b.expanded?!0:m.join(",").includes(e.join(","))}))}}const La={scheme:"jupyter",base00:"invalid",base01:"invalid",base02:"invalid",base03:"invalid",base04:"invalid",base05:"invalid",base06:"invalid",base07:"invalid",base08:"invalid",base09:"invalid",base0A:"invalid",base0B:"invalid",base0C:"invalid",base0D:"invalid",base0E:"invalid",base0F:"invalid",author:"invalid"};function wr(g,o){return JSON.stringify(g).includes(o)}function Ye(g,o,f=["root"]){return ar.isArray(g)?g.reduce((s,b,h)=>b&&typeof b=="object"&&wr(b,o)?[...s,[h,...f].join(","),...Ye(b,o,[h,...f])]:s,[]):ar.isObject(g)?Object.keys(g).reduce((s,b)=>{const h=g[b];return h&&typeof h=="object"&&(b.includes(o)||wr(h,o))?[...s,[b,...f].join(","),...Ye(h,o,[b,...f])]:s},[]):[]}export{Ua as Component};
|
package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BkezndW_.js → cose-bilkent-JH36ORCC-DEGpy0W8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l,l as y}from"./mermaid.core-
|
|
1
|
+
import{_ as l,l as y}from"./mermaid.core-B9dEBs01.js";import{c as P}from"./cytoscape.esm-0l7yjBbd.js";import{c as k}from"./cytoscape-cose-bilkent-D-lQYYWH.js";import{s as q}from"./index-Dme9gGqA.js";import"../datalayer-app-main.js";import"./fastdom-promised-qINRdwoa.js";import"./line-DvQ-H-c3.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";P.use(k);function D(t,o){t.forEach(e=>{const r={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(n=>{["id","label","height","width","padding","x","y"].includes(n)||(r[n]=e[n])}),o.add({group:"nodes",data:r,position:{x:e.x??0,y:e.y??0}})})}l(D,"addNodes");function I(t,o){t.forEach(e=>{const r={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(n=>{["id","start","end"].includes(n)||(r[n]=e[n])}),o.add({group:"edges",data:r})})}l(I,"addEdges");function $(t){return new Promise(o=>{const e=q("body").append("div").attr("id","cy").attr("style","display:none"),r=P({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),D(t.nodes,r),I(t.edges,r),r.nodes().forEach(function(a){a.layoutDimensions=()=>{const f=a.data();return{w:f.width,h:f.height}}});const n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};r.layout(n).run(),r.ready(a=>{y.info("Cytoscape ready",a),o(r)})})}l($,"createCytoscapeInstance");function X(t){return t.nodes().map(o=>{const e=o.data(),r=o.position(),n={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(a=>{a!=="id"&&(n[a]=e[a])}),n})}l(X,"extractPositionedNodes");function Y(t){return t.edges().map(o=>{const e=o.data(),r=o._private.rscratch,n={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(a=>{["id","source","target"].includes(a)||(n[a]=e[a])}),n})}l(Y,"extractPositionedEdges");async function v(t,o){y.debug("Starting cose-bilkent layout algorithm");try{B(t);const e=await $(t),r=X(e),n=Y(e);return y.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(e){throw y.error("Error in cose-bilkent layout algorithm:",e),e}}l(v,"executeCoseBilkentLayout");function B(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}l(B,"validateLayoutData");var O=l(async(t,o,{insertCluster:e,insertEdge:r,insertEdgeLabel:n,insertMarkers:a,insertNode:f,log:c,positionEdgeLabel:x},{algorithm:j})=>{const u={},p={},m=o.select("g");a(m,t.markers,t.type,t.diagramId);const C=m.insert("g").attr("class","subgraphs"),E=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),N=m.insert("g").attr("class","nodes");c.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async s=>{if(s.isGroup){const i={...s};p[s.id]=i,u[s.id]=i,await e(C,s)}else{const i={...s};u[s.id]=i;const d=await f(N,s,{config:t.config,dir:t.direction||"TB"}),g=d.node().getBBox();i.width=g.width,i.height=g.height,i.domId=d,c.debug(`Node ${s.id} dimensions: ${g.width}x${g.height}`)}})),c.debug("Running cose-bilkent layout algorithm");const _={...t,nodes:t.nodes.map(s=>{const i=u[s.id];return{...s,width:i.width,height:i.height}})},b=await v(_,t.config);c.debug("Positioning nodes based on layout results"),b.nodes.forEach(s=>{const i=u[s.id];i?.domId&&(i.domId.attr("transform",`translate(${s.x}, ${s.y})`),i.x=s.x,i.y=s.y,c.debug(`Positioned node ${i.id} at center (${s.x}, ${s.y})`))}),b.edges.forEach(s=>{const i=t.edges.find(d=>d.id===s.id);i&&(i.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}])}),c.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async s=>{await n(A,s);const i=u[s.start??""],d=u[s.end??""];if(i&&d){const g=b.edges.find(h=>h.id===s.id);if(g){c.debug("APA01 positionedEdge",g);const h={...s},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}else{const h={...s,points:[{x:i.x||0,y:i.y||0},{x:d.x||0,y:d.y||0}]},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}}})),c.debug("Cose-bilkent rendering completed")},"render"),L=O;export{L as render};
|