@arcgis/coding-components 5.1.0-next.99 → 5.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/{B3UMUBOI.js → 257WOXQH.js} +2 -2
- package/dist/cdn/{GLWP6FOO.js → 25XWPF4V.js} +2 -2
- package/dist/cdn/{4ECQPUXH.js → 267L2FIN.js} +2 -2
- package/dist/cdn/{WL2QW4SI.js → 2DNHMHBF.js} +2 -2
- package/dist/cdn/{FQOKQQ47.js → 2LN4LREF.js} +2 -2
- package/dist/cdn/{GLJQQLP2.js → 2WB7S5TQ.js} +1 -1
- package/dist/cdn/2WVAYBDV.js +2 -0
- package/dist/cdn/{4I4KQI2I.js → 33O3TZY2.js} +2 -2
- package/dist/cdn/{6H3VYBU7.js → 37RZTFII.js} +2 -2
- package/dist/cdn/{7Z4V2ZOD.js → 3CHKFCKR.js} +2 -2
- package/dist/cdn/{P7I5ATMN.js → 3PBQ47BB.js} +2 -2
- package/dist/cdn/{4B64NBIM.js → 3UD4JSPW.js} +1 -1
- package/dist/cdn/{XR32WULA.js → 3XHQ4HYV.js} +2 -2
- package/dist/cdn/{DZQHQ6AF.js → 442YUXXE.js} +2 -2
- package/dist/cdn/{T2JZE2LL.js → 4CE57DHP.js} +2 -2
- package/dist/cdn/{363GMMQ6.js → 4G3EYLJY.js} +2 -2
- package/dist/cdn/{SMAQD57G.js → 5A4VZ22T.js} +2 -2
- package/dist/cdn/{TXV6B5CA.js → 5C2TCLBT.js} +2 -2
- package/dist/cdn/{HPZZVB4X.js → 5HKDO4SX.js} +1 -1
- package/dist/cdn/{6QSGABXH.js → 5SPAJJAA.js} +2 -2
- package/dist/cdn/{2V54WMOX.js → 5YZOQXRI.js} +2 -2
- package/dist/cdn/{4VQ6C3Z4.js → 63PN7BQK.js} +2 -2
- package/dist/cdn/{QNDINFSC.js → 66DXKY4C.js} +2 -2
- package/dist/cdn/{TSZHSRGH.js → 6OWNNQBP.js} +2 -2
- package/dist/cdn/{YE7HDVYS.js → 6QMGBWXM.js} +2 -2
- package/dist/cdn/{4UNXLJD5.js → 6THVQ4HN.js} +2 -2
- package/dist/cdn/{JKJYW4J3.js → 722KNYBS.js} +2 -2
- package/dist/cdn/{TNA5F36E.js → 72E5GBWN.js} +2 -2
- package/dist/cdn/{GHTOL7NB.js → 72FRBPVT.js} +2 -2
- package/dist/cdn/{YGSRHDYU.js → 7AHGAMRQ.js} +2 -2
- package/dist/cdn/{EQMF5QRO.js → 7BIL6A5K.js} +2 -2
- package/dist/cdn/{Q4BZLQFI.js → 7C5VBID2.js} +2 -2
- package/dist/cdn/{3I5A7NBV.js → 7ICO3COW.js} +2 -2
- package/dist/cdn/{DMRPNWLI.js → ADDFKW6J.js} +2 -2
- package/dist/cdn/{FZ65ADOD.js → AG3WMNOC.js} +2 -2
- package/dist/cdn/{T6UJRNFS.js → AP6RN35Q.js} +2 -2
- package/dist/cdn/{P6TDJOVA.js → ATJTQ7GN.js} +2 -2
- package/dist/cdn/{EYE2OWAP.js → AUNCNTKD.js} +2 -2
- package/dist/cdn/{3MWL5V3K.js → AXHKLI4A.js} +2 -2
- package/dist/cdn/{WN4UL6U4.js → B5A6XU2C.js} +2 -2
- package/dist/cdn/{U6XFMQXE.js → BMUIGEIE.js} +2 -2
- package/dist/cdn/{NWLOXWV6.js → BXEZA6TW.js} +2 -2
- package/dist/cdn/{KCU2C44H.js → CC4XBW6V.js} +2 -2
- package/dist/cdn/{DREPIRPG.js → CO2X2FUW.js} +2 -2
- package/dist/cdn/CPITVSFM.js +2 -0
- package/dist/cdn/{7EYL5FJX.js → CWUUQMOE.js} +2 -2
- package/dist/cdn/{FRD2R665.js → D2ZUVVU5.js} +2 -2
- package/dist/cdn/{RI743CW6.js → D4NVM63W.js} +2 -2
- package/dist/cdn/{MMQ24TAN.js → DELXZ5DE.js} +2 -2
- package/dist/cdn/DLQLQG5S.js +2 -0
- package/dist/cdn/{75FV3IS2.js → DO4UEYNF.js} +2 -2
- package/dist/cdn/{TIO3FAL4.js → DUIN5JKL.js} +2 -2
- package/dist/cdn/{PPCYQ5YP.js → DX3M5RXS.js} +2 -2
- package/dist/cdn/{SE5RBBZY.js → E65FJVHN.js} +2 -2
- package/dist/cdn/{MP6Z45SA.js → ECNI2A4K.js} +1 -1
- package/dist/cdn/{GVMVHGSK.js → F56EV53Z.js} +2 -2
- package/dist/cdn/{IXTG7RUG.js → G3ABGU2U.js} +2 -2
- package/dist/cdn/{UCX6WHKQ.js → G5IXPOCO.js} +2 -2
- package/dist/cdn/{SATQDL5P.js → G6KE4E7U.js} +2 -2
- package/dist/cdn/{55IOKSZ5.js → GIDYEJXN.js} +2 -2
- package/dist/cdn/{3TTFCHAA.js → H6RQVSYM.js} +1 -1
- package/dist/cdn/{TSLKULMC.js → HGG6U6BV.js} +2 -2
- package/dist/cdn/{T6BNIUX2.js → HI3QANZI.js} +2 -2
- package/dist/cdn/{DDXNXEA4.js → HKTF6UKG.js} +2 -2
- package/dist/cdn/{NXMTAW45.js → IFXLLRGY.js} +2 -2
- package/dist/cdn/{JEQBTQ75.js → J3NBIAE4.js} +2 -2
- package/dist/cdn/{3L5P44KB.js → JOGSMBUP.js} +2 -2
- package/dist/cdn/{SSYR2CIC.js → JPXIGF6O.js} +2 -2
- package/dist/cdn/{CTUDXLNL.js → JQDZS2Q6.js} +2 -2
- package/dist/cdn/{ORGLDPFO.js → JTAMX62X.js} +2 -2
- package/dist/cdn/{YWHJ2CEL.js → K3HE4IUQ.js} +2 -2
- package/dist/cdn/{FGTIA6RL.js → LEL33EVL.js} +2 -2
- package/dist/cdn/{GZ6HZKQZ.js → LEYGUX3H.js} +2 -2
- package/dist/cdn/LHGSLNP7.js +4 -0
- package/dist/cdn/{ZSBUOR75.js → LTGHOVKA.js} +2 -2
- package/dist/cdn/{PPV6RAZ3.js → LUJKYDO7.js} +2 -2
- package/dist/cdn/{7XEE5TVG.js → LV6XEQG6.js} +2 -2
- package/dist/cdn/{64X4ILDM.js → LZ2JU5WD.js} +2 -2
- package/dist/cdn/{E3RU2YPF.js → M6D7N2YL.js} +2 -2
- package/dist/cdn/M6KDQQ4U.js +2 -0
- package/dist/cdn/{QEFRIJA4.js → MCPE3COG.js} +2 -2
- package/dist/cdn/{W62PYZIH.js → MFO5UW67.js} +2 -2
- package/dist/cdn/{YKKYDYDK.js → MGCFGR73.js} +2 -2
- package/dist/cdn/{MFRVUG5W.js → MGZFIKWR.js} +2 -2
- package/dist/cdn/{W65YQBTQ.js → MJDFEFIM.js} +2 -2
- package/dist/cdn/MJLQA6PP.js +2 -0
- package/dist/cdn/{GPIFJKPY.js → MTHHH7GS.js} +2 -2
- package/dist/cdn/{CYAKD2Q6.js → MUHTIL2W.js} +2 -2
- package/dist/cdn/{V4GG7I2P.js → N6MX4KBY.js} +2 -2
- package/dist/cdn/{WGLVUCW2.js → NXZNB527.js} +2 -2
- package/dist/cdn/{OGS4AWC2.js → O4MTFN46.js} +2 -2
- package/dist/cdn/O5XRLNCX.js +2 -0
- package/dist/cdn/{G56LJGLK.js → OLNYBWUC.js} +2 -2
- package/dist/cdn/{BBHVKMAY.js → OOTGOHTU.js} +2 -2
- package/dist/cdn/{ER2MKLVA.js → P37AQWGL.js} +3 -3
- package/dist/cdn/{7NI24N24.js → P3LG4UGD.js} +2 -2
- package/dist/cdn/{ZVOZKXAZ.js → P7DT3QEI.js} +2 -2
- package/dist/cdn/PPCC4HZ7.js +2 -0
- package/dist/cdn/{XFWXP3YH.js → PS3F65MR.js} +2 -2
- package/dist/cdn/PUY5G6AF.js +65 -0
- package/dist/cdn/PZOZWSDW.js +2 -0
- package/dist/cdn/{NOHSS7JG.js → Q2EZ6DGG.js} +2 -2
- package/dist/cdn/{CEKEOYFU.js → Q7PVSOI4.js} +2 -2
- package/dist/cdn/{GOSZCVIB.js → QDB52Q4O.js} +2 -2
- package/dist/cdn/{Z5ZZ36DQ.js → QTLHVR4Y.js} +2 -2
- package/dist/cdn/{QUDMZ32G.js → QUYIQYT5.js} +2 -2
- package/dist/cdn/{CF3TERM3.js → R2XZZWNP.js} +2 -2
- package/dist/cdn/{3TELAYHA.js → RNQFFOHI.js} +2 -2
- package/dist/cdn/{OEQZWVAS.js → ROGDRNFE.js} +2 -2
- package/dist/cdn/{QH2SNKMT.js → RPAMEY6O.js} +2 -2
- package/dist/cdn/{K6G75VO2.js → RPTU5IBK.js} +2 -2
- package/dist/cdn/{GBLZMUJF.js → S2MXH4E7.js} +2 -2
- package/dist/cdn/{S53Z5RNI.js → SC7HHXFD.js} +2 -2
- package/dist/cdn/{M3LR2Q5I.js → SRMSUAM7.js} +2 -2
- package/dist/cdn/{ZHZFKZA7.js → STN3LSQR.js} +1 -1
- package/dist/cdn/{7ON2OP3Y.js → SXMQVGA2.js} +2 -2
- package/dist/cdn/{JLF32ABD.js → T5PTHYE5.js} +2 -2
- package/dist/cdn/{LLPQEURF.js → TEXAGKBD.js} +2 -2
- package/dist/cdn/{QSENSSQH.js → TFJWWMFX.js} +2 -2
- package/dist/cdn/{FP73TORW.js → TLS5MY7V.js} +2 -2
- package/dist/cdn/{LGNS6ZOO.js → TOOLCNAR.js} +2 -2
- package/dist/cdn/{GS2ISVXJ.js → TQDN6SR5.js} +2 -2
- package/dist/cdn/{GWCARBFY.js → TY277PW2.js} +2 -2
- package/dist/cdn/{VPP77CFW.js → U2T7AGOO.js} +2 -2
- package/dist/cdn/{3RBDIRGM.js → U6PKQWR4.js} +2 -2
- package/dist/cdn/{NUA2KNEU.js → UCHMLPCN.js} +2 -2
- package/dist/cdn/{DGFH2WPL.js → UZD32YRD.js} +2 -2
- package/dist/cdn/{RAMTJLOK.js → VA2OTU3Y.js} +2 -2
- package/dist/cdn/{Y3KOWWO5.js → VGOFAQ7A.js} +1 -1
- package/dist/cdn/{HAN6WQSM.js → VLMDZO2H.js} +2 -2
- package/dist/cdn/{IM7MYTMK.js → VSZR2MLK.js} +2 -2
- package/dist/cdn/{UM25J54F.js → WCOZA2Y3.js} +2 -2
- package/dist/cdn/{TCLNQ7Z6.js → WILWBQKD.js} +2 -2
- package/dist/cdn/{FLNLMLTL.js → XG3S7JQW.js} +2 -2
- package/dist/cdn/XRUKVCVF.js +2 -0
- package/dist/cdn/{6G5URSC7.js → XSKI5PRU.js} +1 -1
- package/dist/cdn/{KXYK3MLK.js → XSNX4HQ7.js} +2 -2
- package/dist/cdn/{REL6OK2I.js → XU7YAUUX.js} +3 -3
- package/dist/cdn/{RG4I3UBE.js → XYW3B4KO.js} +2 -2
- package/dist/cdn/{CHTL74L2.js → YTAZKQZQ.js} +2 -2
- package/dist/cdn/{NCQEI2VP.js → YUX35RAW.js} +2 -2
- package/dist/cdn/{XHU4X2ZF.js → ZIDKLYOI.js} +2 -2
- package/dist/cdn/{IFNCCZ7O.js → ZTCCL565.js} +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/arcade.worker.js +2 -5
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +4250 -4214
- package/dist/cdn/assets/editor-variables/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/ArcadeDebuggerPreviewTabsState.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +175 -143
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/bigquery.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/debugger-value-components.js +1 -1
- package/dist/chunks/debugger-value-styles.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/functional.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +11 -1163
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/postgres.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/setup-monaco-theme.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +98 -76
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/sql-layer-defaults.js +1 -1
- package/dist/chunks/sql-layer-mode.js +1 -1
- package/dist/chunks/sqlServer.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +25 -14
- package/dist/components/arcgis-arcade-debugger-console/customElement.js +1 -1
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +33 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +312 -185
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +2 -2
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-layer-editor/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +5 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/arcade-executor.d.ts +44 -1
- package/package.json +11 -14
- package/dist/cdn/2JVBS55M.js +0 -2
- package/dist/cdn/6C52UOYL.js +0 -2
- package/dist/cdn/6TBGTZVD.js +0 -65
- package/dist/cdn/BWQEBSSL.js +0 -4
- package/dist/cdn/JQQBQXPD.js +0 -2
- package/dist/cdn/N33AALGQ.js +0 -2
- package/dist/cdn/SB3MM5EM.js +0 -2
- package/dist/cdn/SKTKTWIV.js +0 -2
- package/dist/cdn/WP6BSOSW.js +0 -2
- package/dist/cdn/YJW6NUWX.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
var et;(function(i){function e(t){return typeof t=="string"}i.is=e})(et||(et={}));var de;(function(i){function e(t){return typeof t=="string"}i.is=e})(de||(de={}));var tt;(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(tt||(tt={}));var J;(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(J||(J={}));var k;(function(i){function e(n,r){return n===Number.MAX_VALUE&&(n=J.MAX_VALUE),r===Number.MAX_VALUE&&(r=J.MAX_VALUE),{line:n,character:r}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&o.uinteger(r.line)&&o.uinteger(r.character)}i.is=t})(k||(k={}));var A;(function(i){function e(n,r,s,u){if(o.uinteger(n)&&o.uinteger(r)&&o.uinteger(s)&&o.uinteger(u))return{start:k.create(n,r),end:k.create(s,u)};if(k.is(n)&&k.is(r))return{start:n,end:r};throw new Error(`Range#create called with invalid arguments[${n}, ${r}, ${s}, ${u}]`)}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&k.is(r.start)&&k.is(r.end)}i.is=t})(A||(A={}));var Q;(function(i){function e(n,r){return{uri:n,range:r}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&A.is(r.range)&&(o.string(r.uri)||o.undefined(r.uri))}i.is=t})(Q||(Q={}));var it;(function(i){function e(n,r,s,u){return{targetUri:n,targetRange:r,targetSelectionRange:s,originSelectionRange:u}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&A.is(r.targetRange)&&o.string(r.targetUri)&&A.is(r.targetSelectionRange)&&(A.is(r.originSelectionRange)||o.undefined(r.originSelectionRange))}i.is=t})(it||(it={}));var pe;(function(i){function e(n,r,s,u){return{red:n,green:r,blue:s,alpha:u}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&o.numberRange(r.red,0,1)&&o.numberRange(r.green,0,1)&&o.numberRange(r.blue,0,1)&&o.numberRange(r.alpha,0,1)}i.is=t})(pe||(pe={}));var nt;(function(i){function e(n,r){return{range:n,color:r}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&A.is(r.range)&&pe.is(r.color)}i.is=t})(nt||(nt={}));var rt;(function(i){function e(n,r,s){return{label:n,textEdit:r,additionalTextEdits:s}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&o.string(r.label)&&(o.undefined(r.textEdit)||O.is(r))&&(o.undefined(r.additionalTextEdits)||o.typedArray(r.additionalTextEdits,O.is))}i.is=t})(rt||(rt={}));var st;(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(st||(st={}));var ut;(function(i){function e(n,r,s,u,c,l){let D={startLine:n,endLine:r};return o.defined(s)&&(D.startCharacter=s),o.defined(u)&&(D.endCharacter=u),o.defined(c)&&(D.kind=c),o.defined(l)&&(D.collapsedText=l),D}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&o.uinteger(r.startLine)&&o.uinteger(r.startLine)&&(o.undefined(r.startCharacter)||o.uinteger(r.startCharacter))&&(o.undefined(r.endCharacter)||o.uinteger(r.endCharacter))&&(o.undefined(r.kind)||o.string(r.kind))}i.is=t})(ut||(ut={}));var De;(function(i){function e(n,r){return{location:n,message:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&Q.is(r.location)&&o.string(r.message)}i.is=t})(De||(De={}));var Y;(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(Y||(Y={}));var at;(function(i){i.Unnecessary=1,i.Deprecated=2})(at||(at={}));var ot;(function(i){function e(t){let n=t;return o.objectLiteral(n)&&o.string(n.href)}i.is=e})(ot||(ot={}));var Z;(function(i){function e(n,r,s,u,c,l){let D={range:n,message:r};return o.defined(s)&&(D.severity=s),o.defined(u)&&(D.code=u),o.defined(c)&&(D.source=c),o.defined(l)&&(D.relatedInformation=l),D}i.create=e;function t(n){var r;let s=n;return o.defined(s)&&A.is(s.range)&&o.string(s.message)&&(o.number(s.severity)||o.undefined(s.severity))&&(o.integer(s.code)||o.string(s.code)||o.undefined(s.code))&&(o.undefined(s.codeDescription)||o.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(o.string(s.source)||o.undefined(s.source))&&(o.undefined(s.relatedInformation)||o.typedArray(s.relatedInformation,De.is))}i.is=t})(Z||(Z={}));var j;(function(i){function e(n,r,...s){let u={title:n,command:r};return o.defined(s)&&s.length>0&&(u.arguments=s),u}i.create=e;function t(n){let r=n;return o.defined(r)&&o.string(r.title)&&o.string(r.command)}i.is=t})(j||(j={}));var O;(function(i){function e(s,u){return{range:s,newText:u}}i.replace=e;function t(s,u){return{range:{start:s,end:s},newText:u}}i.insert=t;function n(s){return{range:s,newText:""}}i.del=n;function r(s){let u=s;return o.objectLiteral(u)&&o.string(u.newText)&&A.is(u.range)}i.is=r})(O||(O={}));var fe;(function(i){function e(n,r,s){let u={label:n};return r!==void 0&&(u.needsConfirmation=r),s!==void 0&&(u.description=s),u}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&o.string(r.label)&&(o.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(o.string(r.description)||r.description===void 0)}i.is=t})(fe||(fe={}));var z;(function(i){function e(t){let n=t;return o.string(n)}i.is=e})(z||(z={}));var ct;(function(i){function e(s,u,c){return{range:s,newText:u,annotationId:c}}i.replace=e;function t(s,u,c){return{range:{start:s,end:s},newText:u,annotationId:c}}i.insert=t;function n(s,u){return{range:s,newText:"",annotationId:u}}i.del=n;function r(s){let u=s;return O.is(u)&&(fe.is(u.annotationId)||z.is(u.annotationId))}i.is=r})(ct||(ct={}));var me;(function(i){function e(n,r){return{textDocument:n,edits:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&Fe.is(r.textDocument)&&Array.isArray(r.edits)}i.is=t})(me||(me={}));var ge;(function(i){function e(n,r,s){let u={kind:"create",uri:n};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(u.options=r),s!==void 0&&(u.annotationId=s),u}i.create=e;function t(n){let r=n;return r&&r.kind==="create"&&o.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||z.is(r.annotationId))}i.is=t})(ge||(ge={}));var xe;(function(i){function e(n,r,s,u){let c={kind:"rename",oldUri:n,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(c.options=s),u!==void 0&&(c.annotationId=u),c}i.create=e;function t(n){let r=n;return r&&r.kind==="rename"&&o.string(r.oldUri)&&o.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||z.is(r.annotationId))}i.is=t})(xe||(xe={}));var Ee;(function(i){function e(n,r,s){let u={kind:"delete",uri:n};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(u.options=r),s!==void 0&&(u.annotationId=s),u}i.create=e;function t(n){let r=n;return r&&r.kind==="delete"&&o.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||o.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||o.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||z.is(r.annotationId))}i.is=t})(Ee||(Ee={}));var Ce;(function(i){function e(t){let n=t;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(r=>o.string(r.kind)?ge.is(r)||xe.is(r)||Ee.is(r):me.is(r)))}i.is=e})(Ce||(Ce={}));var lt;(function(i){function e(n){return{uri:n}}i.create=e;function t(n){let r=n;return o.defined(r)&&o.string(r.uri)}i.is=t})(lt||(lt={}));var ht;(function(i){function e(n,r){return{uri:n,version:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&o.string(r.uri)&&o.integer(r.version)}i.is=t})(ht||(ht={}));var Fe;(function(i){function e(n,r){return{uri:n,version:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&o.string(r.uri)&&(r.version===null||o.integer(r.version))}i.is=t})(Fe||(Fe={}));var dt;(function(i){function e(n,r,s,u){return{uri:n,languageId:r,version:s,text:u}}i.create=e;function t(n){let r=n;return o.defined(r)&&o.string(r.uri)&&o.string(r.languageId)&&o.integer(r.version)&&o.string(r.text)}i.is=t})(dt||(dt={}));var W;(function(i){i.PlainText="plaintext",i.Markdown="markdown";function e(t){let n=t;return n===i.PlainText||n===i.Markdown}i.is=e})(W||(W={}));var H;(function(i){function e(t){let n=t;return o.objectLiteral(t)&&W.is(n.kind)&&o.string(n.value)}i.is=e})(H||(H={}));var b;(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(b||(b={}));var B;(function(i){i.PlainText=1,i.Snippet=2})(B||(B={}));var pt;(function(i){i.Deprecated=1})(pt||(pt={}));var Dt;(function(i){function e(n,r,s){return{newText:n,insert:r,replace:s}}i.create=e;function t(n){let r=n;return r&&o.string(r.newText)&&A.is(r.insert)&&A.is(r.replace)}i.is=t})(Dt||(Dt={}));var w;(function(i){i.asIs=1,i.adjustIndentation=2})(w||(w={}));var ft;(function(i){function e(t){let n=t;return n&&(o.string(n.detail)||n.detail===void 0)&&(o.string(n.description)||n.description===void 0)}i.is=e})(ft||(ft={}));var mt;(function(i){function e(t){return{label:t}}i.create=e})(mt||(mt={}));var gt;(function(i){function e(t,n){return{items:t||[],isIncomplete:!!n}}i.create=e})(gt||(gt={}));var ee;(function(i){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i.fromPlainText=e;function t(n){let r=n;return o.string(r)||o.objectLiteral(r)&&o.string(r.language)&&o.string(r.value)}i.is=t})(ee||(ee={}));var xt;(function(i){function e(t){let n=t;return!!n&&o.objectLiteral(n)&&(H.is(n.contents)||ee.is(n.contents)||o.typedArray(n.contents,ee.is))&&(t.range===void 0||A.is(t.range))}i.is=e})(xt||(xt={}));var Et;(function(i){function e(t,n){return n?{label:t,documentation:n}:{label:t}}i.create=e})(Et||(Et={}));var Ct;(function(i){function e(t,n,...r){let s={label:t};return o.defined(n)&&(s.documentation=n),o.defined(r)?s.parameters=r:s.parameters=[],s}i.create=e})(Ct||(Ct={}));var Ft;(function(i){i.Text=1,i.Read=2,i.Write=3})(Ft||(Ft={}));var At;(function(i){function e(t,n){let r={range:t};return o.number(n)&&(r.kind=n),r}i.create=e})(At||(At={}));var yt;(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(yt||(yt={}));var bt;(function(i){i.Deprecated=1})(bt||(bt={}));var Bt;(function(i){function e(t,n,r,s,u){let c={name:t,kind:n,location:{uri:s,range:r}};return u&&(c.containerName=u),c}i.create=e})(Bt||(Bt={}));var wt;(function(i){function e(t,n,r,s){return s!==void 0?{name:t,kind:n,location:{uri:r,range:s}}:{name:t,kind:n,location:{uri:r}}}i.create=e})(wt||(wt={}));var It;(function(i){function e(n,r,s,u,c,l){let D={name:n,detail:r,kind:s,range:u,selectionRange:c};return l!==void 0&&(D.children=l),D}i.create=e;function t(n){let r=n;return r&&o.string(r.name)&&o.number(r.kind)&&A.is(r.range)&&A.is(r.selectionRange)&&(r.detail===void 0||o.string(r.detail))&&(r.deprecated===void 0||o.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}i.is=t})(It||(It={}));var kt;(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(kt||(kt={}));var te;(function(i){i.Invoked=1,i.Automatic=2})(te||(te={}));var vt;(function(i){function e(n,r,s){let u={diagnostics:n};return r!=null&&(u.only=r),s!=null&&(u.triggerKind=s),u}i.create=e;function t(n){let r=n;return o.defined(r)&&o.typedArray(r.diagnostics,Z.is)&&(r.only===void 0||o.typedArray(r.only,o.string))&&(r.triggerKind===void 0||r.triggerKind===te.Invoked||r.triggerKind===te.Automatic)}i.is=t})(vt||(vt={}));var Lt;(function(i){function e(n,r,s){let u={title:n},c=!0;return typeof r=="string"?(c=!1,u.kind=r):j.is(r)?u.command=r:u.edit=r,c&&s!==void 0&&(u.kind=s),u}i.create=e;function t(n){let r=n;return r&&o.string(r.title)&&(r.diagnostics===void 0||o.typedArray(r.diagnostics,Z.is))&&(r.kind===void 0||o.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||j.is(r.command))&&(r.isPreferred===void 0||o.boolean(r.isPreferred))&&(r.edit===void 0||Ce.is(r.edit))}i.is=t})(Lt||(Lt={}));var St;(function(i){function e(n,r){let s={range:n};return o.defined(r)&&(s.data=r),s}i.create=e;function t(n){let r=n;return o.defined(r)&&A.is(r.range)&&(o.undefined(r.command)||j.is(r.command))}i.is=t})(St||(St={}));var Tt;(function(i){function e(n,r){return{tabSize:n,insertSpaces:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&o.uinteger(r.tabSize)&&o.boolean(r.insertSpaces)}i.is=t})(Tt||(Tt={}));var Pt;(function(i){function e(n,r,s){return{range:n,target:r,data:s}}i.create=e;function t(n){let r=n;return o.defined(r)&&A.is(r.range)&&(o.undefined(r.target)||o.string(r.target))}i.is=t})(Pt||(Pt={}));var Nt;(function(i){function e(n,r){return{range:n,parent:r}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&A.is(r.range)&&(r.parent===void 0||i.is(r.parent))}i.is=t})(Nt||(Nt={}));var Mt;(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(Mt||(Mt={}));var Ut;(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(Ut||(Ut={}));var _t;(function(i){function e(t){let n=t;return o.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i.is=e})(_t||(_t={}));var jt;(function(i){function e(n,r){return{range:n,text:r}}i.create=e;function t(n){let r=n;return r!=null&&A.is(r.range)&&o.string(r.text)}i.is=t})(jt||(jt={}));var Ot;(function(i){function e(n,r,s){return{range:n,variableName:r,caseSensitiveLookup:s}}i.create=e;function t(n){let r=n;return r!=null&&A.is(r.range)&&o.boolean(r.caseSensitiveLookup)&&(o.string(r.variableName)||r.variableName===void 0)}i.is=t})(Ot||(Ot={}));var zt;(function(i){function e(n,r){return{range:n,expression:r}}i.create=e;function t(n){let r=n;return r!=null&&A.is(r.range)&&(o.string(r.expression)||r.expression===void 0)}i.is=t})(zt||(zt={}));var Vt;(function(i){function e(n,r){return{frameId:n,stoppedLocation:r}}i.create=e;function t(n){let r=n;return o.defined(r)&&A.is(n.stoppedLocation)}i.is=t})(Vt||(Vt={}));var Ae;(function(i){i.Type=1,i.Parameter=2;function e(t){return t===1||t===2}i.is=e})(Ae||(Ae={}));var ye;(function(i){function e(n){return{value:n}}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&(r.tooltip===void 0||o.string(r.tooltip)||H.is(r.tooltip))&&(r.location===void 0||Q.is(r.location))&&(r.command===void 0||j.is(r.command))}i.is=t})(ye||(ye={}));var $t;(function(i){function e(n,r,s){let u={position:n,label:r};return s!==void 0&&(u.kind=s),u}i.create=e;function t(n){let r=n;return o.objectLiteral(r)&&k.is(r.position)&&(o.string(r.label)||o.typedArray(r.label,ye.is))&&(r.kind===void 0||Ae.is(r.kind))&&r.textEdits===void 0||o.typedArray(r.textEdits,O.is)&&(r.tooltip===void 0||o.string(r.tooltip)||H.is(r.tooltip))&&(r.paddingLeft===void 0||o.boolean(r.paddingLeft))&&(r.paddingRight===void 0||o.boolean(r.paddingRight))}i.is=t})($t||($t={}));var Rt;(function(i){function e(t){return{kind:"snippet",value:t}}i.createSnippet=e})(Rt||(Rt={}));var Wt;(function(i){function e(t,n,r,s){return{insertText:t,filterText:n,range:r,command:s}}i.create=e})(Wt||(Wt={}));var Ht;(function(i){function e(t){return{items:t}}i.create=e})(Ht||(Ht={}));var qt;(function(i){i.Invoked=0,i.Automatic=1})(qt||(qt={}));var Gt;(function(i){function e(t,n){return{range:t,text:n}}i.create=e})(Gt||(Gt={}));var Kt;(function(i){function e(t,n){return{triggerKind:t,selectedCompletionInfo:n}}i.create=e})(Kt||(Kt={}));var Xt;(function(i){function e(t){let n=t;return o.objectLiteral(n)&&de.is(n.uri)&&o.string(n.name)}i.is=e})(Xt||(Xt={}));var Jt;(function(i){function e(s,u,c,l){return new be(s,u,c,l)}i.create=e;function t(s){let u=s;return!!(o.defined(u)&&o.string(u.uri)&&(o.undefined(u.languageId)||o.string(u.languageId))&&o.uinteger(u.lineCount)&&o.func(u.getText)&&o.func(u.positionAt)&&o.func(u.offsetAt))}i.is=t;function n(s,u){let c=s.getText(),l=r(u,(x,E)=>{let F=x.range.start.line-E.range.start.line;return F===0?x.range.start.character-E.range.start.character:F}),D=c.length;for(let x=l.length-1;x>=0;x--){let E=l[x],F=s.offsetAt(E.range.start),m=s.offsetAt(E.range.end);if(m<=D)c=c.substring(0,F)+E.newText+c.substring(m,c.length);else throw new Error("Overlapping edit");D=F}return c}i.applyEdits=n;function r(s,u){if(s.length<=1)return s;let c=s.length/2|0,l=s.slice(0,c),D=s.slice(c);r(l,u),r(D,u);let x=0,E=0,F=0;for(;x<l.length&&E<D.length;)u(l[x],D[E])<=0?s[F++]=l[x++]:s[F++]=D[E++];for(;x<l.length;)s[F++]=l[x++];for(;E<D.length;)s[F++]=D[E++];return s}})(Jt||(Jt={}));var be=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let s=t.charAt(r);n=s==="\r"||s===`
|
|
3
3
|
`,s==="\r"&&r+1<t.length&&t.charAt(r+1)===`
|
|
4
4
|
`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return k.create(0,e);for(;n<r;){let u=Math.floor((n+r)/2);t[u]>e?r=u:n=u+1}let s=n-1;return k.create(s,e-t[s])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},o;(function(i){let e=Object.prototype.toString;function t(m){return typeof m<"u"}i.defined=t;function n(m){return typeof m>"u"}i.undefined=n;function r(m){return m===!0||m===!1}i.boolean=r;function s(m){return e.call(m)==="[object String]"}i.string=s;function u(m){return e.call(m)==="[object Number]"}i.number=u;function c(m,P,he){return e.call(m)==="[object Number]"&&P<=m&&m<=he}i.numberRange=c;function l(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}i.integer=l;function D(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}i.uinteger=D;function x(m){return e.call(m)==="[object Function]"}i.func=x;function E(m){return m!==null&&typeof m=="object"}i.objectLiteral=E;function F(m,P){return Array.isArray(m)&&m.every(P)}i.typedArray=F})(o||(o={}));async function Ji(i,e){try{let t=await i,n=new Map,r=new Map,s=[],u=xi(e);return t.forEach(c=>{let l=[];c.items.forEach(D=>Ei(l,r,n,u,D)),l.length&&s.push({...c,items:l})}),{categories:s,functionDefinitions:n,constantDefinitions:r}}catch(t){return console.error(t),{categories:[],functionDefinitions:new Map,constantDefinitions:new Map}}}function xi(i){let{profile:{apiVersion:e,bundles:t,hiddenApiItems:n=[]}={}}=i,r=Yt(e),s=Array.isArray(t)&&t.length>0?new Set(["core",...t]):void 0;return u=>Fi(r,u.sinceVersion)&&(!s||s.has(u.bundle))&&!n.includes(u.name)}function Ei(i,e,t,n,r){if(Array.isArray(r)){r.forEach(s=>Qt(i,t,n,s));return}r.type==="constant"?Ci(i,e,n,r):Qt(i,t,n,r)}function Qt(i,e,t,n){if(!t(n))return;n.disableDocumentation||i.push(n);let{completion:{label:r}}=n,s=r.toLowerCase(),u=e.get(s);u||(u={type:"functionDefinition",key:s,overloads:[]},e.set(s,u)),u.overloads.push(n)}function Ci(i,e,t,n){if(!t(n))return;i.push(n);let{completion:{label:r}}=n,s=r.toLowerCase();e.set(s,n);let[u,c]=n.completion.label.split(".");if(!c)return;let l=u.toLowerCase(),D=e.get(l);D||(D={type:"namespace",key:l,members:[],completion:{label:u,detail:u,insertText:u,insertTextMode:w.adjustIndentation,insertTextFormat:B.PlainText,kind:b.Enum}},e.set(l,D));let x=structuredClone(n);x.name=c,x.completion.label=c,x.completion.insertText=c,x.completion.kind=b.Constant,D.members.push(x),D.completion.documentation=D.members.reduce((E,F)=>(E.value=`${E.value}${E.value?`
|
|
@@ -18,7 +18,7 @@ var et;(function(i){function e(t){return typeof t=="string"}i.is=e})(et||(et={})
|
|
|
18
18
|
`]:[`
|
|
19
19
|
`]}nextPos(e,t=!1){let n=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(n)?(e.column+=1,t?!!this.skipSpaces(e):!0):n<this.length?(e.line+=1,e.column=0,t?!!this.skipSpaces(e):!0):!1}prevPos(e,t=!1){let n=e.line,r=e.column;if(r<1){if(n-=1,n<1)return!1;r=this.getLineLength(n)}else r=Math.min(r-1,this.getLineLength(n));return e.line=n,e.column=r,t?!!this.skipSpaces(e,!0):!0}firstPos(){return{line:1,column:0}}lastPos(){return{line:this.length,column:this.getLineLength(this.length)}}skipSpaces(e,t=!1){if(t){for(;this.prevPos(e);)if(!ie(this.charAt(e))&&this.nextPos(e))return e;return null}else{for(;ie(this.charAt(e));)if(!this.nextPos(e))return null;return e}}slice(e,t){if(!t&&!e)return this;if(t??=this.lastPos(),!e)throw new Error("cannot slice with end but not start");let n=this.lineRecords.slice(e.line-1,t.line);return e.line===t.line?n[0]=V(n[0],e.column,t.column):(n[0]=V(n[0],e.column),n.push(V(n.pop()??n[0],0,t.column))),new i(n)}sliceString(e=this.firstPos(),t=this.lastPos()){let n=[];for(let r=e.line;r<=t.line;r++){let s=this.lineRecords[r-1];r===e.line?r===t.line?s=V(s,e.column,t.column):s=V(s,e.column):r===t.line&&(s=V(s,0,t.column));let u="",c=Math.max(s.indentation,0);c>0&&(u+=new Array(c+1).join(" ")),u+=s.line.slice(s.sliceStart,s.sliceEnd),n.push(u)}return n.join(`
|
|
20
20
|
`)}};function Oi(i,e=2){let t=0,n=i.length;for(let r=0;r<n;r++)switch(i.charCodeAt(r)){case 9:{let s=Math.ceil(t/e)*e;s===t?t+=e:t=s;break}case 11:case 12:case 13:case 65279:break;default:t+=1;break}return t}function V(i,e,t){let n=i.sliceStart,r=i.sliceEnd,s=Math.max(i.indentation,0),u=s+r-n;return t??=u,e=Math.max(e,0),t=Math.min(t,u),t=Math.max(t,e),t<s?(s=t,r=n):r-=u-t,e<s?s-=e:(e-=s,s=0,n+=e),i.indentation===s&&i.sliceStart===n&&i.sliceEnd===r?i:{line:i.line,indentation:s,sliceStart:n,sliceEnd:r}}function ci(i,e,t){return!i&&!t?"":i?t?`${i}${e}${t}`:i:t}var zi=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/u,p=class i{constructor(e=[]){this.lines=e}static fromString(e){return new i(e.split(zi))}static appendLines(e=[]){let t=new i;return e.forEach(n=>{n!=null&&(typeof n=="string"?t.lines.push(n):t.lines.push(...n.lines))}),t}static joinLines(e=[],t=""){let n=new i;return e.forEach(r=>{if(r==null)return;let s=n.lines.pop()??"";typeof r=="string"?n.lines.push(ci(s,t,r)):(n.lines.push(ci(s,t,r.lines.slice(0)[0])),n.lines.push(...r.lines.slice(1)))}),n}static aggregateLines(e,t,n,r,s){if(n.isEmpty)return e;if(!t||e.isEmpty)return n.indentFirstLine(s);let u=r.start.line-t.end.line;if(u===0)return i.joinLines([e," ",n]);let c=u===1?void 0:"";return i.appendLines([e,c,n.indentFirstLine(s)])}get isEmpty(){return this.lines.length===0||this.lines.length===1&&this.lines[0].length===0}get maxLineLength(){return this.lines.reduce((e,t)=>Math.max(e,t.length),0)}get firstLineLength(){return(this.lines[0]??"").length}get lastLineLength(){return(this.lines[this.lines.length-1]??"").length}surroundWith(e="",t=""){return!e&&!t?this:this.isEmpty?new i([e+t]):this.lines.length===1?new i([e+this.lines[0]+t]):i.joinLines([e,this,t])}indentFirstLine(e=""){return this.isEmpty?this:(this.lines[0]=e+this.lines[0],this)}suffixWith(e){return this.surroundWith("",e)}toString(e=`
|
|
21
|
-
`){return this.lines.join(e)}};function Ze(i,e){return i*(e.indentWidth??2)}function M(i=0,e){let{indentWidth:t=2}=Ye(e);return new Array(i*t+1).join(" ")}function ne(i){return i.replace(/['"]/gu,e=>e==='"'?"'":'"')}function Vi(i,e){switch(i.type){case a.UnaryExpression:return(ti(e)||Ii(e))&&e.object===i;case a.BinaryExpression:case a.LogicalExpression:switch(e.type){case a.UnaryExpression:return!0;case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;case a.BinaryExpression:case a.LogicalExpression:return re[e.operator]>re[i.operator];default:return!1}case a.Literal:return ti(e)&&typeof i.value=="number"&&e.object===i;case a.AssignmentExpression:switch(e.type){case a.UnaryExpression:case a.BinaryExpression:case a.LogicalExpression:case a.ReturnStatement:return!0;case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;default:return!1}case a.MemberAccessChainExpression:switch(e.type){case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;default:return!1}default:return!1}}function C(i,e,t){switch(i?.type){case a.BinaryExpression:case a.LogicalExpression:return $i(i,e,t);case a.AssignmentExpression:return new X(i,e,t);case a.MemberExpression:case a.SafeMemberExpression:return new $e(i,e,t);case a.Identifier:return new G(i,e,t);case a.CallExpression:return new Ve(i,e,t);case a.ObjectExpression:return U(i,e,t);case a.ArrayExpression:return U(i,e,t);case a.Literal:return new G(i,e,t);case a.UpdateExpression:case a.UnaryExpression:case a.MemberAccessChainExpression:return new oe(i,e,t);case a.TemplateLiteral:return new We(i,e,t);case a.VariableDeclaration:return new K(i,e,t);default:throw new Error(`unknown type: ${JSON.stringify(i)}`)}}function U(i,e,t){let n=new R(i,e,t);switch(i.type){case a.ArrayExpression:return n.setupCollection(i.elements.map(r=>C(r,i,t)),"SquareBrackets"),n;case a.ObjectExpression:return n.setupCollection(i.properties.map(r=>new Re(r,i,t)),"CurlyBrackets"),n;case a.VariableDeclaration:return n.prefix="var ",n.setupCollection(i.declarations.map(r=>gi(r,i,t)),"None"),n;case a.FunctionDeclaration:return n.prefix=`function ${i.id.name}`,n.setupCollection(i.params.map(r=>C(r,i,t)),"Parentheses"),n;case a.ForStatement:return n.prefix="for ",n.setupCollection([C(i.init,i,t),C(i.test,i,t),C(i.update,i,t)],"Parentheses",";"),n;case a.ForInStatement:case a.ForOfStatement:return n.prefix="for ",n.setupCollection([new X(i,e,t)],"Parentheses",""),n;case a.IfStatement:return n.prefix="if ",n.setupCollection([C(i.test,i,t)],"Parentheses",""),n;case a.WhileStatement:return n.prefix="while ",n.setupCollection([C(i.test,i,t)],"Parentheses",""),n;default:return n}}function gi(i,e,t){return i.init?new X(i,e,t):new G(i.id,e,t)}function $i(i,e,t){let n=[...ae(i.left,i.operator),...ae(i.right,i.operator)].map(s=>C(s,i,t)),r=new R(i,e,t);return r.setupCollection(n,"None",` ${i.operator}`),r}function ae(i,e){return i.type!==a.BinaryExpression&&i.type!==a.LogicalExpression?[i]:i.operator!==e?[i]:[...ae(i.left,e),...ae(i.right,e)]}var v=class{constructor(e,t,n){this.node=e,this.parent=t,this.options=n,this.prefix="",this.suffix="",this.groupingParentheses=!1,this.groupingParentheses=Vi(e,t)}get openingParenthesis(){return this.groupingParentheses?"(":""}get closingParenthesis(){return this.groupingParentheses?")":""}get leadingString(){return[this.prefix,this.openingParenthesis].join("")}get trailingString(){return[this.closingParenthesis,this.suffix].join("")}finalize(e){return typeof e=="string"&&(e=p.fromString(e)),e.surroundWith(this.leadingString,this.trailingString)}},R=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="CollectionPrinter",this.bracketsType="None",this.separator=",",this.printers=[]}setupCollection(e=[],t="None",n){return this.bracketsType=t,this.separator=n??this.separator,this.printers=e,this}getOpeningBracket(e=!1,t="singleLine"){if(this.bracketsType==="None")return"";if(this.bracketsType==="CurlyBrackets")return`{${e||t==="multiline"?"":" "}`;switch(this.bracketsType){case"Parentheses":return"(";case"SquareBrackets":return"[";default:return""}}getClosingBracket(e=!1,t="singleLine"){if(this.bracketsType==="None")return"";if(this.bracketsType==="CurlyBrackets")return`${e||t==="multiline"?"":" "}}`;switch(this.bracketsType){case"Parentheses":return")";case"SquareBrackets":return"]";default:return""}}getLinesLevel(e=0){return this.bracketsType!=="None"||wi(this.parent)||mi(this.parent)||(Ne(this.node)||Pe(this.node))&&(Ne(this.parent)||Pe(this.parent))?e+1:e}finalize(e,t="singleLine",n=0){if(this.bracketsType==="None")return super.finalize(e);let r=this.getOpeningBracket(e.isEmpty,t),s=this.getClosingBracket(e.isEmpty,t);if(t==="singleLine")return super.finalize(e.surroundWith(r,s));let u=M(n,this.options);return super.finalize(p.appendLines([r,e,u+s]))}singleLineFormat(e=0){let t=this.printers.length-1;return p.joinLines(this.printers.map((n,r)=>n.format("singleLine",e).suffixWith(r<t?this.separator:""))," ")}optimizedPrinterFormat(e,t,n=0){let r=this.getLinesLevel(n),s=M(r,this.options),u=this.bracketsType==="None"&&t===0?"":s,c=t<this.printers.length-1?this.separator:"",l=e.format("singleLine",r).suffixWith(c);return l.maxLineLength+s.length<=this.options.wrapColumn?l.indentFirstLine(u):e.format("multiline",r).suffixWith(c).indentFirstLine(u)}multilineFormat(e=0){return p.appendLines(this.printers.map((t,n)=>this.optimizedPrinterFormat(t,n,e)))}format(e="singleLine",t=0){if(this.printers.length===0){let r=this.getOpeningBracket(!0,e),s=this.getClosingBracket(!0,e);return super.finalize(p.fromString(r+s))}if(e==="singleLine"){let r=this.singleLineFormat(t);return this.finalize(r,e,t)}let n=this.multilineFormat(t);return this.finalize(n,e,t)}},Ri=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/u,G=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="StringPrinter"}format(){if(Qe(this.node))return this.finalize(this.node.name);if(typeof this.node.value!="string")return this.finalize(this.node.raw);if(Si(this.parent)&&this.parent.key===this.node&&fi(this.node)&&typeof this.node.value=="string"&&Ri.test(this.node.value))return this.finalize(this.node.value);switch(this.options.quote){case"auto":{let e=JSON.stringify(this.node.value),t=ne(JSON.stringify(ne(this.node.value)));return this.finalize(e.length>t.length?t:e)}case"single":return this.finalize(ne(JSON.stringify(ne(this.node.value))));default:return this.finalize(JSON.stringify(this.node.value))}}},oe=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="SingleExpressionPrinter";let r=vi(e),s=Li(e);if(r||s){this.prefix=r?e.operator:"",this.suffix=s&&!e.prefix?e.operator:"",this.printer=C(e.argument,e,this.options);return}if(ki(e)){this.printer=C(e.expression,e,this.options);return}this.printer=C(e,t,this.options)}format(e="singleLine",t=0){return this.finalize(this.printer.format(e,t))}},K=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="VariableDeclaratorsPrinter",e.declarations.length===1?(this.printer=gi(e.declarations[0],e,this.options),this.printer.prefix="var "):this.printer=U(e,t,this.options)}format(e="singleLine",t=0){return this.finalize(this.printer.format(e,t))}},Ve=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="CallExpressionPrinter",this.argumentsPrinter=new R(e,t,n),this.argumentsPrinter.setupCollection(e.arguments.map(r=>C(r,e,n)),"Parentheses"),Qe(e.callee)?this.argumentsPrinter.prefix=e.callee.name:this.calleePrinter=C(e.callee,t,n)}format(e="singleLine",t=0){if(!this.calleePrinter)return this.finalize(this.argumentsPrinter.format(e,t));let n=this.calleePrinter.format("singleLine",t),r=this.argumentsPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]));let s=Ze(t,this.options)+this.leadingString.length+n.firstLineLength;return s+1<this.options.wrapColumn?(r=this.argumentsPrinter.format("multiline",t),this.finalize(p.joinLines([n,r]))):(n=this.calleePrinter.format("multiline",t),s=n.lastLineLength,s+r.maxLineLength>this.options.wrapColumn&&(r=this.argumentsPrinter.format("multiline",t+1)),this.finalize(p.joinLines([n,r])))}},$e=class extends v{constructor(e,t,n){if(super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="MemberExpressionPrinter",this.objectPrinter=C(e.object,e,this.options),e.computed){let r=new R(e.property,e,this.options);r.setupCollection([C(e.property,e,this.options)],"SquareBrackets"),r.prefix=e.type==="SafeMemberExpression"?N:"",this.propertyPrinter=r}else{let r=new oe(e.property,e,this.options);r.prefix=e.type==="SafeMemberExpression"?N:".",this.propertyPrinter=r}}format(e="singleLine",t=0){let n=this.objectPrinter.format("singleLine",t),r=this.propertyPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]));let s=Ze(t,this.options)+this.leadingString.length+n.firstLineLength;s>this.options.wrapColumn&&(n=this.objectPrinter.format("multiline",t),s=n.lastLineLength);let u=r.firstLineLength+this.trailingString.length;if(s+u<this.options.wrapColumn)return this.finalize(p.joinLines([n,r]));if(this.node.computed)return this.finalize(p.joinLines([n,this.propertyPrinter.format("multiline",t)]));let c=t+1,l=M(c,this.options);return r=this.propertyPrinter.format("singleLine",t),u=l.length+r.lastLineLength+this.trailingString.length,u>this.options.wrapColumn&&(r=this.propertyPrinter.format("multiline",c)),this.finalize(p.appendLines([n,r.indentFirstLine(l)]))}},Re=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="PropertyPrinter",this.key=C(e.key,e,this.options),e.shorthand||(this.key.suffix=":",this.value=C(e.value,e,this.options))}format(e="singleLine",t=0){if(this.node.shorthand||!this.value)return this.finalize(this.key.format(e,t));let n=this.key.format("singleLine",t);if(e==="singleLine"){let u=this.value.format("singleLine",t);return this.finalize(p.joinLines([n,u]," "))}if(se(this.node.value)||se(this.node.value)){let u=this.value.format("multiline",t);return this.finalize(p.joinLines([n,u]," "))}let r=M(t+1,this.options),s=this.value.format("singleLine",t+1).indentFirstLine(r);return s.maxLineLength+this.trailingString.length+1<=this.options.wrapColumn?this.finalize(p.appendLines([n,s])):(s=this.value.format("multiline",t+1).indentFirstLine(r),this.finalize(p.appendLines([n,s])))}},X=class extends v{constructor(e,t,n){switch(super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="OperationPrinter",this.operator="",this.noNewLineWrapping=!1,e.type){case a.AssignmentExpression:this.leftPrinter=C(e.left,e,this.options),this.operator=` ${e.operator}`,this.rightPrinter=C(e.right,e,this.options),this.noNewLineWrapping=(Qe(e.left)||fi(e.left))&&(se(e.right)||ei(e.right));return;case a.VariableDeclarator:this.leftPrinter=C(e.id,e,this.options),e.init&&(this.operator=" =",this.rightPrinter=C(e.init,e,this.options)),this.noNewLineWrapping=se(e.init)||ei(e.init);return;case a.ForInStatement:case a.ForOfStatement:this.leftPrinter=C(e.left,e,this.options),this.operator=e.type==="ForInStatement"?" in":" of",this.rightPrinter=C(e.right,e,this.options);return;case a.BinaryExpression:case a.LogicalExpression:this.leftPrinter=C(e.left,e,this.options),this.operator=` ${e.operator}`,this.rightPrinter=C(e.right,e,this.options);return}}format(e="singleLine",t=0){if(!this.rightPrinter)return this.finalize(this.leftPrinter.format(e,t));let n=this.leftPrinter.format("singleLine",t).suffixWith(this.operator),r=this.rightPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]," "));let s=Ze(t,this.options)+this.leadingString.length+n.maxLineLength+1;s>this.options.wrapColumn&&(n=this.leftPrinter.format("multiline",t).suffixWith(this.operator),s=n.lastLineLength+1);let u=r.firstLineLength+this.trailingString.length+1;if(s+u<this.options.wrapColumn)return this.finalize(p.joinLines([n,r]," "));let c=this.rightPrinter.format("multiline",t);return c.firstLineLength+this.trailingString.length+1+s<this.options.wrapColumn||this.noNewLineWrapping?this.finalize(p.joinLines([n,c]," ")):(u>this.options.wrapColumn&&(r=this.rightPrinter.format("multiline",t+1)),r=r.indentFirstLine(M(t+1)),this.finalize(p.appendLines([n,r])))}},We=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="TemplateLiteralPrinter",this.parts=[];let r=e.expressions.map(s=>C(s,e,this.options));this.parts.push("`"),e.quasis.forEach((s,u)=>{this.parts.push(s.value.raw),u<r.length&&(this.parts.push("${"),this.parts.push(r[u]),this.parts.push("}"))}),this.parts.push("`")}format(e="singleLine",t=0){return this.finalize(p.joinLines(this.parts.map(n=>typeof n=="string"?n:n.format(e,t))))}};function Wi(i){let e={...i.leadingComments?.slice(0,1)[0]?.loc.start??i.loc.start},t={...i.trailingComments?.slice(-1)[0]?.loc.end??i.loc.end};return{start:e,end:t}}function Hi(i){return i.trailingComments?.slice(-1)[0]?.type===a.LineComment}var L=class{constructor(e,t,n){this.node=e,this.parent=t,this.options=n,this.indentStatementFirstLine=!0,this.externalOffset=0,this.options=Ye(this.options)}createStatementPrinter(e){switch(e.type){case a.Program:return new _(e,this.node,this.options);case a.ImportDeclaration:return new Je(e,this.node,this.options);case a.ExpressionStatement:return new Ke(e,this.node,this.options);case a.FunctionDeclaration:return new le(e,this.node,this.options);case a.ExportNamedDeclaration:return Te(e)?new ce(e,this.node,this.options):new le(e,this.node,this.options);case a.BlockStatement:return new _(e,this.node,this.options);case a.ReturnStatement:return new Xe(e,this.node,this.options);case a.VariableDeclaration:return new ce(e,this.node,this.options);case a.IfStatement:return new qe(e,this.node,this.options);case a.ForStatement:case a.ForInStatement:case a.ForOfStatement:case a.WhileStatement:return new Ge(e,this.node,this.options);case a.EmptyStatement:case a.BreakStatement:case a.ContinueStatement:return new He(e,this.node,this.options);default:throw new Error(`unknown type: ${JSON.stringify(e)}`)}}getFormattedBody(e,t=0){if(this.cachedBody&&this.cachedBody.level===t)return this.cachedBody.body;let n=e.format(t);return this.cachedBody={body:n,level:t},n}getStatementIndentation(e=0){return this.indentStatementFirstLine?M(e,this.options):""}getStatementIndentationLength(e=0){return this.indentStatementFirstLine?e*this.options.indentWidth:0}getIndentation(e=0){return M(e,this.options)}addComments(e,t=0){let n=this.getStatementIndentation(t);if(!this.node.leadingComments?.length&&!this.node.trailingComments?.length)return e.indentFirstLine(n);let r=(this.node.leadingComments??[]).reduce((u,c)=>{let l=this.formatComment(c);return{formattedLines:p.aggregateLines(u.formattedLines,u.location,l,c.loc,n),location:c.loc}},{formattedLines:new p}),s=p.aggregateLines(r.formattedLines,r.location,e,this.node.loc,n);return(this.node.trailingComments?.reduce((u,c)=>{let l=this.formatComment(c);return{formattedLines:p.aggregateLines(u.formattedLines,u.location,l,c.loc,n),location:c.loc}},{formattedLines:s,location:this.node.loc})??{formattedLines:s}).formattedLines}formatInnerComments(e=0){if(!S(this.node)||!Array.isArray(this.node.innerComments)||!this.node.innerComments.length)return new p;let t=this.getIndentation(e);return this.node.innerComments.reduce((n,r)=>{let s=this.formatComment(r);return{formattedLines:p.aggregateLines(n.formattedLines,n.location,s,r.loc,t),location:r.loc}},{formattedLines:new p}).formattedLines}formatComment(e){return e.type===a.BlockComment?p.fromString(e.value).surroundWith("/*","*/"):p.fromString(e.value.trimEnd()).surroundWith("//")}canFitSingleLine(e,t=0,n=0){return this.externalOffset+n+this.getStatementIndentationLength(t)+e.lastLineLength<=this.options.wrapColumn}},_=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.printers=[],this.printers=e.body.map(r=>this.createStatementPrinter(r))}format(e=0){if(this.printers.length===0)return this.formatEmptyBlock(e);let t=[],n=S(this.node);n&&t.push("{");let r=n?e+1:e,s;return this.printers.forEach(u=>{if(Di(u.node))return;let c=Wi(u.node);s&&c.start.line-s.end.line>1&&t.push(""),s=c,t.push(u.format(r))}),n&&t.push(`${this.getIndentation(e)}}`),this.addComments(p.appendLines(t),e)}formatEmptyBlock(e=0){if(!S(this.node))return this.addComments(p.fromString(""),e);let t=this.formatInnerComments(e+1),n="{",r=`${this.getIndentation(e)}}`;return t.isEmpty?Se(this.parent)?this.addComments(p.appendLines([n,r]),e):this.addComments(p.fromString("{}"),e):this.addComments(p.appendLines([n,t,r]),e)}},He=class extends L{constructor(e,t,n){switch(super(e,t,n),this.node=e,this.keyword="",this.node.type){case a.ContinueStatement:this.keyword="continue;";break;case a.BreakStatement:this.keyword="break;";break;default:this.keyword=";"}}format(e=0){return this.addComments(p.fromString(this.keyword),e)}},ce=class extends L{constructor(e,t,n){if(super(e,t,n),this.node=e,Te(e))this.printer=new K(e,t,n);else if(Te(e.declaration))this.printer=new K(e.declaration,t,n),this.printer.prefix="export ";else throw new Error(`invalid type: ${JSON.stringify(e)}`)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let n=this.printer.format("singleLine",e).suffixWith(";");if(t==="singleLine"||this.canFitSingleLine(n,e))return this.addComments(n,e)}return this.addComments(this.printer.format("multiline",e).suffixWith(";"),e)}},le=class extends L{constructor(e,t,n){if(super(e,t,n),this.node=e,Zt(e))this.header=U(e,t,n),this.body=new _(e.body,e,n);else if(Zt(e.declaration))this.header=U(e.declaration,t,n),this.header.prefix="export ",this.body=new _(e.declaration.body,e,n);else throw new Error(`invalid type: ${JSON.stringify(e)}`)}format(e=0,t="optimized"){this.body.indentStatementFirstLine=!1;let n=this.getFormattedBody(this.body,e);if(t==="singleLine"||t==="optimized"){let s=this.header.format("singleLine",e);if(t==="singleLine"||this.canFitSingleLine(s,e,n.firstLineLength+1))return this.addComments(p.joinLines([s,n]," "),e)}let r=this.header.format("multiline",e);return this.addComments(p.joinLines([r,n]," "),e)}},qe=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.header=U(e,t,n),this.consequent=this.createStatementPrinter(e.consequent),this.consequent.indentStatementFirstLine=!1,e.alternate&&(this.alternate=this.createStatementPrinter(e.alternate),this.alternate.indentStatementFirstLine=!1)}format(e=0,t="optimized"){let n=!1,r;if(t==="singleLine"||t==="optimized"){let l=this.header.format("singleLine",e),D=S(this.node.consequent)?2:0;(t==="singleLine"||this.canFitSingleLine(l,e,D))&&(r=l)}r||(n=!0,r=this.header.format("multiline",e));let s;if(S(this.node.consequent)){let l=this.consequent.format(e,"optimized");s=p.joinLines([r," ",l])}else if(n||Se(this.node.consequent)){this.consequent.indentStatementFirstLine=!0;let l=this.consequent.format(e+1,"singleLine");this.canFitSingleLine(l,e+1)||(l=this.consequent.format(e+1,"multiline")),s=p.appendLines([r,l])}else{this.consequent.indentStatementFirstLine=!1;let l=this.consequent.format(e,"singleLine");this.canFitSingleLine(l,0,r.lastLineLength+1)?s=p.joinLines([r," ",l]):(this.consequent.indentStatementFirstLine=!0,l=this.consequent.format(e+1,"optimized"),s=p.appendLines([r,l]))}if(!this.alternate)return this.addComments(s,e);let u=Hi(this.node.consequent)||!S(this.node.consequent),c;if(this.alternate.externalOffset=0,S(this.node.alternate)||Se(this.node.alternate))this.alternate.indentStatementFirstLine=!1,this.alternate.externalOffset=u?5:s.lastLineLength+6,c=this.alternate.format(e,"optimized"),c=p.joinLines(["else ",c]);else{let l=u?4:s.lastLineLength+4;this.alternate.indentStatementFirstLine=!1,c=this.alternate.format(e,"singleLine"),this.canFitSingleLine(c,e,l+1)?c=p.joinLines(["else ",c]):(this.alternate.indentStatementFirstLine=!0,c=this.alternate.format(e+1,"optimized"),c=p.appendLines(["else",c]))}return u?s=p.appendLines([s,c.indentFirstLine(this.getIndentation(e))]):s=p.joinLines([s,c]," "),this.addComments(s,e)}},Ge=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.header=U(e,t,n),this.body=this.createStatementPrinter(e.body)}format(e=0,t="optimized"){this.body.indentStatementFirstLine=!1;let n=this.getFormattedBody(this.body,e);if(t==="singleLine"||t==="optimized"){let s=this.header.format("singleLine",e);if(t==="singleLine"||this.canFitSingleLine(s,e,n.firstLineLength+1))return this.addComments(p.joinLines([s,n]," "),e)}let r=this.header.format("multiline",e);return this.addComments(p.joinLines([r,n]," "),e)}},Ke=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.expression=C(e.expression,e,n)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let n=this.expression.format("singleLine",e).suffixWith(";");if(t==="singleLine"||this.canFitSingleLine(n,e))return this.addComments(n,e)}return this.addComments(this.expression.format("multiline",e).suffixWith(";"),e)}},Xe=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.argument=C(e.argument,e,n)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let u=this.argument.format("singleLine",e).surroundWith("return ",";");if(t==="singleLine"||this.canFitSingleLine(u,e))return this.addComments(u,e)}if(!Ne(this.node.argument)&&!Pe(this.node.argument)){let u=this.argument.format("multiline",e).surroundWith("return ",";");return this.addComments(u,e)}let n=this.getIndentation(e+1),r=this.argument.format("multiline",e+1).indentFirstLine(n),s=this.getIndentation(e);return this.addComments(p.appendLines(["return (",r,`${s});`]),e)}},Je=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.libraryNamePrinter=C(e.specifiers[0].local,e,n),this.librarySourcePrinter=C(e.source,e,n)}format(e=0){return this.addComments(p.joinLines(["import"," ",this.libraryNamePrinter.format("singleLine",e)," from ",this.librarySourcePrinter.format("singleLine")]).suffixWith(";"),e)}};function un(i,e){if(!i)return"";let t=Ye(e),n=ze.fromString(i,t),r=n.toString(),s=Pi(r,{tolerant:!0,comments:!0}),u=Ni(s,n);return s.loc.start=u.start,s.loc.end=u.end,new _(s,null,t).format().toString()}var qi=Object.values(g),Gi=Object.values(q);var an=Gi.map(i=>({label:i,kind:b.Constant})),on=qi.map(i=>({label:i,kind:b.Keyword})),cn=[{label:"exportfunction",kind:b.Snippet,detail:"Export Function Statement",insertText:`export function \${1:functionName} ($2) {
|
|
21
|
+
`){return this.lines.join(e)}};function Ze(i,e){return i*(e.indentWidth??2)}function M(i=0,e){let{indentWidth:t=2}=Ye(e);return new Array(i*t+1).join(" ")}function ne(i){return i.replace(/['"]/gu,e=>e==='"'?"'":'"')}function Vi(i,e){switch(i.type){case a.UnaryExpression:return(ti(e)||Ii(e))&&e.object===i;case a.BinaryExpression:case a.LogicalExpression:switch(e.type){case a.UnaryExpression:return!0;case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;case a.BinaryExpression:case a.LogicalExpression:return re[e.operator]>re[i.operator];default:return!1}case a.Literal:return ti(e)&&typeof i.value=="number"&&e.object===i;case a.AssignmentExpression:switch(e.type){case a.UnaryExpression:case a.BinaryExpression:case a.LogicalExpression:case a.ReturnStatement:return!0;case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;default:return!1}case a.MemberAccessChainExpression:switch(e.type){case a.MemberExpression:case a.SafeMemberExpression:return e.object===i;default:return!1}default:return!1}}function C(i,e,t){switch(i?.type){case a.BinaryExpression:case a.LogicalExpression:return $i(i,e,t);case a.AssignmentExpression:return new X(i,e,t);case a.MemberExpression:case a.SafeMemberExpression:return new $e(i,e,t);case a.Identifier:return new G(i,e,t);case a.CallExpression:return new Ve(i,e,t);case a.ObjectExpression:return U(i,e,t);case a.ArrayExpression:return U(i,e,t);case a.Literal:return new G(i,e,t);case a.UpdateExpression:case a.UnaryExpression:case a.MemberAccessChainExpression:return new oe(i,e,t);case a.TemplateLiteral:return new We(i,e,t);case a.VariableDeclaration:return new K(i,e,t);default:throw new Error(`unknown type: ${JSON.stringify(i)}`)}}function U(i,e,t){let n=new R(i,e,t);switch(i.type){case a.ArrayExpression:return n.setupCollection(i.elements.map(r=>C(r,i,t)),"SquareBrackets"),n;case a.ObjectExpression:return n.setupCollection(i.properties.map(r=>new Re(r,i,t)),"CurlyBrackets"),n;case a.VariableDeclaration:return n.prefix="var ",n.setupCollection(i.declarations.map(r=>gi(r,i,t)),"None"),n;case a.FunctionDeclaration:return n.prefix=`function ${i.id.name}`,n.setupCollection(i.params.map(r=>C(r,i,t)),"Parentheses"),n;case a.ForStatement:return n.prefix="for ",n.setupCollection([C(i.init,i,t),C(i.test,i,t),C(i.update,i,t)],"Parentheses",";"),n;case a.ForInStatement:case a.ForOfStatement:return n.prefix="for ",n.setupCollection([new X(i,e,t)],"Parentheses",""),n;case a.IfStatement:return n.prefix="if ",n.setupCollection([C(i.test,i,t)],"Parentheses",""),n;case a.WhileStatement:return n.prefix="while ",n.setupCollection([C(i.test,i,t)],"Parentheses",""),n;default:return n}}function gi(i,e,t){return i.init?new X(i,e,t):new G(i.id,e,t)}function $i(i,e,t){let n=[...ae(i.left,i.operator),...ae(i.right,i.operator)].map(s=>C(s,i,t)),r=new R(i,e,t);return r.setupCollection(n,"None",` ${i.operator}`),r}function ae(i,e){return i.type!==a.BinaryExpression&&i.type!==a.LogicalExpression?[i]:i.operator!==e?[i]:[...ae(i.left,e),...ae(i.right,e)]}var v=class{constructor(e,t,n){this.node=e,this.parent=t,this.options=n,this.prefix="",this.suffix="",this.groupingParentheses=!1,this.groupingParentheses=Vi(e,t)}get openingParenthesis(){return this.groupingParentheses?"(":""}get closingParenthesis(){return this.groupingParentheses?")":""}get leadingString(){return[this.prefix,this.openingParenthesis].join("")}get trailingString(){return[this.closingParenthesis,this.suffix].join("")}finalize(e){return typeof e=="string"&&(e=p.fromString(e)),e.surroundWith(this.leadingString,this.trailingString)}},R=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="CollectionPrinter",this.bracketsType="None",this.separator=",",this.printers=[]}setupCollection(e=[],t="None",n){return this.bracketsType=t,this.separator=n??this.separator,this.printers=e,this}getOpeningBracket(e=!1,t="singleLine"){if(this.bracketsType==="None")return"";if(this.bracketsType==="CurlyBrackets")return`{${e||t==="multiline"?"":" "}`;switch(this.bracketsType){case"Parentheses":return"(";case"SquareBrackets":return"[";default:return""}}getClosingBracket(e=!1,t="singleLine"){if(this.bracketsType==="None")return"";if(this.bracketsType==="CurlyBrackets")return`${e||t==="multiline"?"":" "}}`;switch(this.bracketsType){case"Parentheses":return")";case"SquareBrackets":return"]";default:return""}}getLinesLevel(e=0){return this.bracketsType!=="None"||wi(this.parent)||mi(this.parent)||(Ne(this.node)||Pe(this.node))&&(Ne(this.parent)||Pe(this.parent))?e+1:e}finalize(e,t="singleLine",n=0){if(this.bracketsType==="None")return super.finalize(e);let r=this.getOpeningBracket(e.isEmpty,t),s=this.getClosingBracket(e.isEmpty,t);if(t==="singleLine")return super.finalize(e.surroundWith(r,s));let u=M(n,this.options);return super.finalize(p.appendLines([r,e,u+s]))}singleLineFormat(e=0){let t=this.printers.length-1;return p.joinLines(this.printers.map((n,r)=>n.format("singleLine",e).suffixWith(r<t?this.separator:""))," ")}optimizedPrinterFormat(e,t,n=0){let r=this.getLinesLevel(n),s=M(r,this.options),u=this.bracketsType==="None"&&t===0?"":s,c=t<this.printers.length-1?this.separator:"",l=e.format("singleLine",r).suffixWith(c);return l.maxLineLength+s.length<=this.options.wrapColumn?l.indentFirstLine(u):e.format("multiline",r).suffixWith(c).indentFirstLine(u)}multilineFormat(e=0){return p.appendLines(this.printers.map((t,n)=>this.optimizedPrinterFormat(t,n,e)))}format(e="singleLine",t=0){if(this.printers.length===0){let r=this.getOpeningBracket(!0,e),s=this.getClosingBracket(!0,e);return super.finalize(p.fromString(r+s))}if(e==="singleLine"){let r=this.singleLineFormat(t);return this.finalize(r,e,t)}let n=this.multilineFormat(t);return this.finalize(n,e,t)}},Ri=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/u,G=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="StringPrinter"}format(){if(Qe(this.node))return this.finalize(this.node.name);if(typeof this.node.value!="string")return this.finalize(this.node.raw);if(Si(this.parent)&&this.parent.key===this.node&&fi(this.node)&&typeof this.node.value=="string"&&Ri.test(this.node.value))return this.finalize(this.node.value);switch(this.options.quote){case"auto":{let e=JSON.stringify(this.node.value),t=ne(JSON.stringify(ne(this.node.value)));return this.finalize(e.length>t.length?t:e)}case"single":return this.finalize(ne(JSON.stringify(ne(this.node.value))));default:return this.finalize(JSON.stringify(this.node.value))}}},oe=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="SingleExpressionPrinter";let r=vi(e),s=Li(e);if(r||s){this.prefix=r?e.operator:"",this.suffix=s&&!e.prefix?e.operator:"",this.printer=C(e.argument,e,this.options);return}if(ki(e)){this.printer=C(e.expression,e,this.options);return}this.printer=C(e,t,this.options)}format(e="singleLine",t=0){return this.finalize(this.printer.format(e,t))}},K=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="VariableDeclaratorsPrinter",e.declarations.length===1?(this.printer=gi(e.declarations[0],e,this.options),this.printer.prefix="var "):this.printer=U(e,t,this.options)}format(e="singleLine",t=0){return this.finalize(this.printer.format(e,t))}},Ve=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="CallExpressionPrinter",this.argumentsPrinter=new R(e,t,n),this.argumentsPrinter.setupCollection(e.arguments.map(r=>C(r,e,n)),"Parentheses"),Qe(e.callee)?this.argumentsPrinter.prefix=e.callee.name:this.calleePrinter=C(e.callee,t,n)}format(e="singleLine",t=0){if(!this.calleePrinter)return this.finalize(this.argumentsPrinter.format(e,t));let n=this.calleePrinter.format("singleLine",t),r=this.argumentsPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]));let s=Ze(t,this.options)+this.leadingString.length+n.firstLineLength;return s+1<this.options.wrapColumn?(r=this.argumentsPrinter.format("multiline",t),this.finalize(p.joinLines([n,r]))):(n=this.calleePrinter.format("multiline",t),s=n.lastLineLength,s+r.maxLineLength>this.options.wrapColumn&&(r=this.argumentsPrinter.format("multiline",t+1)),this.finalize(p.joinLines([n,r])))}},$e=class extends v{constructor(e,t,n){if(super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="MemberExpressionPrinter",this.objectPrinter=C(e.object,e,this.options),e.computed){let r=new R(e.property,e,this.options);r.setupCollection([C(e.property,e,this.options)],"SquareBrackets"),r.prefix=e.type==="SafeMemberExpression"?N:"",this.propertyPrinter=r}else{let r=new oe(e.property,e,this.options);r.prefix=e.type==="SafeMemberExpression"?N:".",this.propertyPrinter=r}}format(e="singleLine",t=0){let n=this.objectPrinter.format("singleLine",t),r=this.propertyPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]));let s=Ze(t,this.options)+this.leadingString.length+n.firstLineLength;s>this.options.wrapColumn&&(n=this.objectPrinter.format("multiline",t),s=n.lastLineLength);let u=r.firstLineLength+this.trailingString.length;if(s+u<this.options.wrapColumn)return this.finalize(p.joinLines([n,r]));if(this.node.computed)return this.finalize(p.joinLines([n,this.propertyPrinter.format("multiline",t)]));let c=t+1,l=M(c,this.options);return r=this.propertyPrinter.format("singleLine",t),u=l.length+r.lastLineLength+this.trailingString.length,u>this.options.wrapColumn&&(r=this.propertyPrinter.format("multiline",c)),this.finalize(p.appendLines([n,r.indentFirstLine(l)]))}},Re=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="PropertyPrinter",this.key=C(e.key,e,this.options),e.shorthand||(this.key.suffix=":",this.value=C(e.value,e,this.options))}format(e="singleLine",t=0){if(this.node.shorthand||!this.value)return this.finalize(this.key.format(e,t));let n=this.key.format("singleLine",t);if(e==="singleLine"){let u=this.value.format("singleLine",t);return this.finalize(p.joinLines([n,u]," "))}if(se(this.node.value)||se(this.node.value)){let u=this.value.format("multiline",t);return this.finalize(p.joinLines([n,u]," "))}let r=M(t+1,this.options),s=this.value.format("singleLine",t+1).indentFirstLine(r);return s.maxLineLength+this.trailingString.length+1<=this.options.wrapColumn?this.finalize(p.appendLines([n,s])):(s=this.value.format("multiline",t+1).indentFirstLine(r),this.finalize(p.appendLines([n,s])))}},X=class extends v{constructor(e,t,n){switch(super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="OperationPrinter",this.operator="",this.noNewLineWrapping=!1,e.type){case a.AssignmentExpression:this.leftPrinter=C(e.left,e,this.options),this.operator=` ${e.operator}`,this.rightPrinter=C(e.right,e,this.options),this.noNewLineWrapping=(Qe(e.left)||fi(e.left))&&(se(e.right)||ei(e.right));return;case a.VariableDeclarator:this.leftPrinter=C(e.id,e,this.options),e.init&&(this.operator=" =",this.rightPrinter=C(e.init,e,this.options)),this.noNewLineWrapping=se(e.init)||ei(e.init);return;case a.ForInStatement:case a.ForOfStatement:this.leftPrinter=C(e.left,e,this.options),this.operator=e.type==="ForInStatement"?" in":" of",this.rightPrinter=C(e.right,e,this.options);return;case a.BinaryExpression:case a.LogicalExpression:this.leftPrinter=C(e.left,e,this.options),this.operator=` ${e.operator}`,this.rightPrinter=C(e.right,e,this.options);return}}format(e="singleLine",t=0){if(!this.rightPrinter)return this.finalize(this.leftPrinter.format(e,t));let n=this.leftPrinter.format("singleLine",t).suffixWith(this.operator),r=this.rightPrinter.format("singleLine",t);if(e==="singleLine")return this.finalize(p.joinLines([n,r]," "));let s=Ze(t,this.options)+this.leadingString.length+n.maxLineLength+1;s>this.options.wrapColumn&&(n=this.leftPrinter.format("multiline",t).suffixWith(this.operator),s=n.lastLineLength+1);let u=r.firstLineLength+this.trailingString.length+1;if(s+u<this.options.wrapColumn)return this.finalize(p.joinLines([n,r]," "));let c=this.rightPrinter.format("multiline",t);return c.firstLineLength+this.trailingString.length+1+s<this.options.wrapColumn||this.noNewLineWrapping?this.finalize(p.joinLines([n,c]," ")):(u>this.options.wrapColumn&&(r=this.rightPrinter.format("multiline",t+1)),r=r.indentFirstLine(M(t+1)),this.finalize(p.appendLines([n,r])))}},We=class extends v{constructor(e,t,n){super(e,t,n),this.node=e,this.parent=t,this.options=n,this.type="TemplateLiteralPrinter",this.parts=[];let r=e.expressions.map(s=>C(s,e,this.options));this.parts.push("`"),e.quasis.forEach((s,u)=>{this.parts.push(s.value.raw),u<r.length&&(this.parts.push("${"),this.parts.push(r[u]),this.parts.push("}"))}),this.parts.push("`")}format(e="singleLine",t=0){return this.finalize(p.joinLines(this.parts.map(n=>typeof n=="string"?n:n.format(e,t))))}};function Wi(i){let e={...i.leadingComments?.slice(0,1)[0]?.loc.start??i.loc.start},t={...i.trailingComments?.slice(-1)[0]?.loc.end??i.loc.end};return{start:e,end:t}}function Hi(i){return i.trailingComments?.slice(-1)[0]?.type===a.LineComment}var L=class{constructor(e,t,n){this.node=e,this.parent=t,this.options=n,this.indentStatementFirstLine=!0,this.externalOffset=0,this.options=Ye(this.options)}createStatementPrinter(e){switch(e.type){case a.Program:return new _(e,this.node,this.options);case a.ImportDeclaration:return new Je(e,this.node,this.options);case a.ExpressionStatement:return new Ke(e,this.node,this.options);case a.FunctionDeclaration:return new le(e,this.node,this.options);case a.ExportNamedDeclaration:return Te(e)?new ce(e,this.node,this.options):new le(e,this.node,this.options);case a.BlockStatement:return new _(e,this.node,this.options);case a.ReturnStatement:return new Xe(e,this.node,this.options);case a.VariableDeclaration:return new ce(e,this.node,this.options);case a.IfStatement:return new qe(e,this.node,this.options);case a.ForStatement:case a.ForInStatement:case a.ForOfStatement:case a.WhileStatement:return new Ge(e,this.node,this.options);case a.EmptyStatement:case a.BreakStatement:case a.ContinueStatement:return new He(e,this.node,this.options);default:throw new Error(`unknown type: ${JSON.stringify(e)}`)}}getFormattedBody(e,t=0){if(this.cachedBody?.level===t)return this.cachedBody.body;let n=e.format(t);return this.cachedBody={body:n,level:t},n}getStatementIndentation(e=0){return this.indentStatementFirstLine?M(e,this.options):""}getStatementIndentationLength(e=0){return this.indentStatementFirstLine?e*this.options.indentWidth:0}getIndentation(e=0){return M(e,this.options)}addComments(e,t=0){let n=this.getStatementIndentation(t);if(!this.node.leadingComments?.length&&!this.node.trailingComments?.length)return e.indentFirstLine(n);let r=(this.node.leadingComments??[]).reduce((u,c)=>{let l=this.formatComment(c);return{formattedLines:p.aggregateLines(u.formattedLines,u.location,l,c.loc,n),location:c.loc}},{formattedLines:new p}),s=p.aggregateLines(r.formattedLines,r.location,e,this.node.loc,n);return(this.node.trailingComments?.reduce((u,c)=>{let l=this.formatComment(c);return{formattedLines:p.aggregateLines(u.formattedLines,u.location,l,c.loc,n),location:c.loc}},{formattedLines:s,location:this.node.loc})??{formattedLines:s}).formattedLines}formatInnerComments(e=0){if(!S(this.node)||!Array.isArray(this.node.innerComments)||!this.node.innerComments.length)return new p;let t=this.getIndentation(e);return this.node.innerComments.reduce((n,r)=>{let s=this.formatComment(r);return{formattedLines:p.aggregateLines(n.formattedLines,n.location,s,r.loc,t),location:r.loc}},{formattedLines:new p}).formattedLines}formatComment(e){return e.type===a.BlockComment?p.fromString(e.value).surroundWith("/*","*/"):p.fromString(e.value.trimEnd()).surroundWith("//")}canFitSingleLine(e,t=0,n=0){return this.externalOffset+n+this.getStatementIndentationLength(t)+e.lastLineLength<=this.options.wrapColumn}},_=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.printers=[],this.printers=e.body.map(r=>this.createStatementPrinter(r))}format(e=0){if(this.printers.length===0)return this.formatEmptyBlock(e);let t=[],n=S(this.node);n&&t.push("{");let r=n?e+1:e,s;return this.printers.forEach(u=>{if(Di(u.node))return;let c=Wi(u.node);s&&c.start.line-s.end.line>1&&t.push(""),s=c,t.push(u.format(r))}),n&&t.push(`${this.getIndentation(e)}}`),this.addComments(p.appendLines(t),e)}formatEmptyBlock(e=0){if(!S(this.node))return this.addComments(p.fromString(""),e);let t=this.formatInnerComments(e+1),n="{",r=`${this.getIndentation(e)}}`;return t.isEmpty?Se(this.parent)?this.addComments(p.appendLines([n,r]),e):this.addComments(p.fromString("{}"),e):this.addComments(p.appendLines([n,t,r]),e)}},He=class extends L{constructor(e,t,n){switch(super(e,t,n),this.node=e,this.keyword="",this.node.type){case a.ContinueStatement:this.keyword="continue;";break;case a.BreakStatement:this.keyword="break;";break;default:this.keyword=";"}}format(e=0){return this.addComments(p.fromString(this.keyword),e)}},ce=class extends L{constructor(e,t,n){if(super(e,t,n),this.node=e,Te(e))this.printer=new K(e,t,n);else if(Te(e.declaration))this.printer=new K(e.declaration,t,n),this.printer.prefix="export ";else throw new Error(`invalid type: ${JSON.stringify(e)}`)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let n=this.printer.format("singleLine",e).suffixWith(";");if(t==="singleLine"||this.canFitSingleLine(n,e))return this.addComments(n,e)}return this.addComments(this.printer.format("multiline",e).suffixWith(";"),e)}},le=class extends L{constructor(e,t,n){if(super(e,t,n),this.node=e,Zt(e))this.header=U(e,t,n),this.body=new _(e.body,e,n);else if(Zt(e.declaration))this.header=U(e.declaration,t,n),this.header.prefix="export ",this.body=new _(e.declaration.body,e,n);else throw new Error(`invalid type: ${JSON.stringify(e)}`)}format(e=0,t="optimized"){this.body.indentStatementFirstLine=!1;let n=this.getFormattedBody(this.body,e);if(t==="singleLine"||t==="optimized"){let s=this.header.format("singleLine",e);if(t==="singleLine"||this.canFitSingleLine(s,e,n.firstLineLength+1))return this.addComments(p.joinLines([s,n]," "),e)}let r=this.header.format("multiline",e);return this.addComments(p.joinLines([r,n]," "),e)}},qe=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.header=U(e,t,n),this.consequent=this.createStatementPrinter(e.consequent),this.consequent.indentStatementFirstLine=!1,e.alternate&&(this.alternate=this.createStatementPrinter(e.alternate),this.alternate.indentStatementFirstLine=!1)}format(e=0,t="optimized"){let n=!1,r;if(t==="singleLine"||t==="optimized"){let l=this.header.format("singleLine",e),D=S(this.node.consequent)?2:0;(t==="singleLine"||this.canFitSingleLine(l,e,D))&&(r=l)}r||(n=!0,r=this.header.format("multiline",e));let s;if(S(this.node.consequent)){let l=this.consequent.format(e,"optimized");s=p.joinLines([r," ",l])}else if(n||Se(this.node.consequent)){this.consequent.indentStatementFirstLine=!0;let l=this.consequent.format(e+1,"singleLine");this.canFitSingleLine(l,e+1)||(l=this.consequent.format(e+1,"multiline")),s=p.appendLines([r,l])}else{this.consequent.indentStatementFirstLine=!1;let l=this.consequent.format(e,"singleLine");this.canFitSingleLine(l,0,r.lastLineLength+1)?s=p.joinLines([r," ",l]):(this.consequent.indentStatementFirstLine=!0,l=this.consequent.format(e+1,"optimized"),s=p.appendLines([r,l]))}if(!this.alternate)return this.addComments(s,e);let u=Hi(this.node.consequent)||!S(this.node.consequent),c;if(this.alternate.externalOffset=0,S(this.node.alternate)||Se(this.node.alternate))this.alternate.indentStatementFirstLine=!1,this.alternate.externalOffset=u?5:s.lastLineLength+6,c=this.alternate.format(e,"optimized"),c=p.joinLines(["else ",c]);else{let l=u?4:s.lastLineLength+4;this.alternate.indentStatementFirstLine=!1,c=this.alternate.format(e,"singleLine"),this.canFitSingleLine(c,e,l+1)?c=p.joinLines(["else ",c]):(this.alternate.indentStatementFirstLine=!0,c=this.alternate.format(e+1,"optimized"),c=p.appendLines(["else",c]))}return u?s=p.appendLines([s,c.indentFirstLine(this.getIndentation(e))]):s=p.joinLines([s,c]," "),this.addComments(s,e)}},Ge=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.header=U(e,t,n),this.body=this.createStatementPrinter(e.body)}format(e=0,t="optimized"){this.body.indentStatementFirstLine=!1;let n=this.getFormattedBody(this.body,e);if(t==="singleLine"||t==="optimized"){let s=this.header.format("singleLine",e);if(t==="singleLine"||this.canFitSingleLine(s,e,n.firstLineLength+1))return this.addComments(p.joinLines([s,n]," "),e)}let r=this.header.format("multiline",e);return this.addComments(p.joinLines([r,n]," "),e)}},Ke=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.expression=C(e.expression,e,n)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let n=this.expression.format("singleLine",e).suffixWith(";");if(t==="singleLine"||this.canFitSingleLine(n,e))return this.addComments(n,e)}return this.addComments(this.expression.format("multiline",e).suffixWith(";"),e)}},Xe=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.argument=C(e.argument,e,n)}format(e=0,t="optimized"){if(t==="singleLine"||t==="optimized"){let u=this.argument.format("singleLine",e).surroundWith("return ",";");if(t==="singleLine"||this.canFitSingleLine(u,e))return this.addComments(u,e)}if(!Ne(this.node.argument)&&!Pe(this.node.argument)){let u=this.argument.format("multiline",e).surroundWith("return ",";");return this.addComments(u,e)}let n=this.getIndentation(e+1),r=this.argument.format("multiline",e+1).indentFirstLine(n),s=this.getIndentation(e);return this.addComments(p.appendLines(["return (",r,`${s});`]),e)}},Je=class extends L{constructor(e,t,n){super(e,t,n),this.node=e,this.libraryNamePrinter=C(e.specifiers[0].local,e,n),this.librarySourcePrinter=C(e.source,e,n)}format(e=0){return this.addComments(p.joinLines(["import"," ",this.libraryNamePrinter.format("singleLine",e)," from ",this.librarySourcePrinter.format("singleLine")]).suffixWith(";"),e)}};function un(i,e){if(!i)return"";let t=Ye(e),n=ze.fromString(i,t),r=n.toString(),s=Pi(r,{tolerant:!0,comments:!0}),u=Ni(s,n);return s.loc.start=u.start,s.loc.end=u.end,new _(s,null,t).format().toString()}var qi=Object.values(g),Gi=Object.values(q);var an=Gi.map(i=>({label:i,kind:b.Constant})),on=qi.map(i=>({label:i,kind:b.Keyword})),cn=[{label:"exportfunction",kind:b.Snippet,detail:"Export Function Statement",insertText:`export function \${1:functionName} ($2) {
|
|
22
22
|
$0
|
|
23
23
|
}`,insertTextMode:w.adjustIndentation,insertTextFormat:B.Snippet},{label:"exportvar",kind:b.Snippet,detail:"Export Variable Statement",insertText:"export var ${0:variableName}\n",insertTextMode:w.adjustIndentation,insertTextFormat:B.Snippet},{label:"for",kind:b.Snippet,detail:"For Loop Statement",insertText:"for (var ${1:i} = 0; ${1:i} < ${2:array.length}; ${1:i}++) {\n $0\n}",insertTextMode:w.adjustIndentation,insertTextFormat:B.Snippet},{label:"forin",kind:b.Snippet,detail:"For-In Loop Statement",insertText:"for (var ${1:i} in ${2:arrayOrObject}) {\n $0\n}",insertTextMode:w.adjustIndentation,insertTextFormat:B.Snippet},{label:"forof",kind:b.Snippet,detail:"For-Of Loop Statement",insertText:"for (var ${1:i} of ${2:arrayOrObject}) {\n $0\n}",insertTextMode:w.adjustIndentation,insertTextFormat:B.Snippet},{label:"function",kind:b.Snippet,detail:"Function Statement",insertText:`function \${1:functionName} ($2) {
|
|
24
24
|
$0
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./H6RQVSYM.js";var E={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},S={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}};export{E as conf,S as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import{a as ee}from"./6C52UOYL.js";import{b as $}from"./B3UMUBOI.js";import{Qk as v,Xk as D,Yk as R,al as n}from"./LLPQEURF.js";import{a as I}from"./3TTFCHAA.js";var j={};I(j,{cssDefaults:()=>te,lessDefaults:()=>ie,scssDefaults:()=>re});var k=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(t){this._options=t||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(t){this.setOptions(t)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},A={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},O={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},te=new k("css",A,O),re=new k("scss",A,O),ie=new k("less",A,O);function q(){return import("./FGTIA6RL.js")}n.onLanguage("less",()=>{q().then(e=>e.setupMode(ie))});n.onLanguage("scss",()=>{q().then(e=>e.setupMode(re))});n.onLanguage("css",()=>{q().then(e=>e.setupMode(te))});var N={};I(N,{handlebarDefaults:()=>Ie,handlebarLanguageService:()=>ae,htmlDefaults:()=>He,htmlLanguageService:()=>se,razorDefaults:()=>Ae,razorLanguageService:()=>ce,registerHTMLLanguageService:()=>M});var z=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(t){this._options=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},Ee={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},L={format:Ee,suggest:{},data:{useDefaultDataProvider:!0}};function T(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===C,documentFormattingEdits:e===C,documentRangeFormattingEdits:e===C}}var C="html",oe="handlebars",ne="razor",se=M(C,L,T(C)),He=se.defaults,ae=M(oe,L,T(oe)),Ie=ae.defaults,ce=M(ne,L,T(ne)),Ae=ce.defaults;function Oe(){return import("./JEQBTQ75.js")}function M(e,t=L,i=T(e)){let o=new z(e,t,i),s,l=n.onLanguage(e,async()=>{s=(await Oe()).setupMode(o)});return{defaults:o,dispose(){l.dispose(),s?.dispose(),s=void 0}}}var W={};I(W,{getWorker:()=>ze,jsonDefaults:()=>le});var B=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setDiagnosticsOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},qe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},je={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},le=new B("json",qe,je),ze=()=>me().then(e=>e.getWorker());function me(){return import("./3TELAYHA.js")}n.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});n.onLanguage("json",()=>{me().then(e=>e.setupMode(le))});var ue={},U={},V=class e{static getOrCreate(t){return U[t]||(U[t]=new e(t)),U[t]}constructor(t){this._languageId=t,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((i,o)=>{this._lazyLoadPromiseResolve=i,this._lazyLoadPromiseReject=o})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,ue[this._languageId].loader().then(t=>this._lazyLoadPromiseResolve(t),t=>this._lazyLoadPromiseReject(t))),this._lazyLoadPromise}};function r(e){let t=e.id;ue[t]=e,n.register(e);let i=V.getOrCreate(t);n.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),n.onLanguageEncountered(t,async()=>{let o=await i.load();n.setLanguageConfiguration(t,o.conf)})}r({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./DZQHQ6AF.js")});r({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./Q4BZLQFI.js")});r({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./LGNS6ZOO.js")});r({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./EYE2OWAP.js")});r({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./ORGLDPFO.js")});r({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./WGLVUCW2.js")});r({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./T6UJRNFS.js")});r({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./GLWP6FOO.js")});r({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./W62PYZIH.js")});r({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./W62PYZIH.js")});r({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./3I5A7NBV.js")});r({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>import("./QH2SNKMT.js")});r({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./S53Z5RNI.js")});r({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./CTUDXLNL.js")});r({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./QSENSSQH.js")});r({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./GBLZMUJF.js")});r({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./3MWL5V3K.js")});r({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./UM25J54F.js")});r({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./2V54WMOX.js")});r({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./ZSBUOR75.js")});r({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./XR32WULA.js").then(e=>e.TagAutoInterpolationDollar)});r({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagAngleInterpolationDollar)});r({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagBracketInterpolationDollar)});r({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagAngleInterpolationBracket)});r({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagBracketInterpolationBracket)});r({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagAutoInterpolationDollar)});r({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./XR32WULA.js").then(e=>e.TagAutoInterpolationBracket)});r({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./XFWXP3YH.js")});r({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./IM7MYTMK.js")});r({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./P6TDJOVA.js")});r({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./HAN6WQSM.js")});r({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>import("./QEFRIJA4.js")});r({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./NUA2KNEU.js")});r({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./CYAKD2Q6.js")});r({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./E3RU2YPF.js")});r({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./CEKEOYFU.js")});r({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./FQOKQQ47.js")});r({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./7EYL5FJX.js")});r({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./QNDINFSC.js")});r({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./7XEE5TVG.js")});r({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./RAMTJLOK.js")});r({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./KXYK3MLK.js")});r({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./55IOKSZ5.js")});r({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>import("./DMRPNWLI.js")});r({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./TSLKULMC.js")});r({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./GWCARBFY.js")});r({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./3L5P44KB.js")});r({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./7ON2OP3Y.js")});r({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./TIO3FAL4.js")});r({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./T6BNIUX2.js")});r({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./EQMF5QRO.js")});r({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./M3LR2Q5I.js")});r({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./75FV3IS2.js")});r({id:"pla",extensions:[".pla"],loader:()=>import("./JKJYW4J3.js")});r({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./NCQEI2VP.js")});r({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./NXMTAW45.js")});r({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./4ECQPUXH.js")});r({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./PPCYQ5YP.js")});r({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./QUDMZ32G.js")});r({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./4VQ6C3Z4.js")});r({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./TXV6B5CA.js")});r({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./DREPIRPG.js")});r({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./RI743CW6.js")});r({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./BBHVKMAY.js")});r({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./4UNXLJD5.js")});r({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./RG4I3UBE.js")});r({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./K6G75VO2.js")});r({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./ZVOZKXAZ.js")});r({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./U6XFMQXE.js")});r({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>import("./IXTG7RUG.js")});r({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./XHU4X2ZF.js")});r({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./6H3VYBU7.js")});r({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./YGSRHDYU.js")});r({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./YKKYDYDK.js")});r({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./DDXNXEA4.js")});r({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./FZ65ADOD.js")});r({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./YWHJ2CEL.js")});r({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>import("./4I4KQI2I.js")});r({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./3RBDIRGM.js")});r({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./W65YQBTQ.js")});r({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./W65YQBTQ.js")});r({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./FRD2R665.js")});r({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./SSYR2CIC.js")});r({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./2JVBS55M.js")});r({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>import("./SE5RBBZY.js")});r({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./MFRVUG5W.js")});r({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./OEQZWVAS.js")});r({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>import("./GOSZCVIB.js")});r({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./V4GG7I2P.js")});var Ve=Object.defineProperty,Je=(e,t,i)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>Je(e,typeof t!="symbol"?t+"":t,i),F,de,P,J,E;function Ge(e){return e.method!==void 0}var pe;(function(e){function t(i){return i}e.create=t})(pe||(pe={}));var x;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(l){return-32099<=l&&l<=-32e3}e.isServerError=t;function i(l){if(!t(l))throw new Error("Invalid range for a server error.");return l}e.serverError=i,e.unexpectedServerError=-32e3;function o(l){return!0}e.isApplicationError=o;function s(l){return l}e.applicationError=s,e.genericApplicationError=-320100})(x||(x={}));var ye=class{constructor(){c(this,"listeners",new Set),c(this,"event",e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},Qe=class{constructor(e){c(this,"_value"),c(this,"eventEmitter"),this._value=e,this.eventEmitter=new ye}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function Xe(e,t){let i=setTimeout(t,e);return{dispose:()=>clearTimeout(i)}}function G(e,t,i){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,i),{dispose:()=>e.delete(t)})}var Ye=class{constructor(){c(this,"_state","none"),c(this,"promise"),c(this,"resolve",()=>{}),c(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}},Pl=(F=class{constructor(){c(this,"_unprocessedMessages",[]),c(this,"_messageListener"),c(this,"id",F.id++),c(this,"_state",new Qe({state:"open"})),c(this,"state",this._state)}setListener(e){if(this._messageListener=e,!!e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let t=this._unprocessedMessages.shift();this._messageListener(t)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(e){return new Ze(this,e??new Ke)}},c(F,"id",0),F),Ze=class{constructor(e,t){c(this,"baseStream"),c(this,"logger"),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,"incoming",t),e(t)})}send(e){return this.logger.log(this.baseStream,"outgoing",e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},Ke=class{log(e,t,i){console.log(`${t==="incoming"?"<-":"->"} [${e.toString()}] ${JSON.stringify(i)}`)}},$e=class be{constructor(t){c(this,"connect"),this.connect=t}mapContext(t){return new be(i=>this.connect(i?et(i,t):void 0))}};function et(e,t){return{handleNotification:(i,o)=>e.handleNotification(i,t(o)),handleRequest:(i,o,s)=>e.handleRequest(i,o,t(s))}}var tt=class ke{constructor(t,i,o){c(this,"_stream"),c(this,"_listener"),c(this,"_logger"),c(this,"_unprocessedResponses",new Map),c(this,"_lastUsedRequestId",0),this._stream=t,this._listener=i,this._logger=o,this._stream.setListener(s=>{Ge(s)?s.id===void 0?this._processNotification(s):this._processRequest(s):this._processResponse(s)})}static createChannel(t,i){let o=!1;return new $e(s=>{if(o)throw new Error(`A channel to the stream ${t} was already constructed!`);return o=!0,new ke(t,s,i)})}get state(){return this._stream.state}async _processNotification(t){if(t.id!==void 0)throw new Error;if(!this._listener){this._logger&&this._logger.debug({text:"Notification ignored",message:t});return}try{await this._listener.handleNotification({method:t.method,params:t.params||null})}catch(i){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${i}`,exception:i,message:t})}}async _processRequest(t){if(t.id===void 0)throw new Error;let i;if(this._listener)try{i=await this._listener.handleRequest({method:t.method,params:t.params||null},t.id)}catch(s){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${s}`,message:t,exception:s}),i={error:{code:x.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:t}),i={error:{code:x.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};let o;"result"in i?o={jsonrpc:"2.0",id:t.id,result:i.result}:o={jsonrpc:"2.0",id:t.id,error:i.error},await this._stream.send(o)}_processResponse(t){let i=""+t.id,o=this._unprocessedResponses.get(i);if(!o){this._logger&&this._logger.debug({text:"Got an unexpected response message",message:t});return}this._unprocessedResponses.delete(i),o(t)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(t,i,o){let s={jsonrpc:"2.0",id:this._newRequestId(),method:t.method,params:t.params||void 0};return o&&o(s.id),new Promise((l,u)=>{let p=""+s.id;this._unprocessedResponses.set(p,d=>{"result"in d?l({result:d.result}):(d.error||u(new Error("Response had neither 'result' nor 'error' field set.")),l({error:d.error}))}),this._stream.send(s).then(void 0,d=>{this._unprocessedResponses.delete(p),u(d)})})}sendNotification(t,i){let o={jsonrpc:"2.0",id:void 0,method:t.method,params:t.params||void 0};return this._stream.send(o)}toString(){return"StreamChannel/"+this._stream.toString()}},b;(function(e){function t(){return{deserializeFromJson:s=>({hasErrors:!1,value:s}),serializeToJson:s=>s}}e.sAny=t;function i(){return{deserializeFromJson:s=>({hasErrors:!1,value:{}}),serializeToJson:s=>({})}}e.sEmptyObject=i;function o(){return{deserializeFromJson:s=>({hasErrors:!1,value:void 0}),serializeToJson:s=>null}}e.sVoidFromNull=o})(b||(b={}));var Ce=Symbol("OptionalMethodNotFound"),Se=class{contextualize(e){return new rt(this,e)}},rt=class extends Se{constructor(e,t){super(),c(this,"underylingTypedChannel"),c(this,"converters"),this.underylingTypedChannel=e,this.converters=t}async request(e,t,i){let o=await this.converters.getSendContext(i);return this.underylingTypedChannel.request(e,t,o)}async notify(e,t,i){let o=await this.converters.getSendContext(i);return this.underylingTypedChannel.notify(e,t,o)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(i,o)=>await t(i,await this.converters.getNewContext(o)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(i,o,s)=>await t(i,o,await this.converters.getNewContext(s)))}},ge=class Re extends Se{constructor(t,i={}){super(),c(this,"channelCtor"),c(this,"_requestSender"),c(this,"_handler",new Map),c(this,"_unknownNotificationHandler",new Set),c(this,"_timeout"),c(this,"sendExceptionDetails",!1),c(this,"_logger"),c(this,"listeningDeferred",new Ye),c(this,"onListening",this.listeningDeferred.promise),c(this,"_requestDidErrorEventEmitter",new ye),c(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=t,this._logger=i.logger,this.sendExceptionDetails=!!i.sendExceptionDetails,this._timeout=Xe(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,i={}){return new Re(tt.createChannel(t,i.logger),i)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(t,i,o)=>this.handleRequest(t,i,o),handleNotification:(t,i)=>this.handleNotification(t,i)}),this.listeningDeferred.resolve()}checkChannel(t){if(!t)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(t,i,o){let s=this._handler.get(t.method);if(!s)return this._logger&&this._logger.debug({text:`No request handler for "${t.method}".`,data:{requestObject:t}}),{error:{code:x.methodNotFound,message:`No request handler for "${t.method}".`,data:{method:t.method}}};if(s.kind!="request"){let u=`"${t.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:u,data:{requestObject:t}}),{error:{code:x.invalidRequest,message:u,data:{method:t.method}}}}let l=s.requestType.paramsSerializer.deserializeFromJson(t.params);if(l.hasErrors){let u=`Got invalid params: ${l.errorMessage}`;return this._logger&&this._logger.debug({text:u,data:{requestObject:t,errorMessage:l.errorMessage}}),{error:{code:x.invalidParams,message:u,data:{errors:l.errorMessage}}}}else{let u=l.value,p;try{let d=await s.handler(u,i,o);if("error"in d||"errorMessage"in d){let _=d.error?s.requestType.errorSerializer.serializeToJson(d.error):void 0;p={error:{code:d.errorCode||x.genericApplicationError,message:d.errorMessage||"An error was returned",data:_}}}else p={result:s.requestType.resultSerializer.serializeToJson(d.ok)}}catch(d){d instanceof fe?p={error:{code:d.code,message:d.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${d}.`,exception:d,data:{requestObject:t}}),p={error:{code:x.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${d}.`:"Server has thrown an unexpected exception"}})}return p}}async handleNotification(t,i){let o=this._handler.get(t.method);if(!o){for(let u of this._unknownNotificationHandler)u(t);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${t.method}"`,data:{requestObject:t}});return}if(o.kind!="notification"){this._logger&&this._logger.debug({text:`"${t.method}" is registered as request, but was sent as notification.`,data:{requestObject:t}});return}let s=o.notificationType.paramsSerializer.deserializeFromJson(t.params);if(s.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${s}`,data:{requestObject:t,errorMessage:s.errorMessage}});return}let l=s.value;for(let u of o.handlers)try{u(l,i)}catch(p){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${p}.`,exception:p,data:{requestObject:t}})}}registerUnknownNotificationHandler(t){return G(this._unknownNotificationHandler,t)}registerRequestHandler(t,i){if(this._handler.get(t.method))throw new Error(`Handler with method "${t.method}" already registered.`);return G(this._handler,t.method,{kind:"request",requestType:t,handler:i})}registerNotificationHandler(t,i){let o=this._handler.get(t.method);if(!o)o={kind:"notification",notificationType:t,handlers:new Set},this._handler.set(t.method,o);else{if(o.kind!=="notification")throw new Error(`Method "${t.method}" was already registered as request handler.`);if(o.notificationType!==t)throw new Error(`Method "${t.method}" was registered for a different type.`)}return G(o.handlers,i)}getRegisteredTypes(){let t=[];for(let i of this._handler.values())i.kind==="notification"?t.push(i.notificationType):i.kind==="request"&&t.push(i.requestType);return t}async request(t,i,o){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");let s=t.paramsSerializer.serializeToJson(i);he(s);let l=await this._requestSender.sendRequest({method:t.method,params:s},o);if("error"in l){if(t.isOptional&&l.error.code===x.methodNotFound)return Ce;let u;if(l.error.data!==void 0){let d=t.errorSerializer.deserializeFromJson(l.error.data);if(d.hasErrors)throw new Error(d.errorMessage);u=d.value}else u=void 0;let p=new fe(l.error.message,u,l.error.code);throw this._requestDidErrorEventEmitter.fire({error:p}),p}else{let u=t.resultSerializer.deserializeFromJson(l.result);if(u.hasErrors)throw new Error("Could not deserialize response: "+u.errorMessage+`
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as ee}from"./XRUKVCVF.js";import{b as $}from"./257WOXQH.js";import{Qk as v,Xk as D,Yk as R,al as n}from"./TEXAGKBD.js";import{a as I}from"./H6RQVSYM.js";var j={};I(j,{cssDefaults:()=>te,lessDefaults:()=>ie,scssDefaults:()=>re});var k=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(t){this._options=t||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(t){this.setOptions(t)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},A={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},O={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},te=new k("css",A,O),re=new k("scss",A,O),ie=new k("less",A,O);function q(){return import("./LEL33EVL.js")}n.onLanguage("less",()=>{q().then(e=>e.setupMode(ie))});n.onLanguage("scss",()=>{q().then(e=>e.setupMode(re))});n.onLanguage("css",()=>{q().then(e=>e.setupMode(te))});var N={};I(N,{handlebarDefaults:()=>Ie,handlebarLanguageService:()=>ae,htmlDefaults:()=>He,htmlLanguageService:()=>se,razorDefaults:()=>Ae,razorLanguageService:()=>ce,registerHTMLLanguageService:()=>M});var z=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(t){this._options=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},Ee={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},L={format:Ee,suggest:{},data:{useDefaultDataProvider:!0}};function T(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===C,documentFormattingEdits:e===C,documentRangeFormattingEdits:e===C}}var C="html",oe="handlebars",ne="razor",se=M(C,L,T(C)),He=se.defaults,ae=M(oe,L,T(oe)),Ie=ae.defaults,ce=M(ne,L,T(ne)),Ae=ce.defaults;function Oe(){return import("./J3NBIAE4.js")}function M(e,t=L,i=T(e)){let o=new z(e,t,i),s,l=n.onLanguage(e,async()=>{s=(await Oe()).setupMode(o)});return{defaults:o,dispose(){l.dispose(),s?.dispose(),s=void 0}}}var W={};I(W,{getWorker:()=>ze,jsonDefaults:()=>le});var B=class{constructor(t,i,o){this._onDidChange=new v,this._languageId=t,this.setDiagnosticsOptions(i),this.setModeConfiguration(o)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)}},qe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},je={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},le=new B("json",qe,je),ze=()=>me().then(e=>e.getWorker());function me(){return import("./RNQFFOHI.js")}n.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});n.onLanguage("json",()=>{me().then(e=>e.setupMode(le))});var ue={},U={},V=class e{static getOrCreate(t){return U[t]||(U[t]=new e(t)),U[t]}constructor(t){this._languageId=t,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((i,o)=>{this._lazyLoadPromiseResolve=i,this._lazyLoadPromiseReject=o})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,ue[this._languageId].loader().then(t=>this._lazyLoadPromiseResolve(t),t=>this._lazyLoadPromiseReject(t))),this._lazyLoadPromise}};function r(e){let t=e.id;ue[t]=e,n.register(e);let i=V.getOrCreate(t);n.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),n.onLanguageEncountered(t,async()=>{let o=await i.load();n.setLanguageConfiguration(t,o.conf)})}r({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./442YUXXE.js")});r({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./7C5VBID2.js")});r({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./TOOLCNAR.js")});r({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./AUNCNTKD.js")});r({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./JTAMX62X.js")});r({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./NXZNB527.js")});r({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./AP6RN35Q.js")});r({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./25XWPF4V.js")});r({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./MFO5UW67.js")});r({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./MFO5UW67.js")});r({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./7ICO3COW.js")});r({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>import("./RPAMEY6O.js")});r({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./SC7HHXFD.js")});r({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./JQDZS2Q6.js")});r({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./TFJWWMFX.js")});r({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./S2MXH4E7.js")});r({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./AXHKLI4A.js")});r({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./WCOZA2Y3.js")});r({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./5YZOQXRI.js")});r({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./LTGHOVKA.js")});r({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagAutoInterpolationDollar)});r({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagAngleInterpolationDollar)});r({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagBracketInterpolationDollar)});r({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagAngleInterpolationBracket)});r({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagBracketInterpolationBracket)});r({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagAutoInterpolationDollar)});r({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./3XHQ4HYV.js").then(e=>e.TagAutoInterpolationBracket)});r({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./PS3F65MR.js")});r({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./VSZR2MLK.js")});r({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./ATJTQ7GN.js")});r({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./VLMDZO2H.js")});r({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>import("./MCPE3COG.js")});r({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./UCHMLPCN.js")});r({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./MUHTIL2W.js")});r({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./M6D7N2YL.js")});r({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./Q7PVSOI4.js")});r({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./2LN4LREF.js")});r({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./CWUUQMOE.js")});r({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./66DXKY4C.js")});r({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./LV6XEQG6.js")});r({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./VA2OTU3Y.js")});r({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./XSNX4HQ7.js")});r({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./GIDYEJXN.js")});r({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>import("./ADDFKW6J.js")});r({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./HGG6U6BV.js")});r({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./TY277PW2.js")});r({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./JOGSMBUP.js")});r({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./SXMQVGA2.js")});r({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./DUIN5JKL.js")});r({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./HI3QANZI.js")});r({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./7BIL6A5K.js")});r({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./SRMSUAM7.js")});r({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./DO4UEYNF.js")});r({id:"pla",extensions:[".pla"],loader:()=>import("./722KNYBS.js")});r({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./YUX35RAW.js")});r({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./IFXLLRGY.js")});r({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./267L2FIN.js")});r({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./DX3M5RXS.js")});r({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./QUYIQYT5.js")});r({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./63PN7BQK.js")});r({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./5C2TCLBT.js")});r({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./CO2X2FUW.js")});r({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./D4NVM63W.js")});r({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./OOTGOHTU.js")});r({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./6THVQ4HN.js")});r({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./XYW3B4KO.js")});r({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./RPTU5IBK.js")});r({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./P7DT3QEI.js")});r({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./BMUIGEIE.js")});r({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>import("./G3ABGU2U.js")});r({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./ZIDKLYOI.js")});r({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./37RZTFII.js")});r({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./7AHGAMRQ.js")});r({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./MGCFGR73.js")});r({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./HKTF6UKG.js")});r({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./AG3WMNOC.js")});r({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./K3HE4IUQ.js")});r({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>import("./33O3TZY2.js")});r({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./U6PKQWR4.js")});r({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./MJDFEFIM.js")});r({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./MJDFEFIM.js")});r({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./D2ZUVVU5.js")});r({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./JPXIGF6O.js")});r({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./MJLQA6PP.js")});r({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>import("./E65FJVHN.js")});r({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./MGZFIKWR.js")});r({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./ROGDRNFE.js")});r({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>import("./QDB52Q4O.js")});r({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./N6MX4KBY.js")});var Ve=Object.defineProperty,Je=(e,t,i)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>Je(e,typeof t!="symbol"?t+"":t,i),F,de,P,J,E;function Ge(e){return e.method!==void 0}var pe;(function(e){function t(i){return i}e.create=t})(pe||(pe={}));var x;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(l){return-32099<=l&&l<=-32e3}e.isServerError=t;function i(l){if(!t(l))throw new Error("Invalid range for a server error.");return l}e.serverError=i,e.unexpectedServerError=-32e3;function o(l){return!0}e.isApplicationError=o;function s(l){return l}e.applicationError=s,e.genericApplicationError=-320100})(x||(x={}));var ye=class{constructor(){c(this,"listeners",new Set),c(this,"event",e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},Qe=class{constructor(e){c(this,"_value"),c(this,"eventEmitter"),this._value=e,this.eventEmitter=new ye}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function Xe(e,t){let i=setTimeout(t,e);return{dispose:()=>clearTimeout(i)}}function G(e,t,i){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,i),{dispose:()=>e.delete(t)})}var Ye=class{constructor(){c(this,"_state","none"),c(this,"promise"),c(this,"resolve",()=>{}),c(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}},Pl=(F=class{constructor(){c(this,"_unprocessedMessages",[]),c(this,"_messageListener"),c(this,"id",F.id++),c(this,"_state",new Qe({state:"open"})),c(this,"state",this._state)}setListener(e){if(this._messageListener=e,!!e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let t=this._unprocessedMessages.shift();this._messageListener(t)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(e){return new Ze(this,e??new Ke)}},c(F,"id",0),F),Ze=class{constructor(e,t){c(this,"baseStream"),c(this,"logger"),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,"incoming",t),e(t)})}send(e){return this.logger.log(this.baseStream,"outgoing",e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},Ke=class{log(e,t,i){console.log(`${t==="incoming"?"<-":"->"} [${e.toString()}] ${JSON.stringify(i)}`)}},$e=class be{constructor(t){c(this,"connect"),this.connect=t}mapContext(t){return new be(i=>this.connect(i?et(i,t):void 0))}};function et(e,t){return{handleNotification:(i,o)=>e.handleNotification(i,t(o)),handleRequest:(i,o,s)=>e.handleRequest(i,o,t(s))}}var tt=class ke{constructor(t,i,o){c(this,"_stream"),c(this,"_listener"),c(this,"_logger"),c(this,"_unprocessedResponses",new Map),c(this,"_lastUsedRequestId",0),this._stream=t,this._listener=i,this._logger=o,this._stream.setListener(s=>{Ge(s)?s.id===void 0?this._processNotification(s):this._processRequest(s):this._processResponse(s)})}static createChannel(t,i){let o=!1;return new $e(s=>{if(o)throw new Error(`A channel to the stream ${t} was already constructed!`);return o=!0,new ke(t,s,i)})}get state(){return this._stream.state}async _processNotification(t){if(t.id!==void 0)throw new Error;if(!this._listener){this._logger&&this._logger.debug({text:"Notification ignored",message:t});return}try{await this._listener.handleNotification({method:t.method,params:t.params||null})}catch(i){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${i}`,exception:i,message:t})}}async _processRequest(t){if(t.id===void 0)throw new Error;let i;if(this._listener)try{i=await this._listener.handleRequest({method:t.method,params:t.params||null},t.id)}catch(s){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${s}`,message:t,exception:s}),i={error:{code:x.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:t}),i={error:{code:x.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};let o;"result"in i?o={jsonrpc:"2.0",id:t.id,result:i.result}:o={jsonrpc:"2.0",id:t.id,error:i.error},await this._stream.send(o)}_processResponse(t){let i=""+t.id,o=this._unprocessedResponses.get(i);if(!o){this._logger&&this._logger.debug({text:"Got an unexpected response message",message:t});return}this._unprocessedResponses.delete(i),o(t)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(t,i,o){let s={jsonrpc:"2.0",id:this._newRequestId(),method:t.method,params:t.params||void 0};return o&&o(s.id),new Promise((l,u)=>{let p=""+s.id;this._unprocessedResponses.set(p,d=>{"result"in d?l({result:d.result}):(d.error||u(new Error("Response had neither 'result' nor 'error' field set.")),l({error:d.error}))}),this._stream.send(s).then(void 0,d=>{this._unprocessedResponses.delete(p),u(d)})})}sendNotification(t,i){let o={jsonrpc:"2.0",id:void 0,method:t.method,params:t.params||void 0};return this._stream.send(o)}toString(){return"StreamChannel/"+this._stream.toString()}},b;(function(e){function t(){return{deserializeFromJson:s=>({hasErrors:!1,value:s}),serializeToJson:s=>s}}e.sAny=t;function i(){return{deserializeFromJson:s=>({hasErrors:!1,value:{}}),serializeToJson:s=>({})}}e.sEmptyObject=i;function o(){return{deserializeFromJson:s=>({hasErrors:!1,value:void 0}),serializeToJson:s=>null}}e.sVoidFromNull=o})(b||(b={}));var Ce=Symbol("OptionalMethodNotFound"),Se=class{contextualize(e){return new rt(this,e)}},rt=class extends Se{constructor(e,t){super(),c(this,"underylingTypedChannel"),c(this,"converters"),this.underylingTypedChannel=e,this.converters=t}async request(e,t,i){let o=await this.converters.getSendContext(i);return this.underylingTypedChannel.request(e,t,o)}async notify(e,t,i){let o=await this.converters.getSendContext(i);return this.underylingTypedChannel.notify(e,t,o)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(i,o)=>await t(i,await this.converters.getNewContext(o)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(i,o,s)=>await t(i,o,await this.converters.getNewContext(s)))}},ge=class Re extends Se{constructor(t,i={}){super(),c(this,"channelCtor"),c(this,"_requestSender"),c(this,"_handler",new Map),c(this,"_unknownNotificationHandler",new Set),c(this,"_timeout"),c(this,"sendExceptionDetails",!1),c(this,"_logger"),c(this,"listeningDeferred",new Ye),c(this,"onListening",this.listeningDeferred.promise),c(this,"_requestDidErrorEventEmitter",new ye),c(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=t,this._logger=i.logger,this.sendExceptionDetails=!!i.sendExceptionDetails,this._timeout=Xe(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,i={}){return new Re(tt.createChannel(t,i.logger),i)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(t,i,o)=>this.handleRequest(t,i,o),handleNotification:(t,i)=>this.handleNotification(t,i)}),this.listeningDeferred.resolve()}checkChannel(t){if(!t)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(t,i,o){let s=this._handler.get(t.method);if(!s)return this._logger&&this._logger.debug({text:`No request handler for "${t.method}".`,data:{requestObject:t}}),{error:{code:x.methodNotFound,message:`No request handler for "${t.method}".`,data:{method:t.method}}};if(s.kind!="request"){let u=`"${t.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:u,data:{requestObject:t}}),{error:{code:x.invalidRequest,message:u,data:{method:t.method}}}}let l=s.requestType.paramsSerializer.deserializeFromJson(t.params);if(l.hasErrors){let u=`Got invalid params: ${l.errorMessage}`;return this._logger&&this._logger.debug({text:u,data:{requestObject:t,errorMessage:l.errorMessage}}),{error:{code:x.invalidParams,message:u,data:{errors:l.errorMessage}}}}else{let u=l.value,p;try{let d=await s.handler(u,i,o);if("error"in d||"errorMessage"in d){let _=d.error?s.requestType.errorSerializer.serializeToJson(d.error):void 0;p={error:{code:d.errorCode||x.genericApplicationError,message:d.errorMessage||"An error was returned",data:_}}}else p={result:s.requestType.resultSerializer.serializeToJson(d.ok)}}catch(d){d instanceof fe?p={error:{code:d.code,message:d.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${d}.`,exception:d,data:{requestObject:t}}),p={error:{code:x.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${d}.`:"Server has thrown an unexpected exception"}})}return p}}async handleNotification(t,i){let o=this._handler.get(t.method);if(!o){for(let u of this._unknownNotificationHandler)u(t);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${t.method}"`,data:{requestObject:t}});return}if(o.kind!="notification"){this._logger&&this._logger.debug({text:`"${t.method}" is registered as request, but was sent as notification.`,data:{requestObject:t}});return}let s=o.notificationType.paramsSerializer.deserializeFromJson(t.params);if(s.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${s}`,data:{requestObject:t,errorMessage:s.errorMessage}});return}let l=s.value;for(let u of o.handlers)try{u(l,i)}catch(p){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${p}.`,exception:p,data:{requestObject:t}})}}registerUnknownNotificationHandler(t){return G(this._unknownNotificationHandler,t)}registerRequestHandler(t,i){if(this._handler.get(t.method))throw new Error(`Handler with method "${t.method}" already registered.`);return G(this._handler,t.method,{kind:"request",requestType:t,handler:i})}registerNotificationHandler(t,i){let o=this._handler.get(t.method);if(!o)o={kind:"notification",notificationType:t,handlers:new Set},this._handler.set(t.method,o);else{if(o.kind!=="notification")throw new Error(`Method "${t.method}" was already registered as request handler.`);if(o.notificationType!==t)throw new Error(`Method "${t.method}" was registered for a different type.`)}return G(o.handlers,i)}getRegisteredTypes(){let t=[];for(let i of this._handler.values())i.kind==="notification"?t.push(i.notificationType):i.kind==="request"&&t.push(i.requestType);return t}async request(t,i,o){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");let s=t.paramsSerializer.serializeToJson(i);he(s);let l=await this._requestSender.sendRequest({method:t.method,params:s},o);if("error"in l){if(t.isOptional&&l.error.code===x.methodNotFound)return Ce;let u;if(l.error.data!==void 0){let d=t.errorSerializer.deserializeFromJson(l.error.data);if(d.hasErrors)throw new Error(d.errorMessage);u=d.value}else u=void 0;let p=new fe(l.error.message,u,l.error.code);throw this._requestDidErrorEventEmitter.fire({error:p}),p}else{let u=t.resultSerializer.deserializeFromJson(l.result);if(u.hasErrors)throw new Error("Could not deserialize response: "+u.errorMessage+`
|
|
3
3
|
|
|
4
|
-
${JSON.stringify(l,null,2)}`);return u.value}}async notify(t,i,o){if(!this.checkChannel(this._requestSender))throw new Error;let s=t.paramsSerializer.serializeToJson(i);he(s),this._requestSender.sendNotification({method:t.method,params:s},o)}};function he(e){if(e!==null&&Array.isArray(e)&&typeof e!="object")throw new Error("Invalid value! Only null, array and object is allowed.")}var fe=class Le extends Error{constructor(t,i,o=x.genericApplicationError){super(t),c(this,"data"),c(this,"code"),this.data=i,this.code=o,Object.setPrototypeOf(this,Le.prototype)}},it=class K{constructor(t,i,o,s,l=!1){c(this,"method"),c(this,"paramsSerializer"),c(this,"resultSerializer"),c(this,"errorSerializer"),c(this,"isOptional"),c(this,"kind","request"),this.method=t,this.paramsSerializer=i,this.resultSerializer=o,this.errorSerializer=s,this.isOptional=l}withMethod(t){return new K(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new K(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},ot=class Te{constructor(t,i){c(this,"method"),c(this,"paramsSerializer"),c(this,"kind","notification"),this.method=t,this.paramsSerializer=i}withMethod(t){return new Te(t,this.paramsSerializer)}};function a(e){return new it((e||{}).method,b.sAny(),b.sAny(),b.sAny())}function g(e){return new ot((e||{}).method,b.sAny())}var nt=Symbol(),xe=(de=nt,P=class{constructor(e){c(this,"error"),c(this,de),this.error=e}},c(P,"factory",e=>new P(e)),P);function st(e){let t=De(e.server),i=De(e.client);return new at(e.tags||[],t,i)}function De(e){let t={};for(let[i,o]of Object.entries(e)){let s=o.method?o.method:i;t[i]=o.withMethod(s)}return t}var at=class Me{constructor(t=[],i,o){c(this,"tags"),c(this,"server"),c(this,"client"),this.tags=t,this.server=i,this.client=o}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(t,i,o,s){let l=this.buildCounterpart(t,o),u=this.registerHandlers(t,i,s,l);return{counterpart:l,dispose:()=>u.dispose()}}buildCounterpart(t,i){let o={};for(let[s,l]of Object.entries(i)){let u;l.kind==="request"?l.isOptional?u=async(p,d)=>{p===void 0&&(p={});try{return await t.request(l,p,d)}catch(_){if(_&&_.code===x.methodNotFound)return Ce;throw _}}:u=(p,d)=>(p===void 0&&(p={}),t.request(l,p,d)):u=(p,d)=>(p===void 0&&(p={}),t.notify(l,p,d)),o[s]=u}return o}registerHandlers(t,i,o,s){let l=[];for(let[u,p]of Object.entries(i))if(p.kind==="request"){let d=o[u];if(!d)continue;let _=this.createRequestHandler(s,d);l.push(t.registerRequestHandler(p,_))}else{let d=o[u];d&&l.push(t.registerNotificationHandler(p,(_,Pe)=>{d(_,{context:Pe,counterpart:s})}))}return{dispose:()=>l.forEach(u=>u.dispose())}}createRequestHandler(t,i){return async(o,s,l)=>{let u=await i(o,{context:l,counterpart:t,newErr:xe.factory,requestId:s});return u instanceof xe?u.error:{ok:u}}}static getServerFromStream(t,i,o,s){let l=ge.fromTransport(i,o),{server:u}=t.getServer(l,s);return l.startListen(),{channel:l,server:u}}static registerServerToStream(t,i,o,s){let l=ge.fromTransport(i,o),{client:u}=t.registerServer(l,s);return l.startListen(),{channel:l,client:u}}getServer(t,i){let{counterpart:o,dispose:s}=this.getInterface(t,this.client,this.server,i);return{server:o,dispose:s}}registerServer(t,i){let{counterpart:o,dispose:s}=this.getInterface(t,this.server,this.client,i);return{client:o,dispose:s}}withContext(){return new Me(this.tags,this.server,this.client)}},Q=(function(e){return e.Comment="comment",e.Imports="imports",e.Region="region",e})({}),h=(function(e){return e[e.File=1]="File",e[e.Module=2]="Module",e[e.Namespace=3]="Namespace",e[e.Package=4]="Package",e[e.Class=5]="Class",e[e.Method=6]="Method",e[e.Property=7]="Property",e[e.Field=8]="Field",e[e.Constructor=9]="Constructor",e[e.Enum=10]="Enum",e[e.Interface=11]="Interface",e[e.Function=12]="Function",e[e.Variable=13]="Variable",e[e.Constant=14]="Constant",e[e.String=15]="String",e[e.Number=16]="Number",e[e.Boolean=17]="Boolean",e[e.Array=18]="Array",e[e.Object=19]="Object",e[e.Key=20]="Key",e[e.Null=21]="Null",e[e.EnumMember=22]="EnumMember",e[e.Struct=23]="Struct",e[e.Event=24]="Event",e[e.Operator=25]="Operator",e[e.TypeParameter=26]="TypeParameter",e})({}),ct=(function(e){return e[e.Deprecated=1]="Deprecated",e})({}),_e=(function(e){return e[e.Type=1]="Type",e[e.Parameter=2]="Parameter",e})({});var f=(function(e){return e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e})({}),lt=(function(e){return e[e.Deprecated=1]="Deprecated",e})({}),mt=(function(e){return e[e.PlainText=1]="PlainText",e[e.Snippet=2]="Snippet",e})({}),X=(function(e){return e[e.Text=1]="Text",e[e.Read=2]="Read",e[e.Write=3]="Write",e})({}),w=(function(e){return e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e})({});var y=(function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e})({}),we=(function(e){return e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated",e})({}),Y=(function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e})({}),Z=(function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange",e})({}),ve=(function(e){return e[e.Invoked=1]="Invoked",e[e.Automatic=2]="Automatic",e})({});var m=class{constructor(e){this.method=e}},ut={textDocumentImplementation:new m("textDocument/implementation"),textDocumentTypeDefinition:new m("textDocument/typeDefinition"),textDocumentDocumentColor:new m("textDocument/documentColor"),textDocumentColorPresentation:new m("textDocument/colorPresentation"),textDocumentFoldingRange:new m("textDocument/foldingRange"),textDocumentDeclaration:new m("textDocument/declaration"),textDocumentSelectionRange:new m("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new m("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new m("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new m("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new m("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new m("workspace/willCreateFiles"),workspaceWillRenameFiles:new m("workspace/willRenameFiles"),workspaceWillDeleteFiles:new m("workspace/willDeleteFiles"),textDocumentMoniker:new m("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new m("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new m("textDocument/inlineValue"),textDocumentInlayHint:new m("textDocument/inlayHint"),textDocumentDiagnostic:new m("textDocument/diagnostic"),textDocumentInlineCompletion:new m("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new m("textDocument/willSaveWaitUntil"),textDocumentCompletion:new m("textDocument/completion"),textDocumentHover:new m("textDocument/hover"),textDocumentSignatureHelp:new m("textDocument/signatureHelp"),textDocumentDefinition:new m("textDocument/definition"),textDocumentReferences:new m("textDocument/references"),textDocumentDocumentHighlight:new m("textDocument/documentHighlight"),textDocumentDocumentSymbol:new m("textDocument/documentSymbol"),textDocumentCodeAction:new m("textDocument/codeAction"),workspaceSymbol:new m("workspace/symbol"),textDocumentCodeLens:new m("textDocument/codeLens"),textDocumentDocumentLink:new m("textDocument/documentLink"),textDocumentFormatting:new m("textDocument/formatting"),textDocumentRangeFormatting:new m("textDocument/rangeFormatting"),textDocumentRangesFormatting:new m("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new m("textDocument/onTypeFormatting"),textDocumentRename:new m("textDocument/rename"),workspaceExecuteCommand:new m("workspace/executeCommand"),workspaceDidCreateFiles:new m("workspace/didCreateFiles"),workspaceDidRenameFiles:new m("workspace/didRenameFiles"),workspaceDidDeleteFiles:new m("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new m("workspace/didChangeConfiguration"),textDocumentDidOpen:new m("textDocument/didOpen"),textDocumentDidChange:new m("textDocument/didChange"),textDocumentDidClose:new m("textDocument/didClose"),textDocumentDidSave:new m("textDocument/didSave"),textDocumentWillSave:new m("textDocument/willSave"),workspaceDidChangeWatchedFiles:new m("workspace/didChangeWatchedFiles")},El=st({server:{textDocumentImplementation:a({method:"textDocument/implementation"}),textDocumentTypeDefinition:a({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:a({method:"textDocument/documentColor"}),textDocumentColorPresentation:a({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:a({method:"textDocument/foldingRange"}),textDocumentDeclaration:a({method:"textDocument/declaration"}),textDocumentSelectionRange:a({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:a({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:a({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:a({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:a({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:a({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:a({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:a({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:a({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:a({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:a({method:"workspace/willDeleteFiles"}),textDocumentMoniker:a({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:a({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:a({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:a({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:a({method:"textDocument/inlineValue"}),textDocumentInlayHint:a({method:"textDocument/inlayHint"}),inlayHintResolve:a({method:"inlayHint/resolve"}),textDocumentDiagnostic:a({method:"textDocument/diagnostic"}),workspaceDiagnostic:a({method:"workspace/diagnostic"}),textDocumentInlineCompletion:a({method:"textDocument/inlineCompletion"}),initialize:a({method:"initialize"}),shutdown:a({method:"shutdown"}),textDocumentWillSaveWaitUntil:a({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:a({method:"textDocument/completion"}),completionItemResolve:a({method:"completionItem/resolve"}),textDocumentHover:a({method:"textDocument/hover"}),textDocumentSignatureHelp:a({method:"textDocument/signatureHelp"}),textDocumentDefinition:a({method:"textDocument/definition"}),textDocumentReferences:a({method:"textDocument/references"}),textDocumentDocumentHighlight:a({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:a({method:"textDocument/documentSymbol"}),textDocumentCodeAction:a({method:"textDocument/codeAction"}),codeActionResolve:a({method:"codeAction/resolve"}),workspaceSymbol:a({method:"workspace/symbol"}),workspaceSymbolResolve:a({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:a({method:"textDocument/codeLens"}),codeLensResolve:a({method:"codeLens/resolve"}),textDocumentDocumentLink:a({method:"textDocument/documentLink"}),documentLinkResolve:a({method:"documentLink/resolve"}),textDocumentFormatting:a({method:"textDocument/formatting"}),textDocumentRangeFormatting:a({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:a({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:a({method:"textDocument/onTypeFormatting"}),textDocumentRename:a({method:"textDocument/rename"}),textDocumentPrepareRename:a({method:"textDocument/prepareRename"}),workspaceExecuteCommand:a({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:g({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:g({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:g({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:g({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:g({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:g({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:g({method:"notebookDocument/didChange"}),notebookDocumentDidSave:g({method:"notebookDocument/didSave"}),notebookDocumentDidClose:g({method:"notebookDocument/didClose"}),initialized:g({method:"initialized"}),exit:g({method:"exit"}),workspaceDidChangeConfiguration:g({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:g({method:"textDocument/didOpen"}),textDocumentDidChange:g({method:"textDocument/didChange"}),textDocumentDidClose:g({method:"textDocument/didClose"}),textDocumentDidSave:g({method:"textDocument/didSave"}),textDocumentWillSave:g({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:g({method:"workspace/didChangeWatchedFiles"}),setTrace:g({method:"$/setTrace"}),cancelRequest:g({method:"$/cancelRequest"}),progress:g({method:"$/progress"})},client:{workspaceWorkspaceFolders:a({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:a({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:a({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:a({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:a({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:a({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:a({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:a({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:a({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:a({method:"client/registerCapability"}).optional(),clientUnregisterCapability:a({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:a({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:a({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:a({method:"workspace/applyEdit"}).optional(),windowShowMessage:g({method:"window/showMessage"}),windowLogMessage:g({method:"window/logMessage"}),telemetryEvent:g({method:"telemetry/event"}),textDocumentPublishDiagnostics:g({method:"textDocument/publishDiagnostics"}),logTrace:g({method:"$/logTrace"}),cancelRequest:g({method:"$/cancelRequest"}),progress:g({method:"$/progress"})}});var Hl=(J=class{constructor(){c(this,"_store",new dt)}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},c(J,"None",Object.freeze({dispose(){}})),J),dt=(E=class{constructor(){c(this,"_toDispose",new Set),c(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?E.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}},c(E,"DISABLE_DISPOSED_WARNING",!1),E),Il=new Map([[w.Empty,""],[w.QuickFix,"quickfix"],[w.Refactor,"refactor"],[w.RefactorExtract,"refactor.extract"],[w.RefactorInline,"refactor.inline"],[w.RefactorRewrite,"refactor.rewrite"],[w.Source,"source"],[w.SourceOrganizeImports,"source.organizeImports"],[w.SourceFixAll,"source.fixAll"]]);var Al=new Map([[n.CodeActionTriggerType.Invoke,ve.Invoked],[n.CodeActionTriggerType.Auto,ve.Automatic]]);var Ol=new Map([[f.Text,n.CompletionItemKind.Text],[f.Method,n.CompletionItemKind.Method],[f.Function,n.CompletionItemKind.Function],[f.Constructor,n.CompletionItemKind.Constructor],[f.Field,n.CompletionItemKind.Field],[f.Variable,n.CompletionItemKind.Variable],[f.Class,n.CompletionItemKind.Class],[f.Interface,n.CompletionItemKind.Interface],[f.Module,n.CompletionItemKind.Module],[f.Property,n.CompletionItemKind.Property],[f.Unit,n.CompletionItemKind.Unit],[f.Value,n.CompletionItemKind.Value],[f.Enum,n.CompletionItemKind.Enum],[f.Keyword,n.CompletionItemKind.Keyword],[f.Snippet,n.CompletionItemKind.Snippet],[f.Color,n.CompletionItemKind.Color],[f.File,n.CompletionItemKind.File],[f.Reference,n.CompletionItemKind.Reference],[f.Folder,n.CompletionItemKind.Folder],[f.EnumMember,n.CompletionItemKind.EnumMember],[f.Constant,n.CompletionItemKind.Constant],[f.Struct,n.CompletionItemKind.Struct],[f.Event,n.CompletionItemKind.Event],[f.Operator,n.CompletionItemKind.Operator],[f.TypeParameter,n.CompletionItemKind.TypeParameter]]);var ql=new Map([[lt.Deprecated,n.CompletionItemTag.Deprecated]]);var jl=new Map([[n.CompletionTriggerKind.Invoke,Y.Invoked],[n.CompletionTriggerKind.TriggerCharacter,Y.TriggerCharacter],[n.CompletionTriggerKind.TriggerForIncompleteCompletions,Y.TriggerForIncompleteCompletions]]);var zl=new Map([[mt.Snippet,n.CompletionItemInsertTextRule.InsertAsSnippet]]);var Nl=new Map([[h.File,n.SymbolKind.File],[h.Module,n.SymbolKind.Module],[h.Namespace,n.SymbolKind.Namespace],[h.Package,n.SymbolKind.Package],[h.Class,n.SymbolKind.Class],[h.Method,n.SymbolKind.Method],[h.Property,n.SymbolKind.Property],[h.Field,n.SymbolKind.Field],[h.Constructor,n.SymbolKind.Constructor],[h.Enum,n.SymbolKind.Enum],[h.Interface,n.SymbolKind.Interface],[h.Function,n.SymbolKind.Function],[h.Variable,n.SymbolKind.Variable],[h.Constant,n.SymbolKind.Constant],[h.String,n.SymbolKind.String],[h.Number,n.SymbolKind.Number],[h.Boolean,n.SymbolKind.Boolean],[h.Array,n.SymbolKind.Array],[h.Object,n.SymbolKind.Object],[h.Key,n.SymbolKind.Key],[h.Null,n.SymbolKind.Null],[h.EnumMember,n.SymbolKind.EnumMember],[h.Struct,n.SymbolKind.Struct],[h.Event,n.SymbolKind.Event],[h.Operator,n.SymbolKind.Operator],[h.TypeParameter,n.SymbolKind.TypeParameter]]);var Bl=new Map([[ct.Deprecated,n.SymbolTag.Deprecated]]);var Wl=new Map([[X.Text,n.DocumentHighlightKind.Text],[X.Read,n.DocumentHighlightKind.Read],[X.Write,n.DocumentHighlightKind.Write]]);var Ul=new Map([[Q.Comment,n.FoldingRangeKind.Comment],[Q.Imports,n.FoldingRangeKind.Imports],[Q.Region,n.FoldingRangeKind.Region]]);var Vl=new Map([[D.Error,y.Error],[D.Warning,y.Warning],[D.Info,y.Information],[D.Hint,y.Hint]]);var Jl=new Map([[y.Error,D.Error],[y.Warning,D.Warning],[y.Information,D.Info],[y.Hint,D.Hint]]);var Gl=new Map([[we.Unnecessary,R.Unnecessary],[we.Deprecated,R.Deprecated]]);var Ql=new Map([[n.SignatureHelpTriggerKind.Invoke,Z.Invoked],[n.SignatureHelpTriggerKind.TriggerCharacter,Z.TriggerCharacter],[n.SignatureHelpTriggerKind.ContentChange,Z.ContentChange]]);var Xl=new Map([[_e.Type,n.InlayHintKind.Type],[_e.Parameter,n.InlayHintKind.Parameter]]);var Yl=new Map([...Object.values(ut)].map(e=>[e.method,e]));var S=null;typeof WebSocket<"u"?S=WebSocket:typeof MozWebSocket<"u"?S=MozWebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"?S=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(S=self.WebSocket||self.MozWebSocket);var H=ee();H.languages.css=j;H.languages.html=N;H.languages.typescript=$;H.languages.json=W;var gt=async()=>{let{editor:e}=await import("./6QSGABXH.js");return e},Fe=null;async function _p(){return Fe??=gt(),await Fe}export{_p as a};
|
|
4
|
+
${JSON.stringify(l,null,2)}`);return u.value}}async notify(t,i,o){if(!this.checkChannel(this._requestSender))throw new Error;let s=t.paramsSerializer.serializeToJson(i);he(s),this._requestSender.sendNotification({method:t.method,params:s},o)}};function he(e){if(e!==null&&Array.isArray(e)&&typeof e!="object")throw new Error("Invalid value! Only null, array and object is allowed.")}var fe=class Le extends Error{constructor(t,i,o=x.genericApplicationError){super(t),c(this,"data"),c(this,"code"),this.data=i,this.code=o,Object.setPrototypeOf(this,Le.prototype)}},it=class K{constructor(t,i,o,s,l=!1){c(this,"method"),c(this,"paramsSerializer"),c(this,"resultSerializer"),c(this,"errorSerializer"),c(this,"isOptional"),c(this,"kind","request"),this.method=t,this.paramsSerializer=i,this.resultSerializer=o,this.errorSerializer=s,this.isOptional=l}withMethod(t){return new K(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new K(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},ot=class Te{constructor(t,i){c(this,"method"),c(this,"paramsSerializer"),c(this,"kind","notification"),this.method=t,this.paramsSerializer=i}withMethod(t){return new Te(t,this.paramsSerializer)}};function a(e){return new it((e||{}).method,b.sAny(),b.sAny(),b.sAny())}function g(e){return new ot((e||{}).method,b.sAny())}var nt=Symbol(),xe=(de=nt,P=class{constructor(e){c(this,"error"),c(this,de),this.error=e}},c(P,"factory",e=>new P(e)),P);function st(e){let t=De(e.server),i=De(e.client);return new at(e.tags||[],t,i)}function De(e){let t={};for(let[i,o]of Object.entries(e)){let s=o.method?o.method:i;t[i]=o.withMethod(s)}return t}var at=class Me{constructor(t=[],i,o){c(this,"tags"),c(this,"server"),c(this,"client"),this.tags=t,this.server=i,this.client=o}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(t,i,o,s){let l=this.buildCounterpart(t,o),u=this.registerHandlers(t,i,s,l);return{counterpart:l,dispose:()=>u.dispose()}}buildCounterpart(t,i){let o={};for(let[s,l]of Object.entries(i)){let u;l.kind==="request"?l.isOptional?u=async(p,d)=>{p===void 0&&(p={});try{return await t.request(l,p,d)}catch(_){if(_&&_.code===x.methodNotFound)return Ce;throw _}}:u=(p,d)=>(p===void 0&&(p={}),t.request(l,p,d)):u=(p,d)=>(p===void 0&&(p={}),t.notify(l,p,d)),o[s]=u}return o}registerHandlers(t,i,o,s){let l=[];for(let[u,p]of Object.entries(i))if(p.kind==="request"){let d=o[u];if(!d)continue;let _=this.createRequestHandler(s,d);l.push(t.registerRequestHandler(p,_))}else{let d=o[u];d&&l.push(t.registerNotificationHandler(p,(_,Pe)=>{d(_,{context:Pe,counterpart:s})}))}return{dispose:()=>l.forEach(u=>u.dispose())}}createRequestHandler(t,i){return async(o,s,l)=>{let u=await i(o,{context:l,counterpart:t,newErr:xe.factory,requestId:s});return u instanceof xe?u.error:{ok:u}}}static getServerFromStream(t,i,o,s){let l=ge.fromTransport(i,o),{server:u}=t.getServer(l,s);return l.startListen(),{channel:l,server:u}}static registerServerToStream(t,i,o,s){let l=ge.fromTransport(i,o),{client:u}=t.registerServer(l,s);return l.startListen(),{channel:l,client:u}}getServer(t,i){let{counterpart:o,dispose:s}=this.getInterface(t,this.client,this.server,i);return{server:o,dispose:s}}registerServer(t,i){let{counterpart:o,dispose:s}=this.getInterface(t,this.server,this.client,i);return{client:o,dispose:s}}withContext(){return new Me(this.tags,this.server,this.client)}},Q=(function(e){return e.Comment="comment",e.Imports="imports",e.Region="region",e})({}),h=(function(e){return e[e.File=1]="File",e[e.Module=2]="Module",e[e.Namespace=3]="Namespace",e[e.Package=4]="Package",e[e.Class=5]="Class",e[e.Method=6]="Method",e[e.Property=7]="Property",e[e.Field=8]="Field",e[e.Constructor=9]="Constructor",e[e.Enum=10]="Enum",e[e.Interface=11]="Interface",e[e.Function=12]="Function",e[e.Variable=13]="Variable",e[e.Constant=14]="Constant",e[e.String=15]="String",e[e.Number=16]="Number",e[e.Boolean=17]="Boolean",e[e.Array=18]="Array",e[e.Object=19]="Object",e[e.Key=20]="Key",e[e.Null=21]="Null",e[e.EnumMember=22]="EnumMember",e[e.Struct=23]="Struct",e[e.Event=24]="Event",e[e.Operator=25]="Operator",e[e.TypeParameter=26]="TypeParameter",e})({}),ct=(function(e){return e[e.Deprecated=1]="Deprecated",e})({}),_e=(function(e){return e[e.Type=1]="Type",e[e.Parameter=2]="Parameter",e})({});var f=(function(e){return e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e})({}),lt=(function(e){return e[e.Deprecated=1]="Deprecated",e})({}),mt=(function(e){return e[e.PlainText=1]="PlainText",e[e.Snippet=2]="Snippet",e})({}),X=(function(e){return e[e.Text=1]="Text",e[e.Read=2]="Read",e[e.Write=3]="Write",e})({}),w=(function(e){return e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e})({});var y=(function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e})({}),we=(function(e){return e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated",e})({}),Y=(function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e})({}),Z=(function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange",e})({}),ve=(function(e){return e[e.Invoked=1]="Invoked",e[e.Automatic=2]="Automatic",e})({});var m=class{constructor(e){this.method=e}},ut={textDocumentImplementation:new m("textDocument/implementation"),textDocumentTypeDefinition:new m("textDocument/typeDefinition"),textDocumentDocumentColor:new m("textDocument/documentColor"),textDocumentColorPresentation:new m("textDocument/colorPresentation"),textDocumentFoldingRange:new m("textDocument/foldingRange"),textDocumentDeclaration:new m("textDocument/declaration"),textDocumentSelectionRange:new m("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new m("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new m("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new m("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new m("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new m("workspace/willCreateFiles"),workspaceWillRenameFiles:new m("workspace/willRenameFiles"),workspaceWillDeleteFiles:new m("workspace/willDeleteFiles"),textDocumentMoniker:new m("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new m("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new m("textDocument/inlineValue"),textDocumentInlayHint:new m("textDocument/inlayHint"),textDocumentDiagnostic:new m("textDocument/diagnostic"),textDocumentInlineCompletion:new m("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new m("textDocument/willSaveWaitUntil"),textDocumentCompletion:new m("textDocument/completion"),textDocumentHover:new m("textDocument/hover"),textDocumentSignatureHelp:new m("textDocument/signatureHelp"),textDocumentDefinition:new m("textDocument/definition"),textDocumentReferences:new m("textDocument/references"),textDocumentDocumentHighlight:new m("textDocument/documentHighlight"),textDocumentDocumentSymbol:new m("textDocument/documentSymbol"),textDocumentCodeAction:new m("textDocument/codeAction"),workspaceSymbol:new m("workspace/symbol"),textDocumentCodeLens:new m("textDocument/codeLens"),textDocumentDocumentLink:new m("textDocument/documentLink"),textDocumentFormatting:new m("textDocument/formatting"),textDocumentRangeFormatting:new m("textDocument/rangeFormatting"),textDocumentRangesFormatting:new m("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new m("textDocument/onTypeFormatting"),textDocumentRename:new m("textDocument/rename"),workspaceExecuteCommand:new m("workspace/executeCommand"),workspaceDidCreateFiles:new m("workspace/didCreateFiles"),workspaceDidRenameFiles:new m("workspace/didRenameFiles"),workspaceDidDeleteFiles:new m("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new m("workspace/didChangeConfiguration"),textDocumentDidOpen:new m("textDocument/didOpen"),textDocumentDidChange:new m("textDocument/didChange"),textDocumentDidClose:new m("textDocument/didClose"),textDocumentDidSave:new m("textDocument/didSave"),textDocumentWillSave:new m("textDocument/willSave"),workspaceDidChangeWatchedFiles:new m("workspace/didChangeWatchedFiles")},El=st({server:{textDocumentImplementation:a({method:"textDocument/implementation"}),textDocumentTypeDefinition:a({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:a({method:"textDocument/documentColor"}),textDocumentColorPresentation:a({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:a({method:"textDocument/foldingRange"}),textDocumentDeclaration:a({method:"textDocument/declaration"}),textDocumentSelectionRange:a({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:a({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:a({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:a({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:a({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:a({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:a({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:a({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:a({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:a({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:a({method:"workspace/willDeleteFiles"}),textDocumentMoniker:a({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:a({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:a({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:a({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:a({method:"textDocument/inlineValue"}),textDocumentInlayHint:a({method:"textDocument/inlayHint"}),inlayHintResolve:a({method:"inlayHint/resolve"}),textDocumentDiagnostic:a({method:"textDocument/diagnostic"}),workspaceDiagnostic:a({method:"workspace/diagnostic"}),textDocumentInlineCompletion:a({method:"textDocument/inlineCompletion"}),initialize:a({method:"initialize"}),shutdown:a({method:"shutdown"}),textDocumentWillSaveWaitUntil:a({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:a({method:"textDocument/completion"}),completionItemResolve:a({method:"completionItem/resolve"}),textDocumentHover:a({method:"textDocument/hover"}),textDocumentSignatureHelp:a({method:"textDocument/signatureHelp"}),textDocumentDefinition:a({method:"textDocument/definition"}),textDocumentReferences:a({method:"textDocument/references"}),textDocumentDocumentHighlight:a({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:a({method:"textDocument/documentSymbol"}),textDocumentCodeAction:a({method:"textDocument/codeAction"}),codeActionResolve:a({method:"codeAction/resolve"}),workspaceSymbol:a({method:"workspace/symbol"}),workspaceSymbolResolve:a({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:a({method:"textDocument/codeLens"}),codeLensResolve:a({method:"codeLens/resolve"}),textDocumentDocumentLink:a({method:"textDocument/documentLink"}),documentLinkResolve:a({method:"documentLink/resolve"}),textDocumentFormatting:a({method:"textDocument/formatting"}),textDocumentRangeFormatting:a({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:a({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:a({method:"textDocument/onTypeFormatting"}),textDocumentRename:a({method:"textDocument/rename"}),textDocumentPrepareRename:a({method:"textDocument/prepareRename"}),workspaceExecuteCommand:a({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:g({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:g({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:g({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:g({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:g({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:g({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:g({method:"notebookDocument/didChange"}),notebookDocumentDidSave:g({method:"notebookDocument/didSave"}),notebookDocumentDidClose:g({method:"notebookDocument/didClose"}),initialized:g({method:"initialized"}),exit:g({method:"exit"}),workspaceDidChangeConfiguration:g({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:g({method:"textDocument/didOpen"}),textDocumentDidChange:g({method:"textDocument/didChange"}),textDocumentDidClose:g({method:"textDocument/didClose"}),textDocumentDidSave:g({method:"textDocument/didSave"}),textDocumentWillSave:g({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:g({method:"workspace/didChangeWatchedFiles"}),setTrace:g({method:"$/setTrace"}),cancelRequest:g({method:"$/cancelRequest"}),progress:g({method:"$/progress"})},client:{workspaceWorkspaceFolders:a({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:a({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:a({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:a({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:a({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:a({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:a({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:a({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:a({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:a({method:"client/registerCapability"}).optional(),clientUnregisterCapability:a({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:a({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:a({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:a({method:"workspace/applyEdit"}).optional(),windowShowMessage:g({method:"window/showMessage"}),windowLogMessage:g({method:"window/logMessage"}),telemetryEvent:g({method:"telemetry/event"}),textDocumentPublishDiagnostics:g({method:"textDocument/publishDiagnostics"}),logTrace:g({method:"$/logTrace"}),cancelRequest:g({method:"$/cancelRequest"}),progress:g({method:"$/progress"})}});var Hl=(J=class{constructor(){c(this,"_store",new dt)}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},c(J,"None",Object.freeze({dispose(){}})),J),dt=(E=class{constructor(){c(this,"_toDispose",new Set),c(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?E.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}},c(E,"DISABLE_DISPOSED_WARNING",!1),E),Il=new Map([[w.Empty,""],[w.QuickFix,"quickfix"],[w.Refactor,"refactor"],[w.RefactorExtract,"refactor.extract"],[w.RefactorInline,"refactor.inline"],[w.RefactorRewrite,"refactor.rewrite"],[w.Source,"source"],[w.SourceOrganizeImports,"source.organizeImports"],[w.SourceFixAll,"source.fixAll"]]);var Al=new Map([[n.CodeActionTriggerType.Invoke,ve.Invoked],[n.CodeActionTriggerType.Auto,ve.Automatic]]);var Ol=new Map([[f.Text,n.CompletionItemKind.Text],[f.Method,n.CompletionItemKind.Method],[f.Function,n.CompletionItemKind.Function],[f.Constructor,n.CompletionItemKind.Constructor],[f.Field,n.CompletionItemKind.Field],[f.Variable,n.CompletionItemKind.Variable],[f.Class,n.CompletionItemKind.Class],[f.Interface,n.CompletionItemKind.Interface],[f.Module,n.CompletionItemKind.Module],[f.Property,n.CompletionItemKind.Property],[f.Unit,n.CompletionItemKind.Unit],[f.Value,n.CompletionItemKind.Value],[f.Enum,n.CompletionItemKind.Enum],[f.Keyword,n.CompletionItemKind.Keyword],[f.Snippet,n.CompletionItemKind.Snippet],[f.Color,n.CompletionItemKind.Color],[f.File,n.CompletionItemKind.File],[f.Reference,n.CompletionItemKind.Reference],[f.Folder,n.CompletionItemKind.Folder],[f.EnumMember,n.CompletionItemKind.EnumMember],[f.Constant,n.CompletionItemKind.Constant],[f.Struct,n.CompletionItemKind.Struct],[f.Event,n.CompletionItemKind.Event],[f.Operator,n.CompletionItemKind.Operator],[f.TypeParameter,n.CompletionItemKind.TypeParameter]]);var ql=new Map([[lt.Deprecated,n.CompletionItemTag.Deprecated]]);var jl=new Map([[n.CompletionTriggerKind.Invoke,Y.Invoked],[n.CompletionTriggerKind.TriggerCharacter,Y.TriggerCharacter],[n.CompletionTriggerKind.TriggerForIncompleteCompletions,Y.TriggerForIncompleteCompletions]]);var zl=new Map([[mt.Snippet,n.CompletionItemInsertTextRule.InsertAsSnippet]]);var Nl=new Map([[h.File,n.SymbolKind.File],[h.Module,n.SymbolKind.Module],[h.Namespace,n.SymbolKind.Namespace],[h.Package,n.SymbolKind.Package],[h.Class,n.SymbolKind.Class],[h.Method,n.SymbolKind.Method],[h.Property,n.SymbolKind.Property],[h.Field,n.SymbolKind.Field],[h.Constructor,n.SymbolKind.Constructor],[h.Enum,n.SymbolKind.Enum],[h.Interface,n.SymbolKind.Interface],[h.Function,n.SymbolKind.Function],[h.Variable,n.SymbolKind.Variable],[h.Constant,n.SymbolKind.Constant],[h.String,n.SymbolKind.String],[h.Number,n.SymbolKind.Number],[h.Boolean,n.SymbolKind.Boolean],[h.Array,n.SymbolKind.Array],[h.Object,n.SymbolKind.Object],[h.Key,n.SymbolKind.Key],[h.Null,n.SymbolKind.Null],[h.EnumMember,n.SymbolKind.EnumMember],[h.Struct,n.SymbolKind.Struct],[h.Event,n.SymbolKind.Event],[h.Operator,n.SymbolKind.Operator],[h.TypeParameter,n.SymbolKind.TypeParameter]]);var Bl=new Map([[ct.Deprecated,n.SymbolTag.Deprecated]]);var Wl=new Map([[X.Text,n.DocumentHighlightKind.Text],[X.Read,n.DocumentHighlightKind.Read],[X.Write,n.DocumentHighlightKind.Write]]);var Ul=new Map([[Q.Comment,n.FoldingRangeKind.Comment],[Q.Imports,n.FoldingRangeKind.Imports],[Q.Region,n.FoldingRangeKind.Region]]);var Vl=new Map([[D.Error,y.Error],[D.Warning,y.Warning],[D.Info,y.Information],[D.Hint,y.Hint]]);var Jl=new Map([[y.Error,D.Error],[y.Warning,D.Warning],[y.Information,D.Info],[y.Hint,D.Hint]]);var Gl=new Map([[we.Unnecessary,R.Unnecessary],[we.Deprecated,R.Deprecated]]);var Ql=new Map([[n.SignatureHelpTriggerKind.Invoke,Z.Invoked],[n.SignatureHelpTriggerKind.TriggerCharacter,Z.TriggerCharacter],[n.SignatureHelpTriggerKind.ContentChange,Z.ContentChange]]);var Xl=new Map([[_e.Type,n.InlayHintKind.Type],[_e.Parameter,n.InlayHintKind.Parameter]]);var Yl=new Map([...Object.values(ut)].map(e=>[e.method,e]));var S=null;typeof WebSocket<"u"?S=WebSocket:typeof MozWebSocket<"u"?S=MozWebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"?S=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(S=self.WebSocket||self.MozWebSocket);var H=ee();H.languages.css=j;H.languages.html=N;H.languages.typescript=$;H.languages.json=W;var gt=async()=>{let{editor:e}=await import("./5SPAJJAA.js");return e},Fe=null;async function _p(){return Fe??=gt(),await Fe}export{_p as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import d from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import d from"./6QMGBWXM.js";import b from"./72E5GBWN.js";import"./5HKDO4SX.js";import a from"./2WB7S5TQ.js";import{a as u}from"./2WVAYBDV.js";import"./CC4XBW6V.js";import"./TQDN6SR5.js";import{c,e as n}from"./XSKI5PRU.js";import{G as l,K as o,h as i,j as s}from"./XU7YAUUX.js";import"./VGOFAQ7A.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:t,h:a,i:d,j:m},{h:p}])=>{var h=i`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--calcite-block-padding: var(--calcite-spacing-sm);overflow:auto;calcite-flow{height:100%}.disabled-state-text{font-size:var(--calcite-font-size-sm);color:var(--calcite-color-text-3);font-style:italic;display:block;margin:var(--calcite-spacing-md)}.ltr-container{direction:ltr}[class*=result-value-]{line-height:1.25rem}}`,r=class extends l{constructor(){super(...arguments),this.messages=u()}static{this.properties={debuggerStore:0,result:0}}static{this.styles=[h,m,d()]}load(){this.manager.onLifecycle(()=>{let e=c(this.el,["class"],this.updateTheme.bind(this));return this.updateTheme(),()=>e()})}willUpdate(e){e.has("result")&&this.result&&this.debuggerStore?.lazyTreeState.reset()}updateTheme(){n(this.el)==="dark"?this.elementInternals.states.add(a):this.elementInternals.states.delete(a)}render(){if(!this.result)return s`<span class="disabled-state-text">${this.messages.nooutput??"No output available."}</span>`;let e=this.debuggerStore?.lazyTreeState;return e?s`<calcite-tree .scale=${t.scale} @calciteTreeSelect=${t.oncalciteTreeSelect} .lines=${t.lines} .selectionMode=${t.selectionMode}>${p({expanded:!0,name:this.result.arcadeType,value:this.result,messages:this.messages,path:this.result.arcadeType,lazyTreeState:e})}</calcite-tree>`:s`<span class="disabled-state-text">${this.messages.nooutput??"No output available."}</span>`}};o("arcgis-arcade-debugger-output",r);return r},a,b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./H6RQVSYM.js";var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},t={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a,b,c}from"./T5PTHYE5.js";import"./P37AQWGL.js";import"./ECNI2A4K.js";import"./XRUKVCVF.js";import"./VGOFAQ7A.js";import"./257WOXQH.js";import"./R2XZZWNP.js";import"./QTLHVR4Y.js";import"./TEXAGKBD.js";import"./H6RQVSYM.js";export{b as getSqlLayerDiagnosticService,a as getSqlLayerWorker,c as setupMode};
|