@esri/solutions-components 1.0.0-next.20250527.1 → 1.0.0-next.20250528
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{HOBO4ZBX.js → 24W4CW4F.js} +2 -2
- package/dist/cdn/{HHBX6OJB.js → 24WYI66F.js} +2 -2
- package/dist/cdn/{IYWM6PGT.js → 25RUIQSO.js} +2 -2
- package/dist/cdn/{34ECDRMG.js → 25ZWUXFO.js} +2 -2
- package/dist/cdn/{PRQU6X7H.js → 2ACVTFWH.js} +2 -2
- package/dist/cdn/{E2K4YXFY.js → 2AYAUMKZ.js} +2 -2
- package/dist/cdn/{IPINIAHE.js → 2QJG47YD.js} +2 -2
- package/dist/cdn/{U2VKBVBV.js → 2S6OZOKM.js} +2 -2
- package/dist/cdn/{V5TS3XKZ.js → 2SL6Z6TM.js} +2 -2
- package/dist/cdn/{JWXQ3ZOM.js → 37VSZ3UG.js} +2 -2
- package/dist/cdn/{TOWUBB5U.js → 3GDPB4SN.js} +2 -2
- package/dist/cdn/{BKXP4PYE.js → 3L6DEVIK.js} +2 -2
- package/dist/cdn/{QML66ZJW.js → 3LVLGGLP.js} +2 -2
- package/dist/cdn/{MMSYI6GH.js → 3YNQSVNT.js} +1 -1
- package/dist/cdn/{3BGUPUE3.js → 4433JH2R.js} +1 -1
- package/dist/cdn/{LSGWT4PB.js → 44MEZFTF.js} +2 -2
- package/dist/cdn/{72MDJVHR.js → 4EDDSKZS.js} +1 -1
- package/dist/cdn/{YYROVQF2.js → 4JGCEBGT.js} +1 -1
- package/dist/cdn/{RSJCSZWF.js → 4KRD733S.js} +1 -1
- package/dist/cdn/{LJ3WFFB2.js → 4ZZ767AP.js} +2 -2
- package/dist/cdn/{5MIMVQY5.js → 52W5VWDL.js} +1 -1
- package/dist/cdn/{KZ6GOXIR.js → 55BUMEUY.js} +2 -2
- package/dist/cdn/{6XL744QT.js → 5A3GJKYM.js} +2 -2
- package/dist/cdn/{WSTFKNIK.js → 5ENIF5PT.js} +2 -2
- package/dist/cdn/{Y3FQP4NF.js → 5GM4BLLQ.js} +2 -2
- package/dist/cdn/{ERRVLDZR.js → 5IAANDGE.js} +2 -2
- package/dist/cdn/{WK6KWLP7.js → 5IBV6E7G.js} +2 -2
- package/dist/cdn/{PNF3ZUSB.js → 5RNOJK2U.js} +2 -2
- package/dist/cdn/{3GWL7ZZR.js → 5VBCGIEG.js} +2 -2
- package/dist/cdn/{BRGMMR6T.js → 5VQIZRBI.js} +1 -1
- package/dist/cdn/{JO3IHRR7.js → 5XJ6SZ36.js} +2 -2
- package/dist/cdn/{DS7T3C76.js → 5YIEEOQO.js} +2 -2
- package/dist/cdn/{BNMMRZMR.js → 65N7XAWB.js} +1 -1
- package/dist/cdn/{ZFEYSYS5.js → 67VSRPIM.js} +2 -2
- package/dist/cdn/{GX7IKAB3.js → 6CED3D3P.js} +2 -2
- package/dist/cdn/{GZOFO77D.js → 6CWLNSWC.js} +2 -2
- package/dist/cdn/{2I7ZIAPF.js → 6GACAQSQ.js} +2 -2
- package/dist/cdn/{AAG5K33X.js → 6N2DIXJF.js} +2 -2
- package/dist/cdn/{CCZ4QXEQ.js → 6N7OJ52Y.js} +2 -2
- package/dist/cdn/{YSOIAQKF.js → 6PVCA5ZX.js} +2 -2
- package/dist/cdn/{MO6ELGZS.js → 6XZWFS7Y.js} +1 -1
- package/dist/cdn/{GVYKKXOF.js → 75AICF3J.js} +1 -1
- package/dist/cdn/{BGTACCYE.js → 7EJ7QFCG.js} +2 -2
- package/dist/cdn/{VNHRV4W2.js → 7LP7G3G5.js} +2 -2
- package/dist/cdn/{2W7UVH23.js → 7YJX66H4.js} +1 -1
- package/dist/cdn/{DCOPVWLY.js → A32DRANT.js} +2 -2
- package/dist/cdn/{SQOKNHQQ.js → A3VAIZ52.js} +2 -2
- package/dist/cdn/{L4A3TP42.js → AAQIWO65.js} +2 -2
- package/dist/cdn/{UOCFZXCI.js → AAW2CYTN.js} +2 -2
- package/dist/cdn/{NUYU2UBS.js → ABFH5NTH.js} +2 -2
- package/dist/cdn/{FM4LJPL6.js → ABWFIKPD.js} +2 -2
- package/dist/cdn/{MCYHMQTR.js → AGVDOFMZ.js} +2 -2
- package/dist/cdn/{U6CTX64Y.js → AKIPP4VC.js} +2 -2
- package/dist/cdn/{UWZF6TGQ.js → AMJZ2LFK.js} +2 -2
- package/dist/cdn/{AIWKSKOS.js → ANX7JVYO.js} +2 -2
- package/dist/cdn/{J7HFP2SN.js → APENH3LP.js} +2 -2
- package/dist/cdn/{G7O5ZQAS.js → B2FYFHU7.js} +2 -2
- package/dist/cdn/{QTDIQRHK.js → BBZU6JPM.js} +2 -2
- package/dist/cdn/{4C3SN7HO.js → BLLKRGVR.js} +2 -2
- package/dist/cdn/{VHAKVCYG.js → BLURTZNI.js} +2 -2
- package/dist/cdn/{ROI7GMNK.js → BLY5B6IS.js} +1 -1
- package/dist/cdn/{5YQ6I5EF.js → BPPOS7VC.js} +1 -1
- package/dist/cdn/{Q5ZQOFB2.js → BRT74BII.js} +2 -2
- package/dist/cdn/{J2OGB6WD.js → BUTQMMJS.js} +2 -2
- package/dist/cdn/{R7FDRHLT.js → BV7DCC4N.js} +2 -2
- package/dist/cdn/{BFX54VT3.js → BVKD52TV.js} +1 -1
- package/dist/cdn/{LU62UIKJ.js → BWTP5UGR.js} +2 -2
- package/dist/cdn/{ZMPNHGIE.js → BYTWF7MG.js} +2 -2
- package/dist/cdn/{XAIHFHBP.js → C47XZYAG.js} +2 -2
- package/dist/cdn/{STTUGNU7.js → C6W4EBHD.js} +2 -2
- package/dist/cdn/{VWINHHXS.js → CEDHHVFY.js} +2 -2
- package/dist/cdn/{JF6NRNBV.js → CFTM5CZE.js} +2 -2
- package/dist/cdn/{SZGXZADB.js → CH65TEDK.js} +1 -1
- package/dist/cdn/{K77Y37K5.js → CN7CLX6P.js} +2 -2
- package/dist/cdn/{LUS4XGFV.js → CO5U6E2B.js} +2 -2
- package/dist/cdn/{UQQ7WIIG.js → CVIE4PDN.js} +1 -1
- package/dist/cdn/{OBISJL4B.js → CYUT3EFC.js} +2 -2
- package/dist/cdn/{OM7V7IHH.js → CZXYR4ZF.js} +2 -2
- package/dist/cdn/{HM3CN2LF.js → D3FZEWBP.js} +1 -1
- package/dist/cdn/{UWTU3QFZ.js → D42V7PBV.js} +2 -2
- package/dist/cdn/{RP7K3LJT.js → D5UC5SVZ.js} +2 -2
- package/dist/cdn/{EUEDSIGE.js → DFKPE66D.js} +2 -2
- package/dist/cdn/{BRZEMXNZ.js → DMPPY7GI.js} +2 -2
- package/dist/cdn/{VHGLIJMI.js → DNCEXQFU.js} +2 -2
- package/dist/cdn/{2WWZLR6Z.js → DOZD6J4O.js} +2 -2
- package/dist/cdn/{GXDIQYY2.js → DRMYZSAV.js} +2 -2
- package/dist/cdn/{D73WKPMQ.js → DX3SET3L.js} +2 -2
- package/dist/cdn/{PALTMKJB.js → DX5OVPFT.js} +2 -2
- package/dist/cdn/{WKWVZYU2.js → DXKDQ4AX.js} +2 -2
- package/dist/cdn/{RUC3STWU.js → DYIHGLWU.js} +2 -2
- package/dist/cdn/E24CFSF6.js +4 -0
- package/dist/cdn/{M2JNL3YZ.js → E2FWRG3J.js} +1 -1
- package/dist/cdn/{VYN2OV3J.js → E4RIBJ2G.js} +2 -2
- package/dist/cdn/{IHWO6477.js → E645QUGL.js} +2 -2
- package/dist/cdn/{HPUHAFAJ.js → E65KQPOC.js} +2 -2
- package/dist/cdn/{M3NHYVE5.js → E6VMU3PC.js} +2 -2
- package/dist/cdn/{C2E5NBKB.js → E7E3UI3G.js} +2 -2
- package/dist/cdn/{3KJASSVN.js → EI6DJKRP.js} +2 -2
- package/dist/cdn/{XOEQRL52.js → EJ5VJ4MH.js} +2 -2
- package/dist/cdn/{P7U5QF6I.js → EKDX37DH.js} +2 -2
- package/dist/cdn/{KMEQX57W.js → EKVI5K4J.js} +2 -2
- package/dist/cdn/{WW6QSBNO.js → EL2LQYMI.js} +2 -2
- package/dist/cdn/{JY5VS7K2.js → EMWBSXP7.js} +2 -2
- package/dist/cdn/{SQVXPJDM.js → EOQESQYS.js} +1 -1
- package/dist/cdn/{F3SICAQV.js → F7J5AVP6.js} +1 -1
- package/dist/cdn/{U2ZT36OX.js → FCJVHDUH.js} +2 -2
- package/dist/cdn/{7T46C2WO.js → FEZB7BTL.js} +2 -2
- package/dist/cdn/{5TBGB7YZ.js → FGFMYMTA.js} +2 -2
- package/dist/cdn/{JPPXUPM6.js → FII3CMHX.js} +2 -2
- package/dist/cdn/{FNS5B3MH.js → FKXGGTJC.js} +2 -2
- package/dist/cdn/{PVJCHRCH.js → FR3L4TW7.js} +2 -2
- package/dist/cdn/{Y2H34EQP.js → FXKW2C3F.js} +2 -2
- package/dist/cdn/{L7V6N63X.js → FYTWFRTO.js} +1 -1
- package/dist/cdn/{4RKFDO7V.js → FZRUF6CO.js} +2 -2
- package/dist/cdn/{FTZVWKBM.js → G24WN4EN.js} +2 -2
- package/dist/cdn/{U2FJYTYH.js → GDOS5KO6.js} +2 -2
- package/dist/cdn/GFYWDQWM.js +4 -0
- package/dist/cdn/{OX5DEXZX.js → GJ2OS72Q.js} +2 -2
- package/dist/cdn/{HK7LGCJZ.js → GKMXDGZF.js} +2 -2
- package/dist/cdn/{DSUJM7KE.js → GMA3NBTA.js} +2 -2
- package/dist/cdn/{S3CJI2RF.js → GNLAD5Z6.js} +1 -1
- package/dist/cdn/{ZFS6FBQX.js → GP7NQO7J.js} +2 -2
- package/dist/cdn/{NF5LHYAO.js → GUYZ6TVU.js} +2 -2
- package/dist/cdn/{OUIN7APR.js → GWXVNAEF.js} +2 -2
- package/dist/cdn/{DUW2CBFP.js → GXXVAQDK.js} +2 -2
- package/dist/cdn/{VA5AX3JY.js → H2NSBFWF.js} +2 -2
- package/dist/cdn/{JGMZYU54.js → HA3GGXFE.js} +2 -2
- package/dist/cdn/{TKPHO475.js → HBJLJEV6.js} +2 -2
- package/dist/cdn/{VFC3KWOY.js → HEMGGNXH.js} +2 -2
- package/dist/cdn/{LIOV5Z2T.js → HIHCOY2K.js} +2 -2
- package/dist/cdn/{BYBUA3SD.js → HITN2DRN.js} +1 -1
- package/dist/cdn/{CNIE4S7A.js → HMLEGLZ7.js} +2 -2
- package/dist/cdn/HMVKLXKH.js +4 -0
- package/dist/cdn/{HL27PBID.js → HQHIIMPM.js} +2 -2
- package/dist/cdn/{M6OYWH72.js → HTWTYESZ.js} +2 -2
- package/dist/cdn/{UFTXRN5O.js → HVU2EO42.js} +2 -2
- package/dist/cdn/{PDHB7K5V.js → I33AEX6O.js} +2 -2
- package/dist/cdn/I4DHTV7R.js +4 -0
- package/dist/cdn/{QDZSCCYH.js → IHDMSZP6.js} +2 -2
- package/dist/cdn/{LWT5ZPS5.js → IJIQR7LK.js} +2 -2
- package/dist/cdn/{SKHIZ4QA.js → INHRZ23K.js} +2 -2
- package/dist/cdn/{E7Z2VNGZ.js → IUZA5X57.js} +2 -2
- package/dist/cdn/{IYDQFMAO.js → J5J7VURJ.js} +2 -2
- package/dist/cdn/{EQYKWRWC.js → J7CYSJA6.js} +2 -2
- package/dist/cdn/JCWMZ7NC.js +4 -0
- package/dist/cdn/{H2NMQTHO.js → JDVDAXYA.js} +2 -2
- package/dist/cdn/{DMPGY2CP.js → JFS4GZ6K.js} +1 -1
- package/dist/cdn/{IPPAEITK.js → JHVRHMPX.js} +2 -2
- package/dist/cdn/{6F7EVZA2.js → JNS7O2LI.js} +2 -2
- package/dist/cdn/{SF6257JR.js → JUSJWXDQ.js} +1 -1
- package/dist/cdn/JWTZEV6W.js +4 -0
- package/dist/cdn/{GOHGYRVC.js → K2P2DNKH.js} +2 -2
- package/dist/cdn/{HZY6CHAU.js → KPYNNZU2.js} +2 -2
- package/dist/cdn/{2G5DQFP5.js → KQTZ6C5H.js} +2 -2
- package/dist/cdn/{EIJGEZ3R.js → KRBE6UMS.js} +1 -1
- package/dist/cdn/{W74YB7LO.js → KRI567KM.js} +2 -2
- package/dist/cdn/{DF5QXKGH.js → KV7CP4TD.js} +2 -2
- package/dist/cdn/{OGAB72G7.js → L4PVVSFZ.js} +2 -2
- package/dist/cdn/{ZUNKV2EF.js → L7R6K4A2.js} +1 -1
- package/dist/cdn/{M4SLCXFR.js → LAXD5CVD.js} +2 -2
- package/dist/cdn/{65YPUCQG.js → LEY2V5RH.js} +2 -2
- package/dist/cdn/{RQN5FKM7.js → LFZ4GYFK.js} +2 -2
- package/dist/cdn/{GGUXZIFJ.js → LLEBDKSN.js} +2 -2
- package/dist/cdn/{JJ7NWRPI.js → LMK5U4FX.js} +2 -2
- package/dist/cdn/{AFMCTYMF.js → LOIPX2ER.js} +2 -2
- package/dist/cdn/{462NEOXQ.js → LSAVJADZ.js} +2 -2
- package/dist/cdn/{TVWOFQVC.js → LUZ6KCKH.js} +2 -2
- package/dist/cdn/{P6FYDYAK.js → LXYX76VN.js} +2 -2
- package/dist/cdn/{VLURIFFB.js → M2TA6G4S.js} +2 -2
- package/dist/cdn/{DZR5OU2Z.js → M4VWLPTM.js} +2 -2
- package/dist/cdn/{ZXQJLGRP.js → M7IGOHUD.js} +2 -2
- package/dist/cdn/{7L34ACJ2.js → MB7QENIY.js} +1 -1
- package/dist/cdn/MCX2WJIW.js +4 -0
- package/dist/cdn/{2SPBK2JC.js → MGD53ADT.js} +2 -2
- package/dist/cdn/{RTKXKSUC.js → MI5ZANBW.js} +2 -2
- package/dist/cdn/{Q5X2S4MD.js → MJEB763W.js} +1 -1
- package/dist/cdn/{O4DKV6WM.js → MQKIZQYU.js} +2 -2
- package/dist/cdn/{K3UY4EFA.js → MSJQ4JDQ.js} +1 -1
- package/dist/cdn/{KGLXLAY3.js → MYDDP7BI.js} +1 -1
- package/dist/cdn/{R7E7P3BW.js → N7CW4A4R.js} +2 -2
- package/dist/cdn/{K54ZYQZT.js → NBW6TGCY.js} +2 -2
- package/dist/cdn/{OOWZZIWB.js → NGTSVG7L.js} +2 -2
- package/dist/cdn/{2UBHX74M.js → NK3PNJXB.js} +2 -2
- package/dist/cdn/{T5YBVEAU.js → NVQA2OXP.js} +2 -2
- package/dist/cdn/{RS4LILZG.js → NYLKYV7F.js} +2 -2
- package/dist/cdn/{FTU72FJP.js → O3N5NP7L.js} +1 -1
- package/dist/cdn/{OIDBNRLF.js → OJFX5K3G.js} +2 -2
- package/dist/cdn/{X34MWL2J.js → OLFBYRLF.js} +2 -2
- package/dist/cdn/{K3OXWSA7.js → OPNL2BKB.js} +2 -2
- package/dist/cdn/{S2O7NNWL.js → OX2K54DK.js} +2 -2
- package/dist/cdn/{ZRRRCRK3.js → PEDUZUAO.js} +2 -2
- package/dist/cdn/{P67BXX6L.js → PL35BRBK.js} +2 -2
- package/dist/cdn/{3Y2Q5QFM.js → PRIGD4HE.js} +2 -2
- package/dist/cdn/{LWII4SFH.js → PYJIK3CR.js} +2 -2
- package/dist/cdn/{5ELHQQNT.js → Q5UREG2V.js} +1 -1
- package/dist/cdn/{ZADW6QWU.js → QFZ4AJSY.js} +2 -2
- package/dist/cdn/{XBMRPDNE.js → QQCYF2HJ.js} +2 -2
- package/dist/cdn/{VJ5NWA7C.js → QSEANYSR.js} +2 -2
- package/dist/cdn/{SP7LJ3CU.js → QTIN4PMT.js} +2 -2
- package/dist/cdn/{ZJID6JNT.js → QU6F2S3L.js} +2 -2
- package/dist/cdn/{UGDH6OHK.js → QUJHDDZX.js} +1 -1
- package/dist/cdn/{MKILC4CS.js → R5UW5BBB.js} +2 -2
- package/dist/cdn/{2JENJJ5Q.js → R6U6QOKC.js} +2 -2
- package/dist/cdn/{NAICN42V.js → RAYJRNTN.js} +2 -2
- package/dist/cdn/{WMVWR4TI.js → RE44UO66.js} +1 -1
- package/dist/cdn/{AUJ4ZHP4.js → RSWKNEWY.js} +2 -2
- package/dist/cdn/{PU3J4MZ3.js → RURXPJYT.js} +2 -2
- package/dist/cdn/{5TVQZ22P.js → RXO3BGVO.js} +2 -2
- package/dist/cdn/{YVIZHCBF.js → SC3ZFF3Y.js} +2 -2
- package/dist/cdn/{5M5CVIKP.js → SDPZNJWX.js} +2 -2
- package/dist/cdn/{DGNNFON4.js → SEPT44JR.js} +2 -2
- package/dist/cdn/{QMAKEUC2.js → SJ3Q55BE.js} +2 -2
- package/dist/cdn/{YZ4LCVJ7.js → SOLDJVDR.js} +2 -2
- package/dist/cdn/{UKSNIHPE.js → ST5JB4CK.js} +2 -2
- package/dist/cdn/{SMEMKVDF.js → SWWLO6K6.js} +2 -2
- package/dist/cdn/{47E56IWZ.js → SXHBKU6W.js} +2 -2
- package/dist/cdn/{TM2VJ6VT.js → SYQODL47.js} +2 -2
- package/dist/cdn/{Y2TULO3A.js → T33NVZXY.js} +2 -2
- package/dist/cdn/{VEYCZIDH.js → T3JY6H4E.js} +2 -2
- package/dist/cdn/{DCEBLW5N.js → T74GEZCH.js} +2 -2
- package/dist/cdn/{27MRQWJF.js → TI446Z7R.js} +2 -2
- package/dist/cdn/{OBQ5ECDX.js → TM4ZSPAB.js} +2 -2
- package/dist/cdn/{6LY4PJLC.js → TOODIZT4.js} +2 -2
- package/dist/cdn/{6Q6EWBBX.js → TRAZ3VPR.js} +2 -2
- package/dist/cdn/{7APZ4O46.js → TUGBBV6B.js} +2 -2
- package/dist/cdn/{EEZVGG7J.js → UBZ6KMGN.js} +2 -2
- package/dist/cdn/{VC55K7FD.js → UC5VQMM6.js} +2 -2
- package/dist/cdn/{MNIQAXS4.js → UD7F6DCG.js} +1 -1
- package/dist/cdn/{NSTT2IOP.js → UDLBJXHJ.js} +2 -2
- package/dist/cdn/{HEU5ADOI.js → UFWRGJDV.js} +2 -2
- package/dist/cdn/{CFSLUNQ7.js → UHGNCI7M.js} +2 -2
- package/dist/cdn/{AKIVXNOI.js → UKW7WIFN.js} +2 -2
- package/dist/cdn/{4CXASUGF.js → URWOL2IQ.js} +2 -2
- package/dist/cdn/{ASS7W7EF.js → UWM44QLQ.js} +2 -2
- package/dist/cdn/{RTT5SBQJ.js → UZOCT7SV.js} +2 -2
- package/dist/cdn/{2CBB2HLP.js → V6KN5QPT.js} +2 -2
- package/dist/cdn/{AZ3OMUAO.js → VC6W4X4W.js} +1 -1
- package/dist/cdn/{ABK3KAVX.js → VFEXPJTW.js} +2 -2
- package/dist/cdn/{NG43RYFN.js → VIJAXFTF.js} +2 -2
- package/dist/cdn/{2SCRBCST.js → VTPBT7MQ.js} +2 -2
- package/dist/cdn/{TVNGRZHA.js → W3A6FIHZ.js} +2 -2
- package/dist/cdn/{A42EXUKX.js → W5OOXAU4.js} +1 -1
- package/dist/cdn/{PETX35OI.js → W7XBKGFN.js} +2 -2
- package/dist/cdn/{R4O6DVY6.js → WF52YQCF.js} +2 -2
- package/dist/cdn/{IS6FZQDO.js → WHWBIGAH.js} +2 -2
- package/dist/cdn/{NP3DZUOG.js → WLHFDDBG.js} +2 -2
- package/dist/cdn/{ZTFR55FL.js → WOMBW52B.js} +2 -2
- package/dist/cdn/{K32Q3OHF.js → X2K4VP7N.js} +2 -2
- package/dist/cdn/{S2W3JVOQ.js → X3LPGOUH.js} +2 -2
- package/dist/cdn/{AW2RDITX.js → X3SEAUPP.js} +2 -2
- package/dist/cdn/{2B3Q4HD7.js → X4HL3D2I.js} +2 -2
- package/dist/cdn/{TPK7LVDB.js → X5DGQ5OF.js} +2 -2
- package/dist/cdn/{VVZJNJ36.js → X6UMCCK5.js} +2 -2
- package/dist/cdn/{6NFR7DWF.js → X6X5OCFG.js} +2 -2
- package/dist/cdn/{235HMCGP.js → XI7PRITM.js} +2 -2
- package/dist/cdn/{UQQLSZLW.js → XIBAIK2Z.js} +2 -2
- package/dist/cdn/{M5PZM6MR.js → XLUHLOEX.js} +2 -2
- package/dist/cdn/{MWYXGDMB.js → XQFJPY6R.js} +2 -2
- package/dist/cdn/{UFUUQSDI.js → Y57AHJQ2.js} +2 -2
- package/dist/cdn/Y7EKW72S.js +4 -0
- package/dist/cdn/{563I6KBO.js → YFR4OJTM.js} +2 -2
- package/dist/cdn/{Z2KZ6VY2.js → YFZCGZOB.js} +2 -2
- package/dist/cdn/{EJNMBFZU.js → YHDZXWFB.js} +2 -2
- package/dist/cdn/{XGKEI55O.js → YKWSPTR2.js} +2 -2
- package/dist/cdn/{VLP6DDYE.js → YP6FSEFL.js} +4 -4
- package/dist/cdn/{X3OZJPGV.js → YP6O3AK4.js} +2 -2
- package/dist/cdn/{FHPVFDBQ.js → YQNXV3P3.js} +2 -2
- package/dist/cdn/{Y2VUFZUV.js → YWGNQDQM.js} +1 -1
- package/dist/cdn/{ZGTCOKGY.js → Z2GSRYNO.js} +2 -2
- package/dist/cdn/{XCH4UNRZ.js → ZA32GRGJ.js} +2 -2
- package/dist/cdn/{CBUD7IB5.js → ZHH6EKP5.js} +2 -2
- package/dist/cdn/{EY5KJVGY.js → ZI7JVVEX.js} +2 -2
- package/dist/cdn/{OVEGZJHW.js → ZKIE5GVW.js} +2 -2
- package/dist/cdn/{FDO6F6OD.js → ZSU4BSTS.js} +3 -3
- package/dist/cdn/{WRLGEWRN.js → ZSYHLMKN.js} +1 -1
- package/dist/cdn/{5646UVWD.js → ZZZOCU5W.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +2 -2
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/44KWOYXI.js +0 -4
- package/dist/cdn/BTH73JNS.js +0 -4
- package/dist/cdn/FHG3CDRP.js +0 -4
- package/dist/cdn/JCYSJLP3.js +0 -4
- package/dist/cdn/LG5JARXR.js +0 -4
- package/dist/cdn/RMITVNXV.js +0 -4
- package/dist/cdn/UBBZOJAY.js +0 -4
- package/dist/cdn/X3KFABXY.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as E,b as B,c as Ae,d as re,f as xe,g as ze,h as ve,i as Pe,k as Te,q as le,u as $e,v as K,w as fe,x as Fe,y as Ue}from"./OVEGZJHW.js";import"./UWTU3QFZ.js";import"./XOEQRL52.js";import{C as Ce,E as ke,c as Re,z as Se}from"./YYROVQF2.js";import{a as Me,c as g,e as Ee,h as ce}from"./ABK3KAVX.js";import"./MO6ELGZS.js";var Ne=96;function N(a){return a?a/72*Ne:0}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me={exports:{}};(function(a,n){(function(c,s){s(n)})(Ve,function(c){var s="http://www.w3.org/",l="".concat(s,"2000/svg"),o="".concat(s,"1999/xlink"),u=[],_=function(e,t){var i={};return Object.keys(e).forEach(function(r){i[r]=e[r]}),t&&Object.keys(t).forEach(function(r){i[r]=t[r]}),i},b=function(e,t){return e.vnodeSelector!==t.vnodeSelector?!1:e.properties&&t.properties?e.properties.key!==t.properties.key?!1:e.properties.bind===t.properties.bind:!e.properties&&!t.properties},L=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},k=function(e,t,i){if(t.vnodeSelector!==""){for(var r=i;r<e.length;r++)if(b(e[r],t))return r}return-1},R=function(e,t,i,r){var d=e[t];if(d.vnodeSelector!==""){var p=d.properties,S=p?p.key===void 0?p.bind:p.key:void 0;if(!S){for(var h=0;h<e.length;h++)if(h!==t){var f=e[h];if(b(f,d))throw{error:new Error("".concat(i.vnodeSelector," had a ").concat(d.vnodeSelector," child ").concat(r==="added"?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:i,childNode:d}}}}},P=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x=[],z=!1,A=function(e){(e.children||[]).forEach(A),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$=function(){z=!1,x.forEach(A),x.length=0},D=function(e){x.push(e),z||(z=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($,{timeout:16}):setTimeout($,16))},J=function(e){var t=e.domNode;if(e.properties){var i=e.properties.exitAnimation;if(i){t.style.pointerEvents="none";var r=function(){t.parentNode&&(t.parentNode.removeChild(t),D(e))};i(t,r,e.properties);return}}t.parentNode&&(t.parentNode.removeChild(t),D(e))},X=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function U(e){return!X.includes(e)}var M=function(e,t,i){if(t)for(var r=i.eventHandlerInterceptor,d=Object.keys(t).filter(U),p=d.length,S=0;S<p;S++){var h=d[S],f=t[h];if(h==="className")throw new Error('Property "className" is not supported, use "class".');if(h==="class")de(e,f,!0);else if(h==="classes")for(var v=Object.keys(f),C=v.length,w=0;w<C;w++){var y=v[w];f[y]&&e.classList.add(y)}else if(h==="styles")for(var F=Object.keys(f),T=F.length,w=0;w<T;w++){var I=F[w],Z=f[I];Z&&(L(Z),i.styleApplyer(e,I,Z))}else if(h==="on"&&f)for(var te=0,ae=Object.entries(t.on);te<ae.length;te++){var ne=ae[te],G=ne[0],H=ne[1],O=typeof H=="function"?H:H.listener;r&&(O=r(G,O,e,t)),O&&e.addEventListener(G,O,typeof H=="function"?void 0:H.options)}else if(h!=="key"&&f!==null&&f!==void 0){var se=typeof f;se==="function"?(h.lastIndexOf("on",0)===0&&r&&(f=r(h,f,e,t)),e[h]=f):i.namespace===l?h==="href"?e.setAttributeNS(o,h,f):e.setAttribute(h,f):se==="string"&&h!=="value"&&h!=="innerHTML"?e.setAttribute(h,f):e[h]=f}}},W=function(e,t,i){if(t)for(var r=0,d=t;r<d.length;r++){var p=d[r];q(p,e,void 0,i)}},Y=function(e,t,i){W(e,t.children,i),t.text&&(e.textContent=t.text),M(e,t.properties,i),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,i,t.vnodeSelector,t.properties,t.children])},q=function(e,t,i,r){var d,p,S=0,h=e.vnodeSelector,f=t.ownerDocument;if(h==="")e.domNode?e.domNode.nodeValue=e.text:(p=e.domNode=f.createTextNode(e.text),i!==void 0?t.insertBefore(p,i):t.appendChild(p));else{for(var v=0;v<=h.length;++v){var C=h.charAt(v);if(v===h.length||C==="."||C==="#"){var w=h.charAt(S-1),y=h.slice(S,v);w==="."?p.classList.add(y):w==="#"?p.id=y:(y==="svg"&&(r=_(r,{namespace:l})),r.namespace!==void 0?p=e.domNode=f.createElementNS(r.namespace,y):(p=e.domNode=e.domNode||(!((d=e.properties)===null||d===void 0)&&d.is?f.createElement(y,{is:e.properties.is}):f.createElement(y)),y==="input"&&e.properties&&e.properties.type!==void 0&&p.setAttribute("type",e.properties.type)),i!==void 0?t.insertBefore(p,i):p.parentNode!==t&&t.appendChild(p)),S=v+1}}Y(p,e,r)}},ie,de=function(e,t,i){t&&t.split(" ").forEach(function(r){r&&e.classList.toggle(r,i)})},We=function(e,t,i,r){if(i){for(var d=!1,p=Object.keys(i).filter(U),S=p.length,h=0;h<S;h++){var f=p[h],v=i[f],C=t[f];if(f==="class")C!==v&&(de(e,C,!1),de(e,v,!0));else if(f==="classes")for(var w=e.classList,y=Object.keys(v),F=y.length,T=0;T<F;T++){var I=y[T],Z=!!v[I],te=!!C[I];Z!==te&&(d=!0,Z?w.add(I):w.remove(I))}else if(f==="styles")for(var ae=Object.keys(v),ne=ae.length,T=0;T<ne;T++){var G=ae[T],H=v[G],O=C[G];H!==O&&(d=!0,H?(L(H),r.styleApplyer(e,G,H)):r.styleApplyer(e,G,""))}else if(!v&&typeof C=="string"&&(v=""),f==="value"){var se=e[f];se!==v&&v!==C&&(e[f]=v),v!==C&&(d=!0)}else if(v!==C){var Le=typeof v;(Le!=="function"||!r.eventHandlerInterceptor)&&(r.namespace===l?f==="href"?e.setAttributeNS(o,f,v):e.setAttribute(f,v):Le==="string"&&f!=="innerHTML"?f==="role"&&v===""?e.removeAttribute(f):e.setAttribute(f,v):e[f]!==v&&(e[f]=v),d=!0)}}return d}},qe=function(e,t,i,r,d){if(i===r)return!1;i=i||u,r=r||u;for(var p=i.length,S=r.length,h=0,f=0,v,C=!1;f<S;){var w=h<p?i[h]:void 0,y=r[f];if(w!==void 0&&b(w,y))C=ie(w,y,d)||C,h++;else{var F=k(i,y,h+1);if(F>=0){for(v=h;v<F;v++)J(i[v]),R(i,v,e,"removed");C=ie(i[F],y,d)||C,h=F+1}else q(y,t,h<p?i[h].domNode:void 0,d),P(y),R(r,f,e,"added")}f++}if(p>h)for(v=h;v<p;v++)J(i[v]),R(i,v,e,"removed");return C};ie=function(e,t,i){var r=e.domNode,d=!1;if(e===t)return!1;var p=!1;if(t.vnodeSelector===""){if(t.text!==e.text){var S=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(S,r),t.domNode=S,d=!0,d}t.domNode=r}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(i=_(i,{namespace:l})),e.text!==t.text&&(p=!0,t.text===void 0?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,p=qe(t,r,e.children,t.children,i)||p,p=We(r,e.properties,t.properties,i)||p,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,i,t.vnodeSelector,t.properties,t.children]);return p&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),d};var V=function(e,t){return{getLastRender:function(){return e},update:function(i){if(e.vnodeSelector!==i.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=i,ie(r,i,t)},domNode:e.domNode}},Ge={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,i){t.charAt(0)==="-"?e.style.setProperty(t,i):e.style[t]=i}},Q=function(e){return _(Ge,e)},ee={create:function(e,t){return t=Q(t),q(e,document.createElement("div"),void 0,t),V(e,t)},append:function(e,t,i){return i=Q(i),q(t,e,void 0,i),V(t,i)},insertBefore:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),V(t,i)},merge:function(e,t,i){return i=Q(i),t.domNode=e,Y(e,t,i),V(t,i)},replace:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),e.parentNode.removeChild(e),V(t,i)}},Ke=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},_e=function(e,t,i){for(var r=0,d=t.length;r<d;r++){var p=t[r];Array.isArray(p)?_e(e,p,i):p!=null&&p!==!1&&(typeof p=="string"&&(p=Ke(p)),i.push(p))}};function Je(e,t,i){if(Array.isArray(t))i=t,t=void 0;else if(t&&(typeof t=="string"||t.vnodeSelector)||i&&(typeof i=="string"||i.vnodeSelector))throw new Error("h called with invalid arguments");var r,d;return i&&i.length===1&&typeof i[0]=="string"?r=i[0]:i&&(d=[],_e(e,i,d),d.length===0&&(d=void 0)),{vnodeSelector:e,properties:t,children:d,text:r===""?void 0:r,domNode:null}}var Xe=function(e,t){for(var i=[];e&&e!==t;)i.push(e),e=e.parentNode;return i},pe;Array.prototype.find?pe=function(e,t){return e.find(t)}:pe=function(e,t){return e.filter(t)[0]};var Ye=function(e,t){var i=e;return t.forEach(function(r){i=i&&i.children?pe(i.children,function(d){return d.domNode===r}):void 0}),i},Qe=function(e,t,i){return function(d,p,S,h){return r};function r(d){var p,S;i("domEvent",d);var h=t(),f=Xe(d.currentTarget,h.domNode);f.reverse();var v=Ye(h.getLastRender(),f);e.scheduleRender();var C;if(v){var w=(S=(p=v.properties["on".concat(d.type)])!==null&&p!==void 0?p:v.properties.on[d.type].listener)!==null&&S!==void 0?S:v.properties.on[d.type];C=w.apply(v.properties.bind||this,arguments)}return i("domEventProcessed",d),C}},Ze=function(e){var t,i=Q(e),r=i.performanceLogger,d=!0,p,S=!1,h=[],f=[],v=function(w,y,F){var T,I=function(){return T};i.eventHandlerInterceptor=Qe(t,I,r),T=w(y,F(),i),h.push(T),f.push(F)},C=function(){if(p=void 0,!!d){d=!1,r("renderStart",void 0);for(var w=0;w<h.length;w++){var y=f[w]();r("rendered",void 0),h[w].update(y),r("patched",void 0)}r("renderDone",void 0),d=!0}};return t={renderNow:C,scheduleRender:function(){!p&&!S&&(p=requestAnimationFrame(C))},stop:function(){p&&(cancelAnimationFrame(p),p=void 0),S=!0},resume:function(){S=!1,d=!0,t.scheduleRender()},append:function(w,y){v(ee.append,w,y)},insertBefore:function(w,y){v(ee.insertBefore,w,y)},merge:function(w,y){v(ee.merge,w,y)},replace:function(w,y){v(ee.replace,w,y)},detach:function(w){for(var y=0;y<f.length;y++)if(f[y]===w)return f.splice(y,1),h.splice(y,1)[0];throw new Error("renderFunction was not found")}},t},Oe=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(i,r){if(e)for(var d=0;d<i.length;d++)e[d]!==i[d]&&(t=void 0);return t||(t=r(),e=i),t}}},je=function(e,t,i){var r=[],d=[];return{results:d,map:function(p){for(var S=p.map(e),h=d.slice(),f=0,v=0;v<p.length;v++){var C=p[v],w=S[v];if(w===r[f])d[v]=h[f],i(C,h[f],v),f++;else{for(var y=!1,F=1;F<r.length+1;F++){var T=(f+F)%r.length;if(r[T]===w){d[v]=h[T],i(p[v],h[T],v),f=T+1,y=!0;break}}y||(d[v]=t(C,v))}}d.length=p.length,r=S}}};c.createCache=Oe,c.createMapping=je,c.createProjector=Ze,c.dom=ee,c.h=Je})})(me,me.exports);var et=me.exports.createProjector(),Be=10,ye=20,oe=10,be=20,we={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function tt(a="vertical"){let n={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return a==="vertical"?g("svg",{height:"4",width:"10"},g("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:n})):g("svg",{height:"10",width:"10"},g("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:n}))}function at(a,n="vertical"){let c=document.createElement("div");return c.style.height=`${ye}px`,c.className=we.univariateAboveAndBelowSymbol,a!=null&&(c.style.opacity=a.toString()),et.append(c,tt.bind(null,n)),c}function Ie(a,n,c="vertical",s){a.infos.forEach((l,o)=>{if(s&&o===2)l.preview=at(n,c);else{let{size:u}=l,_=N(u)+(c==="horizontal"?be:oe),b=l.preview.tagName.toLowerCase()==="div",L=b?l.preview:document.createElement("div");L&&(L.className=we.univariateAboveAndBelowSymbol),c==="horizontal"?L&&(L.style.width=`${_}px`):L&&(L.style.height=`${_}px`),b||L&&L.appendChild(l.preview),l.preview=L}})}function De(a,n="classic"){let c=a.infos,s=c[0].size,l=c[c.length-1].size;return n==="classic"?(N(s)+oe)/2:(N(s)-N(l))/2}function ge(a,n,c){if(!a)return null;let s=a.infos.map(o=>o.color),l=n.renderColorRampPreviewHTML(c.type==="full"?s:c.type==="above"?s.slice(0,3):s.slice(2,5),{width:c.width,height:c.height,align:c.rampAlignment,effectList:c.effectList});return l.className=we.colorRamp,c.opacity!=null&&(l.style.opacity=c.opacity.toString()),l}function it(a,n,c,s="vertical"){let l=0,o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u;for(let L=_;L<=b;L++)if(c&&L===u)l+=s==="horizontal"?Be:ye;else{let k=o[L].size,R=N(k)+(s==="horizontal"?be:oe);l+=R}return Math.round(l)}function he(a,n,c,s="vertical"){let l=it(a,n,c,s),o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u,L=n==="full"?o[_].size+o[b].size:n==="above"?o[_].size:o[b].size,k=c?s==="vertical"?ye:Be:0,R=s==="vertical"?oe*(n==="full"?2:1):be*(n==="full"?2:1);return Math.round(l-(N(L)/2+k/2+R/2))}function nt(a,n,c="vertical"){let s=a.infos,l=s.find(({type:u})=>u==="size-ramp"),o=s.find(({type:u})=>u==="color-ramp");return l&&(l={...l},l.infos=[...l.infos],Ie(l,n,c,!0)),o&&(o={...o},o.infos=[...o.infos]),c==="horizontal"&&(l?.infos.reverse(),o?.infos.reverse()),{sizeRampElement:l,colorRampElement:o}}function st(a,n="vertical"){let c=a.infos,s=c.find(({type:o})=>o==="size-ramp"),l=c.find(({type:o})=>o==="color-ramp");return s&&(s={...s},s.infos=[...s.infos],Ie(s,null,n,!1)),l&&(l={...l},l.infos=[...l.infos]),n==="horizontal"&&(s?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:s,colorRampElement:l}}function rt(a,n){return!0}var lt=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{--instant-apps-interactive-legend-ui-padding:10px 5px}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}",ct=lt,m={service:"esri-legend__service",label:"esri-legend__service-label",layer:"esri-legend__layer",groupLayer:"esri-legend__group-layer",groupLayerChild:"esri-legend__group-layer-child",layerTable:"esri-legend__layer-table",layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerCaption:"esri-legend__layer-caption",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerCell:"esri-legend__layer-cell",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",imageryLayerCellStretched:"esri-legend__imagery-layer-cell--stretched",imageryLayerInfoStretched:"esri-legend__imagery-layer-info--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",borderlessRamp:"esri-legend__borderless-ramp",rampTick:"esri-legend__ramp-tick",rampFirstTick:"esri-legend__ramp-tick-first",rampLastTick:"esri-legend__ramp-tick-last",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",header:"esri-widget__heading",hidden:"esri-hidden",interactiveLegendHeader:"instant-apps-interactive-legend__header",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},ot=24,He={display:"flex",alignItems:"flex-start"},ue={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},dt=class{constructor(a){Me(this,a),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0}handleFilterModeChange(){this.legendvm?.view&&Fe(this.filterMode,this.legendvm.view)}async connectedCallback(){this.handles||(this.handles=await Re())}async componentWillLoad(){new MutationObserver(()=>{ce(this.el)}).observe(this.el,{attributes:!0});let[n,c]=await Promise.all([Ce(),Se()]),s=await ke();this.reactiveUtils=c,this.intl=n,this.symbolUtils=s}async componentDidLoad(){await this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let a=async()=>{try{let n=this.legendvm?.view?.map;await n?.load(),await n?.basemap?.load();let s=n?.allLayers?.map(async b=>await b.load()),o=(await Promise.allSettled(s)).map(b=>b?.status==="fulfilled"&&b?.value?b.value:null).filter(b=>!!b),u=[];o.forEach(b=>{this.legendvm?.view&&u.push(this.legendvm.view.whenLayerView(b))}),await Promise.allSettled(u);let _=await re(this.legendvm,this.reactiveUtils);B.set("data",{...E.data,..._}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(n){console.error(n),this.isLoading=!1}};this.legendvm?.view?.when(a),this.legendvm?.view?.map?.layers?.on("after-changes",a)}catch{this.isLoading=!1}}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let a=this.renderFilteredLayers(),n=B.get("compact")?` ${m.compact}`:"";return this.isLoading?g("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:this.messages?.loading,text:this.messages?.loading}):g("div",{key:"interactive-legend-classic-container",class:`${K(this.el)}${n}`},a?.length>0?a:g("div",{class:m.message},this.messages?.noLegend))}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(n=>this.renderLegendForLayer(n)).filter(n=>!!n)}renderLegendForLayer(a,n){if(!a.ready)return null;if(!!a.children.length){let o=a.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return g("instant-apps-interactive-legend-group-legend-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,isChild:n},g("div",{style:{paddingLeft:"20px"},id:`${a?.layer?.id}-legend-layer`,slot:"content"},o))}let s=a.legendElements;if(s&&!s.length)return null;let l=s.map((o,u)=>this.renderLegendForElement(o,a.layer,a.effectList,a,u)).filter(o=>!!o);return l.length?g("instant-apps-interactive-legend-layer-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,messages:this.messages,isChild:!!n},g("div",{slot:"content",id:`${a?.layer?.id}-legend-layer`,class:m.layer},l)):null}renderLegendForElement(a,n,c,s,l,o,u){let _=a.type==="color-ramp",b=a.type==="opacity-ramp",L=a.type==="size-ramp",k=null,R=Te(s,a,l),P=a?.type==="relationship-ramp";if(a.type==="symbol-table"||L){let A=a.infos.map(($,D)=>this.renderLegendForElementInfo($,n,c,L,a,s,l,D,R,u)).filter($=>!!$);A.length&&(k=g("div",{class:m.layerBody},A))}else if(a.type==="color-ramp"||a.type==="opacity-ramp"||a.type==="heatmap-ramp"||a.type==="stretch-ramp"){let A=a;k=this.renderLegendForRamp(A,n.opacity)}else if(P)k=g("instant-apps-interactive-legend-relationship",{class:K(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:s,legendElement:a,messages:this.messages});else if(a.type==="pie-chart-ramp"){let A=a;k=this.renderPieChartRamp(A)}else if(a.type==="univariate-above-and-below-ramp"){let A=a;k=this.renderUnivariateAboveAndBelowRamp(A,n.opacity,c)}else if(a.type==="univariate-color-size-ramp"){let A=a;k=this.renderUnivariateColorSizeRamp(A,n.opacity,c)}if(!k)return null;let x=a.title,z=null;if(typeof x=="string")z=x;else if(x){let A=x,$=this.getTitle(this.messages,A,_||b);this.isRendererTitle(_||b)?"title"in x&&(z=`${x.title} (${$})`):z=$}return g("instant-apps-interactive-legend-legend-element",{class:K(this.el),activeLayerInfo:s,isSizeRamp:L,isChild:!!o,isColorRamp:_,isRelationshipRamp:P,isInteractive:R,zoomTo:this.zoomTo,legendElement:a,titleText:z,legendvm:this.legendvm,legendElementIndex:l,messages:this.messages},g("div",{slot:"content"},k))}renderPieChartRamp(a){return g("div",{innerHTML:`${a.preview?.outerHTML}`})}renderUnivariateAboveAndBelowRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=nt(a,n);if(!s)return null;let o=he(s,"above",!0),u=he(s,"below",!0),_=12,b=ge(l,this.symbolUtils,{width:_,height:o,rampAlignment:"vertical",opacity:n,type:"above",effectList:c}),L=ge(l,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:n,type:"below",effectList:c}),k=De(s),R=s.infos.map(U=>U.label),P=R.map((U,M)=>M===0?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):M===2?g("div",null):null),x=R.length-1,z=Math.floor(R.length/2),A=R.map((U,M)=>M===z||M===x?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):null),$={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${k}px`},J={height:`${o}px`},X={height:`${u}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map((U,M)=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:$,innerHTML:U?.preview?.outerHTML??""}),!b&&M%2===0?g("div",{class:m.layerInfo},R[M]):null))),b?g("div",{style:D,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:J},P))),g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},L)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:X},A)))):null)}renderUnivariateColorSizeRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=st(a);if(!s)return null;let o=De(s),u=12,_=he(s,"full",!1),b=ge(l,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:n,type:"full",effectList:c}),L=s.infos.length-1,k=s.infos.map((z,A)=>A===0||A===L?g("div",{class:z.label?l?m.univariateAboveAndBelowLabel:m.rampLabel:""},z.label):null),R={display:"table-cell",verticalAlign:"middle"},P={marginTop:`${o}px`},x={height:`${_}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map(z=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:R,innerHTML:z?.preview?.outerHTML??""})))),g("div",{style:P,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:x},k)))))}renderLegendForRamp(a,n){let c=a.infos,s=a.type==="opacity-ramp",l=a.type==="heatmap-ramp",o=a.type==="stretch-ramp",u=a.preview,_=s?m.opacityRamp:"";u&&(u.classList.add(m.colorRamp),_&&u.classList.add(_)),n!=null&&u&&(u.style.opacity=n.toString());let b=c.map(R=>{let P;if(l){let x=this.messages[R.label];P=typeof x=="string"?x:R.label}else o?P="value"in R?this.getStretchStopLabel(R):R.label:P=R.label;return g("div",{class:R.label?m.rampLabel:""},P)}),L={width:`${ot}px`},k={height:u?.style?.height};return g("div",{class:m.layerRow},g("div",{class:m.symbolContainer,style:{...L}},g("div",{ref:R=>{R?.firstChild&&R?.firstChild?.remove(),R?.appendChild(u)},class:m.rampContainer})),g("div",{class:m.layerInfo},g("div",{class:m.rampLabelsContainer,style:{...k}},b)))}getStretchStopLabel(a){let n=this.messages[a.label];return a.label?`${n}: ${typeof a.value=="string"?a.value:this.intl.formatNumber(a.value,{style:"decimal",notation:a.value.toString().includes("e")?"scientific":"standard"})}`:""}renderLegendForElementInfo(a,n,c,s,l,o,u,_,b,L){if("infos"in a)return this.renderLegendForElement(a,n,c,o,u,!0,a);let k=null,R=!rt();if("preview"in a){let{outerHTML:W}=a.preview;k=g("div",{class:m.symbol,innerHTML:W})}else"src"in a&&(k=this.renderImage(a,n,R));if(!k)return null;let P="",x=s?` ${m.sizeRamp}`:"",z,A=ze(n),$=$e(A,L);if(E.data){let W=xe(A,n,a,$,_),Y=$?$?.nestedInfos:A,q=Pe(Y);z=A?.categories?.size===1?!W?.selected:q||W?.selected}let D="label"in a?a.label:null,J=$&&!("value"in a)?!1:b,X=B.get("compact"),U=this.getTitle(this.messages,D,!1)||"",M=$?l.title:D??n?.id;return J?g("button",{onClick:this.applyFilter(a,n,_,L),class:`${m.layerRow} ${m.interactiveLayerRow}${z?` ${m.infoSelected}`:""}`,title:X?`${U}`:void 0,"aria-pressed":z?"true":"false"},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},this.getTitle(this.messages,D,!1)||""),this.featureCount&&!X?g("instant-apps-interactive-legend-count",{class:K(this.el),categoryId:M,activeLayerInfo:o,legendvm:this.legendvm,messages:this.messages,selected:!!z,legendElement:l,infoIndex:_}):null):g("div",{class:m.layerRow},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},U))}renderImage(a,n,c){let{label:s,src:l,opacity:o}=a,u=c?` ${m.imageryLayerStretchedImage}`:"",_=c?"":` ${m.symbol}`,b={opacity:`${o??n.opacity}`};return g("img",{alt:this.getTitle(this.messages,s,!1),src:l,width:a.width,height:a.height,class:`$${u}${_}`,style:b})}getTitle(a,n,c){if(!n)return;if(typeof n=="string"||typeof n=="number")return n;if("value"in n||"unit"in n){let o=typeof a?.dotValue=="string"?a.dotValue:"";return this.intl.substitute(o,n)}if("colorName"in n||"bandName"in n){let{colorName:o,bandName:u}=n,_=a[o],b=typeof a[u]=="string"?a[u]:u;return`${_}: ${b}`}if("showCount"in n)return n.showCount?a.clusterCountTitle:null;let s=null;if(c){let o=n;s=o.ratioPercentTotal?"showRatioPercentTotal":o.ratioPercent?"showRatioPercent":o.ratio?"showRatio":n.normField?"showNormField":n.field?"showField":null}else if(this.isRendererTitle(c)){let o=n;s=o.normField?"showNormField":o.normByPct?"showNormPct":o.field?"showField":null}let l=s==="showField"?"{field}":typeof s=="string"?a[s]:"";return s?this.intl?.substitute(l,{field:n.field,normField:n.normField}):""}isRendererTitle(a){return!a}async setupWatchersAndListeners(){let a=this.legendvm?.view?.map?.allLayers?.filter(s=>s?.type==="feature"),n=[];for(let s of a)this.legendvm?.view&&n.push(this.legendvm?.view?.whenLayerView(s));let c=[];try{c=await Promise.all(n)}catch(s){console.error(s)}for(let s of c){let l=`fLayerViewScale-${s.layer.id}`;!this.handles?.has(l)&&s&&this.handles?.add(s.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(s.layer).catch(o=>{console.error(o)})}),l)}a?.forEach(s=>{let l=`fLayer-${s?.id}`;this.handles?.has(l)||this.handles?.add(this.reactiveUtils?.watch(()=>s?.visible,()=>{this.createDataForLayer(s).catch(o=>{console.error(o)})}),l)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",s=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>s.children,"change",()=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).catch(l=>{console.error(l)})}))}).catch(l=>{console.error(l)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})}))}async createDataForLayer(a){let c=B.get("data")?.[a?.id],l=Ue(this.legendvm?.activeLayerInfos)?.find(o=>o?.layer?.id===a?.id);if(!c&&l){let o=await Ae(this.legendvm,l,this.reactiveUtils);if(fe({intLegendLayerData:o,layerId:a?.id}),this.featureCount){let u=await le(this.legendvm,E.data);B.set("data",{...E.data,...u})}}}applyFilter(a,n,c,s){return async()=>{let l={...E.data?.[n?.id]};s?await ve(l,a,c,this.filterMode,s):await ve(l,a,c,this.filterMode),fe({intLegendLayerData:l,layerId:n?.id})}}get el(){return Ee(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};dt.style=ct;export{dt as instant_apps_interactive_legend_classic};
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as E,b as B,c as Ae,d as re,f as xe,g as ze,h as ve,i as Pe,k as Te,q as le,u as $e,v as K,w as fe,x as Fe,y as Ue}from"./ZKIE5GVW.js";import"./D42V7PBV.js";import"./EJ5VJ4MH.js";import{C as Ce,E as ke,c as Re,z as Se}from"./4JGCEBGT.js";import{a as Me,c as g,e as Ee,h as ce}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var Ne=96;function N(a){return a?a/72*Ne:0}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me={exports:{}};(function(a,n){(function(c,s){s(n)})(Ve,function(c){var s="http://www.w3.org/",l="".concat(s,"2000/svg"),o="".concat(s,"1999/xlink"),u=[],_=function(e,t){var i={};return Object.keys(e).forEach(function(r){i[r]=e[r]}),t&&Object.keys(t).forEach(function(r){i[r]=t[r]}),i},b=function(e,t){return e.vnodeSelector!==t.vnodeSelector?!1:e.properties&&t.properties?e.properties.key!==t.properties.key?!1:e.properties.bind===t.properties.bind:!e.properties&&!t.properties},L=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},k=function(e,t,i){if(t.vnodeSelector!==""){for(var r=i;r<e.length;r++)if(b(e[r],t))return r}return-1},R=function(e,t,i,r){var d=e[t];if(d.vnodeSelector!==""){var p=d.properties,S=p?p.key===void 0?p.bind:p.key:void 0;if(!S){for(var h=0;h<e.length;h++)if(h!==t){var f=e[h];if(b(f,d))throw{error:new Error("".concat(i.vnodeSelector," had a ").concat(d.vnodeSelector," child ").concat(r==="added"?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:i,childNode:d}}}}},P=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x=[],z=!1,A=function(e){(e.children||[]).forEach(A),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$=function(){z=!1,x.forEach(A),x.length=0},D=function(e){x.push(e),z||(z=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($,{timeout:16}):setTimeout($,16))},J=function(e){var t=e.domNode;if(e.properties){var i=e.properties.exitAnimation;if(i){t.style.pointerEvents="none";var r=function(){t.parentNode&&(t.parentNode.removeChild(t),D(e))};i(t,r,e.properties);return}}t.parentNode&&(t.parentNode.removeChild(t),D(e))},X=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function U(e){return!X.includes(e)}var M=function(e,t,i){if(t)for(var r=i.eventHandlerInterceptor,d=Object.keys(t).filter(U),p=d.length,S=0;S<p;S++){var h=d[S],f=t[h];if(h==="className")throw new Error('Property "className" is not supported, use "class".');if(h==="class")de(e,f,!0);else if(h==="classes")for(var v=Object.keys(f),C=v.length,w=0;w<C;w++){var y=v[w];f[y]&&e.classList.add(y)}else if(h==="styles")for(var F=Object.keys(f),T=F.length,w=0;w<T;w++){var I=F[w],Z=f[I];Z&&(L(Z),i.styleApplyer(e,I,Z))}else if(h==="on"&&f)for(var te=0,ae=Object.entries(t.on);te<ae.length;te++){var ne=ae[te],G=ne[0],H=ne[1],O=typeof H=="function"?H:H.listener;r&&(O=r(G,O,e,t)),O&&e.addEventListener(G,O,typeof H=="function"?void 0:H.options)}else if(h!=="key"&&f!==null&&f!==void 0){var se=typeof f;se==="function"?(h.lastIndexOf("on",0)===0&&r&&(f=r(h,f,e,t)),e[h]=f):i.namespace===l?h==="href"?e.setAttributeNS(o,h,f):e.setAttribute(h,f):se==="string"&&h!=="value"&&h!=="innerHTML"?e.setAttribute(h,f):e[h]=f}}},W=function(e,t,i){if(t)for(var r=0,d=t;r<d.length;r++){var p=d[r];q(p,e,void 0,i)}},Y=function(e,t,i){W(e,t.children,i),t.text&&(e.textContent=t.text),M(e,t.properties,i),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,i,t.vnodeSelector,t.properties,t.children])},q=function(e,t,i,r){var d,p,S=0,h=e.vnodeSelector,f=t.ownerDocument;if(h==="")e.domNode?e.domNode.nodeValue=e.text:(p=e.domNode=f.createTextNode(e.text),i!==void 0?t.insertBefore(p,i):t.appendChild(p));else{for(var v=0;v<=h.length;++v){var C=h.charAt(v);if(v===h.length||C==="."||C==="#"){var w=h.charAt(S-1),y=h.slice(S,v);w==="."?p.classList.add(y):w==="#"?p.id=y:(y==="svg"&&(r=_(r,{namespace:l})),r.namespace!==void 0?p=e.domNode=f.createElementNS(r.namespace,y):(p=e.domNode=e.domNode||(!((d=e.properties)===null||d===void 0)&&d.is?f.createElement(y,{is:e.properties.is}):f.createElement(y)),y==="input"&&e.properties&&e.properties.type!==void 0&&p.setAttribute("type",e.properties.type)),i!==void 0?t.insertBefore(p,i):p.parentNode!==t&&t.appendChild(p)),S=v+1}}Y(p,e,r)}},ie,de=function(e,t,i){t&&t.split(" ").forEach(function(r){r&&e.classList.toggle(r,i)})},We=function(e,t,i,r){if(i){for(var d=!1,p=Object.keys(i).filter(U),S=p.length,h=0;h<S;h++){var f=p[h],v=i[f],C=t[f];if(f==="class")C!==v&&(de(e,C,!1),de(e,v,!0));else if(f==="classes")for(var w=e.classList,y=Object.keys(v),F=y.length,T=0;T<F;T++){var I=y[T],Z=!!v[I],te=!!C[I];Z!==te&&(d=!0,Z?w.add(I):w.remove(I))}else if(f==="styles")for(var ae=Object.keys(v),ne=ae.length,T=0;T<ne;T++){var G=ae[T],H=v[G],O=C[G];H!==O&&(d=!0,H?(L(H),r.styleApplyer(e,G,H)):r.styleApplyer(e,G,""))}else if(!v&&typeof C=="string"&&(v=""),f==="value"){var se=e[f];se!==v&&v!==C&&(e[f]=v),v!==C&&(d=!0)}else if(v!==C){var Le=typeof v;(Le!=="function"||!r.eventHandlerInterceptor)&&(r.namespace===l?f==="href"?e.setAttributeNS(o,f,v):e.setAttribute(f,v):Le==="string"&&f!=="innerHTML"?f==="role"&&v===""?e.removeAttribute(f):e.setAttribute(f,v):e[f]!==v&&(e[f]=v),d=!0)}}return d}},qe=function(e,t,i,r,d){if(i===r)return!1;i=i||u,r=r||u;for(var p=i.length,S=r.length,h=0,f=0,v,C=!1;f<S;){var w=h<p?i[h]:void 0,y=r[f];if(w!==void 0&&b(w,y))C=ie(w,y,d)||C,h++;else{var F=k(i,y,h+1);if(F>=0){for(v=h;v<F;v++)J(i[v]),R(i,v,e,"removed");C=ie(i[F],y,d)||C,h=F+1}else q(y,t,h<p?i[h].domNode:void 0,d),P(y),R(r,f,e,"added")}f++}if(p>h)for(v=h;v<p;v++)J(i[v]),R(i,v,e,"removed");return C};ie=function(e,t,i){var r=e.domNode,d=!1;if(e===t)return!1;var p=!1;if(t.vnodeSelector===""){if(t.text!==e.text){var S=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(S,r),t.domNode=S,d=!0,d}t.domNode=r}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(i=_(i,{namespace:l})),e.text!==t.text&&(p=!0,t.text===void 0?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,p=qe(t,r,e.children,t.children,i)||p,p=We(r,e.properties,t.properties,i)||p,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,i,t.vnodeSelector,t.properties,t.children]);return p&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),d};var V=function(e,t){return{getLastRender:function(){return e},update:function(i){if(e.vnodeSelector!==i.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=i,ie(r,i,t)},domNode:e.domNode}},Ge={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,i){t.charAt(0)==="-"?e.style.setProperty(t,i):e.style[t]=i}},Q=function(e){return _(Ge,e)},ee={create:function(e,t){return t=Q(t),q(e,document.createElement("div"),void 0,t),V(e,t)},append:function(e,t,i){return i=Q(i),q(t,e,void 0,i),V(t,i)},insertBefore:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),V(t,i)},merge:function(e,t,i){return i=Q(i),t.domNode=e,Y(e,t,i),V(t,i)},replace:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),e.parentNode.removeChild(e),V(t,i)}},Ke=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},_e=function(e,t,i){for(var r=0,d=t.length;r<d;r++){var p=t[r];Array.isArray(p)?_e(e,p,i):p!=null&&p!==!1&&(typeof p=="string"&&(p=Ke(p)),i.push(p))}};function Je(e,t,i){if(Array.isArray(t))i=t,t=void 0;else if(t&&(typeof t=="string"||t.vnodeSelector)||i&&(typeof i=="string"||i.vnodeSelector))throw new Error("h called with invalid arguments");var r,d;return i&&i.length===1&&typeof i[0]=="string"?r=i[0]:i&&(d=[],_e(e,i,d),d.length===0&&(d=void 0)),{vnodeSelector:e,properties:t,children:d,text:r===""?void 0:r,domNode:null}}var Xe=function(e,t){for(var i=[];e&&e!==t;)i.push(e),e=e.parentNode;return i},pe;Array.prototype.find?pe=function(e,t){return e.find(t)}:pe=function(e,t){return e.filter(t)[0]};var Ye=function(e,t){var i=e;return t.forEach(function(r){i=i&&i.children?pe(i.children,function(d){return d.domNode===r}):void 0}),i},Qe=function(e,t,i){return function(d,p,S,h){return r};function r(d){var p,S;i("domEvent",d);var h=t(),f=Xe(d.currentTarget,h.domNode);f.reverse();var v=Ye(h.getLastRender(),f);e.scheduleRender();var C;if(v){var w=(S=(p=v.properties["on".concat(d.type)])!==null&&p!==void 0?p:v.properties.on[d.type].listener)!==null&&S!==void 0?S:v.properties.on[d.type];C=w.apply(v.properties.bind||this,arguments)}return i("domEventProcessed",d),C}},Ze=function(e){var t,i=Q(e),r=i.performanceLogger,d=!0,p,S=!1,h=[],f=[],v=function(w,y,F){var T,I=function(){return T};i.eventHandlerInterceptor=Qe(t,I,r),T=w(y,F(),i),h.push(T),f.push(F)},C=function(){if(p=void 0,!!d){d=!1,r("renderStart",void 0);for(var w=0;w<h.length;w++){var y=f[w]();r("rendered",void 0),h[w].update(y),r("patched",void 0)}r("renderDone",void 0),d=!0}};return t={renderNow:C,scheduleRender:function(){!p&&!S&&(p=requestAnimationFrame(C))},stop:function(){p&&(cancelAnimationFrame(p),p=void 0),S=!0},resume:function(){S=!1,d=!0,t.scheduleRender()},append:function(w,y){v(ee.append,w,y)},insertBefore:function(w,y){v(ee.insertBefore,w,y)},merge:function(w,y){v(ee.merge,w,y)},replace:function(w,y){v(ee.replace,w,y)},detach:function(w){for(var y=0;y<f.length;y++)if(f[y]===w)return f.splice(y,1),h.splice(y,1)[0];throw new Error("renderFunction was not found")}},t},Oe=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(i,r){if(e)for(var d=0;d<i.length;d++)e[d]!==i[d]&&(t=void 0);return t||(t=r(),e=i),t}}},je=function(e,t,i){var r=[],d=[];return{results:d,map:function(p){for(var S=p.map(e),h=d.slice(),f=0,v=0;v<p.length;v++){var C=p[v],w=S[v];if(w===r[f])d[v]=h[f],i(C,h[f],v),f++;else{for(var y=!1,F=1;F<r.length+1;F++){var T=(f+F)%r.length;if(r[T]===w){d[v]=h[T],i(p[v],h[T],v),f=T+1,y=!0;break}}y||(d[v]=t(C,v))}}d.length=p.length,r=S}}};c.createCache=Oe,c.createMapping=je,c.createProjector=Ze,c.dom=ee,c.h=Je})})(me,me.exports);var et=me.exports.createProjector(),Be=10,ye=20,oe=10,be=20,we={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function tt(a="vertical"){let n={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return a==="vertical"?g("svg",{height:"4",width:"10"},g("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:n})):g("svg",{height:"10",width:"10"},g("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:n}))}function at(a,n="vertical"){let c=document.createElement("div");return c.style.height=`${ye}px`,c.className=we.univariateAboveAndBelowSymbol,a!=null&&(c.style.opacity=a.toString()),et.append(c,tt.bind(null,n)),c}function Ie(a,n,c="vertical",s){a.infos.forEach((l,o)=>{if(s&&o===2)l.preview=at(n,c);else{let{size:u}=l,_=N(u)+(c==="horizontal"?be:oe),b=l.preview.tagName.toLowerCase()==="div",L=b?l.preview:document.createElement("div");L&&(L.className=we.univariateAboveAndBelowSymbol),c==="horizontal"?L&&(L.style.width=`${_}px`):L&&(L.style.height=`${_}px`),b||L&&L.appendChild(l.preview),l.preview=L}})}function De(a,n="classic"){let c=a.infos,s=c[0].size,l=c[c.length-1].size;return n==="classic"?(N(s)+oe)/2:(N(s)-N(l))/2}function ge(a,n,c){if(!a)return null;let s=a.infos.map(o=>o.color),l=n.renderColorRampPreviewHTML(c.type==="full"?s:c.type==="above"?s.slice(0,3):s.slice(2,5),{width:c.width,height:c.height,align:c.rampAlignment,effectList:c.effectList});return l.className=we.colorRamp,c.opacity!=null&&(l.style.opacity=c.opacity.toString()),l}function it(a,n,c,s="vertical"){let l=0,o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u;for(let L=_;L<=b;L++)if(c&&L===u)l+=s==="horizontal"?Be:ye;else{let k=o[L].size,R=N(k)+(s==="horizontal"?be:oe);l+=R}return Math.round(l)}function he(a,n,c,s="vertical"){let l=it(a,n,c,s),o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u,L=n==="full"?o[_].size+o[b].size:n==="above"?o[_].size:o[b].size,k=c?s==="vertical"?ye:Be:0,R=s==="vertical"?oe*(n==="full"?2:1):be*(n==="full"?2:1);return Math.round(l-(N(L)/2+k/2+R/2))}function nt(a,n,c="vertical"){let s=a.infos,l=s.find(({type:u})=>u==="size-ramp"),o=s.find(({type:u})=>u==="color-ramp");return l&&(l={...l},l.infos=[...l.infos],Ie(l,n,c,!0)),o&&(o={...o},o.infos=[...o.infos]),c==="horizontal"&&(l?.infos.reverse(),o?.infos.reverse()),{sizeRampElement:l,colorRampElement:o}}function st(a,n="vertical"){let c=a.infos,s=c.find(({type:o})=>o==="size-ramp"),l=c.find(({type:o})=>o==="color-ramp");return s&&(s={...s},s.infos=[...s.infos],Ie(s,null,n,!1)),l&&(l={...l},l.infos=[...l.infos]),n==="horizontal"&&(s?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:s,colorRampElement:l}}function rt(a,n){return!0}var lt=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{--instant-apps-interactive-legend-ui-padding:10px 5px}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}",ct=lt,m={service:"esri-legend__service",label:"esri-legend__service-label",layer:"esri-legend__layer",groupLayer:"esri-legend__group-layer",groupLayerChild:"esri-legend__group-layer-child",layerTable:"esri-legend__layer-table",layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerCaption:"esri-legend__layer-caption",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerCell:"esri-legend__layer-cell",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",imageryLayerCellStretched:"esri-legend__imagery-layer-cell--stretched",imageryLayerInfoStretched:"esri-legend__imagery-layer-info--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",borderlessRamp:"esri-legend__borderless-ramp",rampTick:"esri-legend__ramp-tick",rampFirstTick:"esri-legend__ramp-tick-first",rampLastTick:"esri-legend__ramp-tick-last",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",header:"esri-widget__heading",hidden:"esri-hidden",interactiveLegendHeader:"instant-apps-interactive-legend__header",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},ot=24,He={display:"flex",alignItems:"flex-start"},ue={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},dt=class{constructor(a){Me(this,a),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0}handleFilterModeChange(){this.legendvm?.view&&Fe(this.filterMode,this.legendvm.view)}async connectedCallback(){this.handles||(this.handles=await Re())}async componentWillLoad(){new MutationObserver(()=>{ce(this.el)}).observe(this.el,{attributes:!0});let[n,c]=await Promise.all([Ce(),Se()]),s=await ke();this.reactiveUtils=c,this.intl=n,this.symbolUtils=s}async componentDidLoad(){await this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let a=async()=>{try{let n=this.legendvm?.view?.map;await n?.load(),await n?.basemap?.load();let s=n?.allLayers?.map(async b=>await b.load()),o=(await Promise.allSettled(s)).map(b=>b?.status==="fulfilled"&&b?.value?b.value:null).filter(b=>!!b),u=[];o.forEach(b=>{this.legendvm?.view&&u.push(this.legendvm.view.whenLayerView(b))}),await Promise.allSettled(u);let _=await re(this.legendvm,this.reactiveUtils);B.set("data",{...E.data,..._}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(n){console.error(n),this.isLoading=!1}};this.legendvm?.view?.when(a),this.legendvm?.view?.map?.layers?.on("after-changes",a)}catch{this.isLoading=!1}}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let a=this.renderFilteredLayers(),n=B.get("compact")?` ${m.compact}`:"";return this.isLoading?g("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:this.messages?.loading,text:this.messages?.loading}):g("div",{key:"interactive-legend-classic-container",class:`${K(this.el)}${n}`},a?.length>0?a:g("div",{class:m.message},this.messages?.noLegend))}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(n=>this.renderLegendForLayer(n)).filter(n=>!!n)}renderLegendForLayer(a,n){if(!a.ready)return null;if(!!a.children.length){let o=a.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return g("instant-apps-interactive-legend-group-legend-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,isChild:n},g("div",{style:{paddingLeft:"20px"},id:`${a?.layer?.id}-legend-layer`,slot:"content"},o))}let s=a.legendElements;if(s&&!s.length)return null;let l=s.map((o,u)=>this.renderLegendForElement(o,a.layer,a.effectList,a,u)).filter(o=>!!o);return l.length?g("instant-apps-interactive-legend-layer-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,messages:this.messages,isChild:!!n},g("div",{slot:"content",id:`${a?.layer?.id}-legend-layer`,class:m.layer},l)):null}renderLegendForElement(a,n,c,s,l,o,u){let _=a.type==="color-ramp",b=a.type==="opacity-ramp",L=a.type==="size-ramp",k=null,R=Te(s,a,l),P=a?.type==="relationship-ramp";if(a.type==="symbol-table"||L){let A=a.infos.map(($,D)=>this.renderLegendForElementInfo($,n,c,L,a,s,l,D,R,u)).filter($=>!!$);A.length&&(k=g("div",{class:m.layerBody},A))}else if(a.type==="color-ramp"||a.type==="opacity-ramp"||a.type==="heatmap-ramp"||a.type==="stretch-ramp"){let A=a;k=this.renderLegendForRamp(A,n.opacity)}else if(P)k=g("instant-apps-interactive-legend-relationship",{class:K(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:s,legendElement:a,messages:this.messages});else if(a.type==="pie-chart-ramp"){let A=a;k=this.renderPieChartRamp(A)}else if(a.type==="univariate-above-and-below-ramp"){let A=a;k=this.renderUnivariateAboveAndBelowRamp(A,n.opacity,c)}else if(a.type==="univariate-color-size-ramp"){let A=a;k=this.renderUnivariateColorSizeRamp(A,n.opacity,c)}if(!k)return null;let x=a.title,z=null;if(typeof x=="string")z=x;else if(x){let A=x,$=this.getTitle(this.messages,A,_||b);this.isRendererTitle(_||b)?"title"in x&&(z=`${x.title} (${$})`):z=$}return g("instant-apps-interactive-legend-legend-element",{class:K(this.el),activeLayerInfo:s,isSizeRamp:L,isChild:!!o,isColorRamp:_,isRelationshipRamp:P,isInteractive:R,zoomTo:this.zoomTo,legendElement:a,titleText:z,legendvm:this.legendvm,legendElementIndex:l,messages:this.messages},g("div",{slot:"content"},k))}renderPieChartRamp(a){return g("div",{innerHTML:`${a.preview?.outerHTML}`})}renderUnivariateAboveAndBelowRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=nt(a,n);if(!s)return null;let o=he(s,"above",!0),u=he(s,"below",!0),_=12,b=ge(l,this.symbolUtils,{width:_,height:o,rampAlignment:"vertical",opacity:n,type:"above",effectList:c}),L=ge(l,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:n,type:"below",effectList:c}),k=De(s),R=s.infos.map(U=>U.label),P=R.map((U,M)=>M===0?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):M===2?g("div",null):null),x=R.length-1,z=Math.floor(R.length/2),A=R.map((U,M)=>M===z||M===x?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):null),$={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${k}px`},J={height:`${o}px`},X={height:`${u}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map((U,M)=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:$,innerHTML:U?.preview?.outerHTML??""}),!b&&M%2===0?g("div",{class:m.layerInfo},R[M]):null))),b?g("div",{style:D,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:J},P))),g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},L)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:X},A)))):null)}renderUnivariateColorSizeRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=st(a);if(!s)return null;let o=De(s),u=12,_=he(s,"full",!1),b=ge(l,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:n,type:"full",effectList:c}),L=s.infos.length-1,k=s.infos.map((z,A)=>A===0||A===L?g("div",{class:z.label?l?m.univariateAboveAndBelowLabel:m.rampLabel:""},z.label):null),R={display:"table-cell",verticalAlign:"middle"},P={marginTop:`${o}px`},x={height:`${_}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map(z=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:R,innerHTML:z?.preview?.outerHTML??""})))),g("div",{style:P,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:x},k)))))}renderLegendForRamp(a,n){let c=a.infos,s=a.type==="opacity-ramp",l=a.type==="heatmap-ramp",o=a.type==="stretch-ramp",u=a.preview,_=s?m.opacityRamp:"";u&&(u.classList.add(m.colorRamp),_&&u.classList.add(_)),n!=null&&u&&(u.style.opacity=n.toString());let b=c.map(R=>{let P;if(l){let x=this.messages[R.label];P=typeof x=="string"?x:R.label}else o?P="value"in R?this.getStretchStopLabel(R):R.label:P=R.label;return g("div",{class:R.label?m.rampLabel:""},P)}),L={width:`${ot}px`},k={height:u?.style?.height};return g("div",{class:m.layerRow},g("div",{class:m.symbolContainer,style:{...L}},g("div",{ref:R=>{R?.firstChild&&R?.firstChild?.remove(),R?.appendChild(u)},class:m.rampContainer})),g("div",{class:m.layerInfo},g("div",{class:m.rampLabelsContainer,style:{...k}},b)))}getStretchStopLabel(a){let n=this.messages[a.label];return a.label?`${n}: ${typeof a.value=="string"?a.value:this.intl.formatNumber(a.value,{style:"decimal",notation:a.value.toString().includes("e")?"scientific":"standard"})}`:""}renderLegendForElementInfo(a,n,c,s,l,o,u,_,b,L){if("infos"in a)return this.renderLegendForElement(a,n,c,o,u,!0,a);let k=null,R=!rt();if("preview"in a){let{outerHTML:W}=a.preview;k=g("div",{class:m.symbol,innerHTML:W})}else"src"in a&&(k=this.renderImage(a,n,R));if(!k)return null;let P="",x=s?` ${m.sizeRamp}`:"",z,A=ze(n),$=$e(A,L);if(E.data){let W=xe(A,n,a,$,_),Y=$?$?.nestedInfos:A,q=Pe(Y);z=A?.categories?.size===1?!W?.selected:q||W?.selected}let D="label"in a?a.label:null,J=$&&!("value"in a)?!1:b,X=B.get("compact"),U=this.getTitle(this.messages,D,!1)||"",M=$?l.title:D??n?.id;return J?g("button",{onClick:this.applyFilter(a,n,_,L),class:`${m.layerRow} ${m.interactiveLayerRow}${z?` ${m.infoSelected}`:""}`,title:X?`${U}`:void 0,"aria-pressed":z?"true":"false"},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},this.getTitle(this.messages,D,!1)||""),this.featureCount&&!X?g("instant-apps-interactive-legend-count",{class:K(this.el),categoryId:M,activeLayerInfo:o,legendvm:this.legendvm,messages:this.messages,selected:!!z,legendElement:l,infoIndex:_}):null):g("div",{class:m.layerRow},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},U))}renderImage(a,n,c){let{label:s,src:l,opacity:o}=a,u=c?` ${m.imageryLayerStretchedImage}`:"",_=c?"":` ${m.symbol}`,b={opacity:`${o??n.opacity}`};return g("img",{alt:this.getTitle(this.messages,s,!1),src:l,width:a.width,height:a.height,class:`$${u}${_}`,style:b})}getTitle(a,n,c){if(!n)return;if(typeof n=="string"||typeof n=="number")return n;if("value"in n||"unit"in n){let o=typeof a?.dotValue=="string"?a.dotValue:"";return this.intl.substitute(o,n)}if("colorName"in n||"bandName"in n){let{colorName:o,bandName:u}=n,_=a[o],b=typeof a[u]=="string"?a[u]:u;return`${_}: ${b}`}if("showCount"in n)return n.showCount?a.clusterCountTitle:null;let s=null;if(c){let o=n;s=o.ratioPercentTotal?"showRatioPercentTotal":o.ratioPercent?"showRatioPercent":o.ratio?"showRatio":n.normField?"showNormField":n.field?"showField":null}else if(this.isRendererTitle(c)){let o=n;s=o.normField?"showNormField":o.normByPct?"showNormPct":o.field?"showField":null}let l=s==="showField"?"{field}":typeof s=="string"?a[s]:"";return s?this.intl?.substitute(l,{field:n.field,normField:n.normField}):""}isRendererTitle(a){return!a}async setupWatchersAndListeners(){let a=this.legendvm?.view?.map?.allLayers?.filter(s=>s?.type==="feature"),n=[];for(let s of a)this.legendvm?.view&&n.push(this.legendvm?.view?.whenLayerView(s));let c=[];try{c=await Promise.all(n)}catch(s){console.error(s)}for(let s of c){let l=`fLayerViewScale-${s.layer.id}`;!this.handles?.has(l)&&s&&this.handles?.add(s.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(s.layer).catch(o=>{console.error(o)})}),l)}a?.forEach(s=>{let l=`fLayer-${s?.id}`;this.handles?.has(l)||this.handles?.add(this.reactiveUtils?.watch(()=>s?.visible,()=>{this.createDataForLayer(s).catch(o=>{console.error(o)})}),l)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",s=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>s.children,"change",()=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).catch(l=>{console.error(l)})}))}).catch(l=>{console.error(l)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})}))}async createDataForLayer(a){let c=B.get("data")?.[a?.id],l=Ue(this.legendvm?.activeLayerInfos)?.find(o=>o?.layer?.id===a?.id);if(!c&&l){let o=await Ae(this.legendvm,l,this.reactiveUtils);if(fe({intLegendLayerData:o,layerId:a?.id}),this.featureCount){let u=await le(this.legendvm,E.data);B.set("data",{...E.data,...u})}}}applyFilter(a,n,c,s){return async()=>{let l={...E.data?.[n?.id]};s?await ve(l,a,c,this.filterMode,s):await ve(l,a,c,this.filterMode),fe({intLegendLayerData:l,layerId:n?.id})}}get el(){return Ee(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};dt.style=ct;export{dt as instant_apps_interactive_legend_classic};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as Sn}from"./YZ4LCVJ7.js";import{D as bn,I as wn,c as yn,o as vn}from"./5ELHQQNT.js";import"./MO6ELGZS.js";function vi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||bi(n)||wi(n)||Si(n))}function bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function wi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Si(e){return!e.user&&e.ipCntryCode==="US"}var _e={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},xr="esri-telemetry";function Oi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!Ei(e)||e.body)&&t()})}function xi(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${xr}="${n}"]`)}function Ei(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:f,onerror:h}=e;if(typeof window>"u")throw new Ze("Window is undefined: Cannot add script element.");if(xi(e)){console.log(`script (${r||i}) is already present, skipping`);return}let c=ki({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:f,onerror:h});return o==="body"?document.body.appendChild(c):document.head.appendChild(c)}var Ze=class extends Error{};function ki({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let f=document.createElement("script");return e&&(f.id=e),t&&f.setAttribute(`data-${xr}`,t),a&&(f.src=a),o&&(f.innerText=o),f.type=n,f.async=r,f.defer=i,s&&(f.onload=s),u&&(f.onerror=u),f}function Ai(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var Ii=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],It=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=vi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=Ii.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=_e.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=30*60*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){_e.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){_e.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(ji(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function ji(e,t){return function(n,[r,i]){return Pi(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function Pi(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function nn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var jt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Ai(this._getScripts())}async init(){if(typeof window>"u")throw new Ze("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Oi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=nn(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},On="TELEMETRY_COGNITO_CREDENTIALS";function Ti(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=_e.get(On);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(_e.set(On,o),o))}function Er({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:_i(t,r),value:e[r]}:{key:r,value:Ni(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function Ni(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function _i(e,t){return`dimension${e[t]}`}var Ci=["size","duration","position","number","count"];function kr(e,t={}){return Object.keys(e).filter(n=>t[n]||Ci.includes(n)).map(n=>t[n]?{key:Mi(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function Mi(e,t){return`metric${e[t]}`}function Di({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=kr(e,n),u=Er({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),f=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(f.referrer=document.referrer),typeof window<"u"&&!f.hostname&&(f.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),f.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,f}function Ui({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=kr(n,i),a=Er({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:f,pathname:h}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:f,path:e||h,pageUrl:e||h,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function xn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var Fe="undefined",En="object",Li=function(){},kn="__",et=typeof process<"u"?process:{};et.env&&et.env.NODE_ENV;var $e=typeof document<"u";et.versions!=null&&et.versions.node!=null;typeof Deno<"u"&&Deno.core;$e&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent!==void 0&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Ar(e,t){return t.charAt(0)[e]()+t.slice(1)}var Ri=Ar.bind(null,"toUpperCase"),zi=Ar.bind(null,"toLowerCase");function Wi(e){return Ir(e)?Ri("null"):typeof e=="object"?Hi(e):Object.prototype.toString.call(e).slice(8,-1)}function tt(e,t){t===void 0&&(t=!0);var n=Wi(e);return t?zi(n):n}function He(e,t){return typeof t===e}var Pt=He.bind(null,"function"),Tt=He.bind(null,"string");He.bind(null,"undefined");He.bind(null,"boolean");He.bind(null,"symbol");function Ir(e){return e===null}function Vi(e){return tt(e)==="number"&&!isNaN(e)}function $i(e){return tt(e)==="array"}function Hi(e){return Pt(e.constructor)?e.constructor.name:null}function Gi(e){return e instanceof Error||Tt(e.message)&&e.constructor&&Vi(e.constructor.stackTraceLimit)}function jr(e,t){if(typeof t!="object"||Ir(t))return!1;if(t instanceof e)return!0;var n=tt(new e(""));if(Gi(t))for(;t;){if(tt(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}jr.bind(null,TypeError);jr.bind(null,SyntaxError);function at(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Ki(e,t):n}function Ki(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function st(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}st(at,"form");st(at,"button");st(at,"input");st(at,"select");function Fi(e){return e?$i(e)?e:[e]:[]}function An(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function qi(){if($e){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Xi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Bi(e){return function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=An(n[1]),a=An(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var f=u.split("[");f.length>1&&(Ji(r,f.map(function(h){return h.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r}(function(t){return $e&&window.location.search.substring(1)}())}function Ji(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function be(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var Ce="global",ke=kn+"global"+kn,Ae=typeof self===En&&self.self===self&&self||typeof global===En&&global.global===global&&global||void 0;function ce(e){return Ae[ke][e]}function se(e,t){return Ae[ke][e]=t}function we(e){delete Ae[ke][e]}function le(e,t,n){var r;try{if(ut(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ae[ke]||(Ae[ke]={});var qe={};function ut(e){if(typeof qe[e]!==Fe)return qe[e];try{var t=window[e];t.setItem(Fe,Fe),t.removeItem(Fe)}catch{return qe[e]=!1}return qe[e]=!0}var In,ze="__",Nt=typeof process<"u"?process:{};(In=Nt.env)!=null&&In.NODE_ENV;var ue=typeof window<"u";Nt.versions!=null&&Nt.versions.node!=null;typeof Deno<"u"&&Deno.core;ue&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function ct(e,t){return typeof t===e}var ie=ct.bind(null,"function"),Qe=ct.bind(null,"string");ct.bind(null,"undefined");var Yi=ct.bind(null,"boolean");function Qi(e){return Object.prototype.toString.call(e)==="[object Array]"}function Zi(e){return e&&(typeof e=="object"||e!==null)}function te(e){if(!Zi(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eo(e){if(Array.isArray(e))return _t(e)}function to(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pr(e,t){if(e){if(typeof e=="string")return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _t(e,t)}}function no(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as Sn}from"./SOLDJVDR.js";import{D as bn,I as wn,c as yn,o as vn}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";function vi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||bi(n)||wi(n)||Si(n))}function bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function wi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Si(e){return!e.user&&e.ipCntryCode==="US"}var _e={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},xr="esri-telemetry";function Oi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!Ei(e)||e.body)&&t()})}function xi(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${xr}="${n}"]`)}function Ei(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:f,onerror:h}=e;if(typeof window>"u")throw new Ze("Window is undefined: Cannot add script element.");if(xi(e)){console.log(`script (${r||i}) is already present, skipping`);return}let c=ki({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:f,onerror:h});return o==="body"?document.body.appendChild(c):document.head.appendChild(c)}var Ze=class extends Error{};function ki({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let f=document.createElement("script");return e&&(f.id=e),t&&f.setAttribute(`data-${xr}`,t),a&&(f.src=a),o&&(f.innerText=o),f.type=n,f.async=r,f.defer=i,s&&(f.onload=s),u&&(f.onerror=u),f}function Ai(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var Ii=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],It=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=vi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=Ii.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=_e.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=30*60*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){_e.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){_e.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(ji(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function ji(e,t){return function(n,[r,i]){return Pi(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function Pi(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function nn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var jt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Ai(this._getScripts())}async init(){if(typeof window>"u")throw new Ze("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Oi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=nn(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},On="TELEMETRY_COGNITO_CREDENTIALS";function Ti(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=_e.get(On);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(_e.set(On,o),o))}function Er({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:_i(t,r),value:e[r]}:{key:r,value:Ni(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function Ni(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function _i(e,t){return`dimension${e[t]}`}var Ci=["size","duration","position","number","count"];function kr(e,t={}){return Object.keys(e).filter(n=>t[n]||Ci.includes(n)).map(n=>t[n]?{key:Mi(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function Mi(e,t){return`metric${e[t]}`}function Di({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=kr(e,n),u=Er({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),f=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(f.referrer=document.referrer),typeof window<"u"&&!f.hostname&&(f.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),f.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,f}function Ui({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=kr(n,i),a=Er({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:f,pathname:h}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:f,path:e||h,pageUrl:e||h,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function xn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var Fe="undefined",En="object",Li=function(){},kn="__",et=typeof process<"u"?process:{};et.env&&et.env.NODE_ENV;var $e=typeof document<"u";et.versions!=null&&et.versions.node!=null;typeof Deno<"u"&&Deno.core;$e&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent!==void 0&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Ar(e,t){return t.charAt(0)[e]()+t.slice(1)}var Ri=Ar.bind(null,"toUpperCase"),zi=Ar.bind(null,"toLowerCase");function Wi(e){return Ir(e)?Ri("null"):typeof e=="object"?Hi(e):Object.prototype.toString.call(e).slice(8,-1)}function tt(e,t){t===void 0&&(t=!0);var n=Wi(e);return t?zi(n):n}function He(e,t){return typeof t===e}var Pt=He.bind(null,"function"),Tt=He.bind(null,"string");He.bind(null,"undefined");He.bind(null,"boolean");He.bind(null,"symbol");function Ir(e){return e===null}function Vi(e){return tt(e)==="number"&&!isNaN(e)}function $i(e){return tt(e)==="array"}function Hi(e){return Pt(e.constructor)?e.constructor.name:null}function Gi(e){return e instanceof Error||Tt(e.message)&&e.constructor&&Vi(e.constructor.stackTraceLimit)}function jr(e,t){if(typeof t!="object"||Ir(t))return!1;if(t instanceof e)return!0;var n=tt(new e(""));if(Gi(t))for(;t;){if(tt(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}jr.bind(null,TypeError);jr.bind(null,SyntaxError);function at(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Ki(e,t):n}function Ki(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function st(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}st(at,"form");st(at,"button");st(at,"input");st(at,"select");function Fi(e){return e?$i(e)?e:[e]:[]}function An(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function qi(){if($e){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Xi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Bi(e){return function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=An(n[1]),a=An(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var f=u.split("[");f.length>1&&(Ji(r,f.map(function(h){return h.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r}(function(t){return $e&&window.location.search.substring(1)}())}function Ji(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function be(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var Ce="global",ke=kn+"global"+kn,Ae=typeof self===En&&self.self===self&&self||typeof global===En&&global.global===global&&global||void 0;function ce(e){return Ae[ke][e]}function se(e,t){return Ae[ke][e]=t}function we(e){delete Ae[ke][e]}function le(e,t,n){var r;try{if(ut(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ae[ke]||(Ae[ke]={});var qe={};function ut(e){if(typeof qe[e]!==Fe)return qe[e];try{var t=window[e];t.setItem(Fe,Fe),t.removeItem(Fe)}catch{return qe[e]=!1}return qe[e]=!0}var In,ze="__",Nt=typeof process<"u"?process:{};(In=Nt.env)!=null&&In.NODE_ENV;var ue=typeof window<"u";Nt.versions!=null&&Nt.versions.node!=null;typeof Deno<"u"&&Deno.core;ue&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function ct(e,t){return typeof t===e}var ie=ct.bind(null,"function"),Qe=ct.bind(null,"string");ct.bind(null,"undefined");var Yi=ct.bind(null,"boolean");function Qi(e){return Object.prototype.toString.call(e)==="[object Array]"}function Zi(e){return e&&(typeof e=="object"||e!==null)}function te(e){if(!Zi(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eo(e){if(Array.isArray(e))return _t(e)}function to(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pr(e,t){if(e){if(typeof e=="string")return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _t(e,t)}}function no(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(e){return eo(e)||to(e)||Pr(e)||no()}function Y(e){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}function jn(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){n(f);return}s.done?t(u):Promise.resolve(u).then(r,i)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){jn(o,r,i,a,s,"next",u)}function s(u){jn(o,r,i,a,s,"throw",u)}a(void 0)})}}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pn(Object(n),!0).forEach(function(r){pe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Tr={exports:{}};(function(e){var t=function(n){var r=Object.prototype,i=r.hasOwnProperty,o,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function h(g,y,l){return Object.defineProperty(g,y,{value:l,enumerable:!0,configurable:!0,writable:!0}),g[y]}try{h({},"")}catch{h=function(g,y,l){return g[y]=l}}function c(g,y,l,p){var b=y&&y.prototype instanceof x?y:x,k=Object.create(b.prototype),D=new N(p||[]);return k._invoke=W(g,l,D),k}n.wrap=c;function m(g,y,l){try{return{type:"normal",arg:g.call(y,l)}}catch(p){return{type:"throw",arg:p}}}var S="suspendedStart",O="suspendedYield",j="executing",I="completed",d={};function x(){}function _(){}function E(){}var P={};h(P,s,function(){return this});var C=Object.getPrototypeOf,M=C&&C(C(U([])));M&&M!==r&&i.call(M,s)&&(P=M);var z=E.prototype=x.prototype=Object.create(P);_.prototype=E,h(z,"constructor",E),h(E,"constructor",_),_.displayName=h(E,f,"GeneratorFunction");function F(g){["next","throw","return"].forEach(function(y){h(g,y,function(l){return this._invoke(y,l)})})}n.isGeneratorFunction=function(g){var y=typeof g=="function"&&g.constructor;return y?y===_||(y.displayName||y.name)==="GeneratorFunction":!1},n.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,E):(g.__proto__=E,h(g,f,"GeneratorFunction")),g.prototype=Object.create(z),g},n.awrap=function(g){return{__await:g}};function H(g,y){function l(k,D,R,V){var $=m(g[k],g,D);if($.type==="throw")V($.arg);else{var K=$.arg,G=K.value;return G&&typeof G=="object"&&i.call(G,"__await")?y.resolve(G.__await).then(function(B){l("next",B,R,V)},function(B){l("throw",B,R,V)}):y.resolve(G).then(function(B){K.value=B,R(K)},function(B){return l("throw",B,R,V)})}}var p;function b(k,D){function R(){return new y(function(V,$){l(k,D,V,$)})}return p=p?p.then(R,R):R()}this._invoke=b}F(H.prototype),h(H.prototype,u,function(){return this}),n.AsyncIterator=H,n.async=function(g,y,l,p,b){b===void 0&&(b=Promise);var k=new H(c(g,y,l,p),b);return n.isGeneratorFunction(y)?k:k.next().then(function(D){return D.done?D.value:k.next()})};function W(g,y,l){var p=S;return function(b,k){if(p===j)throw new Error("Generator is already running");if(p===I){if(b==="throw")throw k;return T()}for(l.method=b,l.arg=k;;){var D=l.delegate;if(D){var R=q(D,l);if(R){if(R===d)continue;return R}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(p===S)throw p=I,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);p=j;var V=m(g,y,l);if(V.type==="normal"){if(p=l.done?I:O,V.arg===d)continue;return{value:V.arg,done:l.done}}else V.type==="throw"&&(p=I,l.method="throw",l.arg=V.arg)}}}function q(g,y){var l=g.iterator[y.method];if(l===o){if(y.delegate=null,y.method==="throw"){if(g.iterator.return&&(y.method="return",y.arg=o,q(g,y),y.method==="throw"))return d;y.method="throw",y.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var p=m(l,g.iterator,y.arg);if(p.type==="throw")return y.method="throw",y.arg=p.arg,y.delegate=null,d;var b=p.arg;if(!b)return y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,d;if(b.done)y[g.resultName]=b.value,y.next=g.nextLoc,y.method!=="return"&&(y.method="next",y.arg=o);else return b;return y.delegate=null,d}F(z),h(z,f,"Generator"),h(z,s,function(){return this}),h(z,"toString",function(){return"[object Generator]"});function w(g){var y={tryLoc:g[0]};1 in g&&(y.catchLoc=g[1]),2 in g&&(y.finallyLoc=g[2],y.afterLoc=g[3]),this.tryEntries.push(y)}function v(g){var y=g.completion||{};y.type="normal",delete y.arg,g.completion=y}function N(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(w,this),this.reset(!0)}n.keys=function(g){var y=[];for(var l in g)y.push(l);return y.reverse(),function p(){for(;y.length;){var b=y.pop();if(b in g)return p.value=b,p.done=!1,p}return p.done=!0,p}};function U(g){if(g){var y=g[s];if(y)return y.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var l=-1,p=function b(){for(;++l<g.length;)if(i.call(g,l))return b.value=g[l],b.done=!1,b;return b.value=o,b.done=!0,b};return p.next=p}}return{next:T}}n.values=U;function T(){return{value:o,done:!0}}return N.prototype={constructor:N,reset:function(g){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(v),!g)for(var y in this)y.charAt(0)==="t"&&i.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=o)},stop:function(){this.done=!0;var g=this.tryEntries[0],y=g.completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var y=this;function l(V,$){return k.type="throw",k.arg=g,y.next=V,$&&(y.method="next",y.arg=o),!!$}for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p],k=b.completion;if(b.tryLoc==="root")return l("end");if(b.tryLoc<=this.prev){var D=i.call(b,"catchLoc"),R=i.call(b,"finallyLoc");if(D&&R){if(this.prev<b.catchLoc)return l(b.catchLoc,!0);if(this.prev<b.finallyLoc)return l(b.finallyLoc)}else if(D){if(this.prev<b.catchLoc)return l(b.catchLoc,!0)}else if(R){if(this.prev<b.finallyLoc)return l(b.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(g,y){for(var l=this.tryEntries.length-1;l>=0;--l){var p=this.tryEntries[l];if(p.tryLoc<=this.prev&&i.call(p,"finallyLoc")&&this.prev<p.finallyLoc){var b=p;break}}b&&(g==="break"||g==="continue")&&b.tryLoc<=y&&y<=b.finallyLoc&&(b=null);var k=b?b.completion:{};return k.type=g,k.arg=y,b?(this.method="next",this.next=b.finallyLoc,d):this.complete(k)},complete:function(g,y){if(g.type==="throw")throw g.arg;return g.type==="break"||g.type==="continue"?this.next=g.arg:g.type==="return"?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):g.type==="normal"&&y&&(this.next=y),d},finish:function(g){for(var y=this.tryEntries.length-1;y>=0;--y){var l=this.tryEntries[y];if(l.finallyLoc===g)return this.complete(l.completion,l.afterLoc),v(l),d}},catch:function(g){for(var y=this.tryEntries.length-1;y>=0;--y){var l=this.tryEntries[y];if(l.tryLoc===g){var p=l.completion;if(p.type==="throw"){var b=p.arg;v(l)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(g,y,l){return this.delegate={iterator:U(g),resultName:y,nextLoc:l},this.method==="next"&&(this.arg=o),d}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Tr);var J=Tr.exports,de="function",ae="undefined",De="reducer",Nr="@@redux/",Ct=Nr+"INIT",ro=Nr+Math.random().toString(36),Tn=function(){return(typeof Symbol>"u"?"undefined":Y(Symbol))===de&&Symbol.observable||"@@observable"}(),Xe=" != "+de;function _r(e,t,n){if(Y(t)===de&&Y(n)===ae&&(n=t,t=void 0),Y(n)!==ae){if(Y(n)!==de)throw new Error("enhancer"+Xe);return n(_r)(e,t)}if(Y(e)!==de)throw new Error(De+Xe);var r=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function f(){return i}function h(O){if(Y(O)!==de)throw new Error("Listener"+Xe);var j=!0;return u(),a.push(O),function(){if(j){j=!1,u();var I=a.indexOf(O);a.splice(I,1)}}}function c(O){if(!te(O))throw new Error("Act != obj");if(Y(O.type)===ae)throw new Error("ActType "+ae);if(s)throw new Error("Dispatch in "+De);try{s=!0,i=r(i,O)}finally{s=!1}for(var j=o=a,I=0;I<j.length;I++){var d=j[I];d()}return O}function m(O){if(Y(O)!==de)throw new Error("next "+De+Xe);r=O,c({type:Ct})}function S(){var O=h;return pe({subscribe:function(j){if(Y(j)!=="object")throw new TypeError("Observer != obj");function I(){j.next&&j.next(f())}I();var d=O(I);return{unsubscribe:d}}},Tn,function(){return this})}return c({type:Ct}),pe({dispatch:c,subscribe:h,getState:f,replaceReducer:m},Tn,S)}function io(e,t){var n=t&&t.type,r=n&&n.toString()||"?";return"action "+r+De+" "+e+" returns "+ae}function oo(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Ct});if(Y(r)===ae||Y(n(void 0,{type:ro}))===ae)throw new Error(De+" "+t+" "+ae)})}function ao(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];Y(e[i])===de&&(n[i]=e[i])}var o=Object.keys(n),a;try{oo(n)}catch(s){a=s}return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(a)throw a;for(var f=!1,h={},c=0;c<o.length;c++){var m=o[c],S=n[m],O=s[m],j=S(O,u);if(Y(j)===ae){var I=io(m,u);throw new Error(I)}h[m]=j,f=f||j!==O}return f?h:s}}function Ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function so(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(i,o,a){var s=r(i,o,a),u=s.dispatch,f=[],h={getState:s.getState,dispatch:function(c){return u(c)}};return f=t.map(function(c){return c(h)}),u=Ie.apply(void 0,Me(f))(s.dispatch),A(A({},s),{},{dispatch:u})}}}var he=ze+"anon_id",ye=ze+"user_id",xe=ze+"user_traits",Mt="analytics",fe="userId",Se="anonymousId",uo="https://lytics.dev/errors/",nt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Dt=["name","EVENTS","config","loaded"],co={registerPluginType:function(e){return"registerPlugin:".concat(e)},pluginReadyType:function(e){return"ready:".concat(e)}},lo=nt.reduce(function(e,t){return e[t]=t,e},co),L=lo;function fo(e){return nt.includes(e)}var Nn=/^utm_/,_n=/^an_prop_/,Cn=/^an_trait_/;function po(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===L.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,u=i.initialUser,f=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(he,a.anonymousId),f||t(ye,a.userId),u.traits&&t(xe,A(A({},f&&s.traits?s.traits:{}),u.traits));var h=Object.keys(i.params);if(h.length){var c=o.an_uid,m=o.an_event,S=h.reduce(function(O,j){if(j.match(Nn)||j.match(/^(d|g)clid/)){var I=j.replace(Nn,""),d=I==="campaign"?"name":I;O.campaign[d]=o[j]}return j.match(_n)&&(O.props[j.replace(_n,"")]=o[j]),j.match(Cn)&&(O.traits[j.replace(Cn,"")]=o[j]),O},{campaign:{},props:{},traits:{}});n.dispatch(A(A({type:L.params,raw:o},S),c?{userId:c}:{})),c&&setTimeout(function(){return e.identify(c,S.traits)},0),m&&setTimeout(function(){return e.track(m,S.props)},0),Object.keys(S.campaign).length&&n.dispatch({type:L.campaign,campaign:S.campaign})}}return r(i)}}}}function ho(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.type===L.setItemEnd){if(n.key===he)return A(A({},t),{anonymousId:n.value});if(n.key===ye)return A(A({},t),{userId:n.value})}switch(n.type){case L.identify:return Object.assign({},t,{userId:n.userId,traits:A(A({},t.traits),n.traits)});case L.reset:return[ye,he,xe].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function Cr(e){return{userId:e.getItem(ye),anonymousId:e.getItem(he),traits:e.getItem(xe)}}var rn=function(e){return ze+"TEMP"+ze+e};function go(e){return function(t,n,r){var i=n.getState("user")[t];if(i)return i;if(r&&te(r)&&r[t])return r[t];var o=Cr(e)[t];return o||ce(rn(t))||null}}function mo(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var u=s.userId,f=s.traits,h=s.options;if(s.type===L.reset&&([ye,xe,he].forEach(function(S){r(S)}),[fe,Se,"traits"].forEach(function(S){we(rn(S))})),s.type===L.identify){i(he)||n(he,be());var c=i(ye),m=i(xe)||{};c&&c!==u&&o.dispatch({type:L.userIdChanged,old:{userId:c,traits:m},new:{userId:u,traits:f},options:h}),u&&n(ye,u),f&&n(xe,A(A({},m),f))}return a(s)}}}}var Ne={};function Mr(e,t){Ne[e]&&ie(Ne[e])&&(Ne[e](t),delete Ne[e])}function Dr(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(A(A({},e),{},{queue:!0})):yo(10).then(function(o){return Dr(e,t,n-10).then(r,i)})})}function yo(e){return new Promise(function(t){return setTimeout(t,e)})}function Ur(e,t,n){var r=t(),i=e.getState(),o=i.plugins,a=i.context,s=i.queue,u=i.user,f=!a.offline;if(f&&s&&s.actions&&s.actions.length){var h=s.actions.reduce(function(m,S,O){var j=o[S.plugin].loaded;return j?(m.process.push(S),m.processIndex.push(O)):(m.requeue.push(S),m.requeueIndex.push(O)),m},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(h.processIndex&&h.processIndex.length){h.processIndex.forEach(function(m){var S=s.actions[m],O=S.plugin,j=S.payload.type,I=r[O][j];if(I&&ie(I)){var d=bo(S.payload,u);I({payload:d,config:o[O].config,instance:n});var x="".concat(j,":").concat(O);e.dispatch(A(A({},d),{},{type:x,_:{called:x,from:"queueDrain"}}))}});var c=s.actions.filter(function(m,S){return!~h.processIndex.indexOf(S)});s.actions=c}}}function vo(e,t,n){return setInterval(function(){return Ur(e,t,n)},3e3)}function bo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[fe,Se].reduce(function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n},e)}function wo(e){if(Array.isArray(e))return e}function So(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Oo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
6
6
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xo(e,t){return wo(e)||So(e,t)||Pr(e,t)||Oo()}function Eo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(e).filter(function(r){var i=n.plugins||{};return Yi(i[r])?i[r]:!(i.all===!1||t[r]&&t[r].enabled===!1)}).map(function(r){return e[r]})}var je=/Start$/,Mn=/^bootstrap/,Dn=/^ready/;function ko(e,t,n,r,i){return Ut.apply(this,arguments)}function Ut(){return Ut=oe(J.mark(function e(t,n,r,i,o){var a,s,u,f,h,c,m,S,O,j,I;return J.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=ie(n)?n():n,s=t.type,u=s.replace(je,""),!(t._&&t._.called)){d.next=5;break}return d.abrupt("return",t);case 5:return f=r.getState(),h=Eo(a,f.plugins,t.options),s===L.initializeStart&&t.fromEnable&&(h=Object.keys(f.plugins).filter(function(x){var _=f.plugins[x];return t.plugins.includes(x)&&!_.initialized}).map(function(x){return a[x]})),c=h.map(function(x){return x.name}),m=Io(s,h),d.next=12,mt({action:t,data:{exact:m.before,namespaced:m.beforeNS},state:f,allPlugins:a,allMatches:m,instance:r,store:i,EVENTS:o});case 12:if(S=d.sent,!Lr(S,c.length)){d.next=15;break}return d.abrupt("return",S);case 15:if(s!==u){d.next=19;break}O=S,d.next=22;break;case 19:return d.next=21,mt({action:A(A({},S),{},{type:u}),data:{exact:m.during,namespaced:m.duringNS},state:f,allPlugins:a,allMatches:m,instance:r,store:i,EVENTS:o});case 21:O=d.sent;case 22:if(!s.match(je)){d.next=28;break}return j="".concat(u,"End"),d.next=26,mt({action:A(A({},O),{},{type:j}),data:{exact:m.after,namespaced:m.afterNS},state:f,allPlugins:a,allMatches:m,instance:r,store:i,EVENTS:o});case 26:I=d.sent,I.meta&&I.meta.hasCallback&&Mr(I.meta.rid,{payload:I});case 28:return d.abrupt("return",S);case 29:case"end":return d.stop()}},e)})),Ut.apply(this,arguments)}function mt(e){return Lt.apply(this,arguments)}function Lt(){return Lt=oe(J.mark(function e(t){var n,r,i,o,a,s,u,f,h,c,m,S,O,j,I,d,x,_;return J.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return n=t.data,r=t.action,i=t.instance,o=t.state,a=t.allPlugins,s=t.allMatches,u=t.store,f=t.EVENTS,h=o.plugins,c=o.context,m=r.type,S=m.match(je),O=n.exact.map(function(P){return P.pluginName}),S&&(O=s.during.map(function(P){return P.pluginName})),j=jo(i,O),I=n.exact.reduce(function(P,C){var M=C.pluginName,z=C.methodName,F=!1;return!z.match(/^initialize/)&&!z.match(/^reset/)&&(F=!h[M].loaded),c.offline&&z.match(/^(page|track|identify)/)&&(F=!0),P["".concat(M)]=F,P},{}),E.next=10,n.exact.reduce(function(){var P=oe(J.mark(function C(M,z,F){var H,W,q;return J.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return H=z.pluginName,w.next=3,M;case 3:if(W=w.sent,!(n.namespaced&&n.namespaced[H])){w.next=11;break}return w.next=7,n.namespaced[H].reduce(function(){var v=oe(J.mark(function N(U,T,g){var y,l,p,b;return J.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return l=function(D,R,V){return function($,K){var G=V||R;return A(A({},D),{},{abort:{reason:$,plugins:K||[R],caller:m,from:G}})}},k.next=3,U;case 3:if(y=k.sent,!(!T.method||!ie(T.method))){k.next=6;break}return k.abrupt("return",y);case 6:return No(T.methodName,T.pluginName),k.next=9,T.method({payload:y,instance:i,abort:l(y,H,T.pluginName),config:Un(T.pluginName,h,a),plugins:h});case 9:return p=k.sent,b=te(p)?p:{},k.abrupt("return",Promise.resolve(A(A({},y),b)));case 12:case"end":return k.stop()}},N)}));return function(N,U,T){return v.apply(this,arguments)}}(),Promise.resolve(r));case 7:q=w.sent,W[H]=q,w.next=12;break;case 11:W[H]=r;case 12:return w.abrupt("return",Promise.resolve(W));case 13:case"end":return w.stop()}},C)}));return function(C,M,z){return P.apply(this,arguments)}}(),Promise.resolve({}));case 10:return d=E.sent,E.next=13,n.exact.reduce(function(){var P=oe(J.mark(function C(M,z,F){var H,W,q,w,v,N,U,T,g,y,l,p,b;return J.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return H=n.exact.length===F+1,W=z.pluginName,q=a[W],k.next=5,M;case 5:if(w=k.sent,v=d[W]?d[W]:{},S&&(v=w),!vt(v,W)){k.next=11;break}return yt({data:v,method:m,instance:i,pluginName:W,store:u}),k.abrupt("return",Promise.resolve(w));case 11:if(!vt(w,W)){k.next=14;break}return H&&yt({data:w,method:m,instance:i,store:u}),k.abrupt("return",Promise.resolve(w));case 14:if(!(I.hasOwnProperty(W)&&I[W]===!0)){k.next=17;break}return u.dispatch({type:"queue",plugin:W,payload:v,_:{called:"queue",from:"queueMechanism"}}),k.abrupt("return",Promise.resolve(w));case 17:return N=j(d[W],a[W]),k.next=20,q[m]({abort:N.abort,payload:v,instance:i,config:Un(W,h,a),plugins:h});case 20:return U=k.sent,T=te(U)?U:{},g=A(A({},w),T),y=d[W],vt(y,W)?yt({data:y,method:m,instance:i,pluginName:W,store:u}):(l="".concat(m,":").concat(W),p=(l.match(/:/g)||[]).length,p<2&&!m.match(Mn)&&!m.match(Dn)&&(b=S?g:v,i.dispatch(A(A({},b),{},{type:l,_:{called:l,from:"submethod"}})))),k.abrupt("return",Promise.resolve(g));case 26:case"end":return k.stop()}},C)}));return function(C,M,z){return P.apply(this,arguments)}}(),Promise.resolve(r));case 13:if(x=E.sent,!(!m.match(je)&&!m.match(/^registerPlugin/)&&!m.match(Dn)&&!m.match(Mn)&&!m.match(/^params/)&&!m.match(/^userIdChanged/))){E.next=21;break}if(f.plugins.includes(m),!(x._&&x._.originalAction===m)){E.next=18;break}return E.abrupt("return",x);case 18:_=A(A({},x),{_:{originalAction:x.type,called:x.type,from:"engineEnd"}}),Lr(x,n.exact.length)&&!m.match(/End$/)&&(_=A(A({},_),{type:x.type+"Aborted"})),u.dispatch(_);case 21:return E.abrupt("return",x);case 22:case"end":return E.stop()}},e)})),Lt.apply(this,arguments)}function yt(e){var t=e.data,n=e.method;e.instance;var r=e.pluginName,i=e.store,o=r?":"+r:"",a=n+"Aborted"+o;i.dispatch(A(A({},t),{},{type:a,_:{called:a,from:"abort"}}))}function Un(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function Ln(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function Ao(e){return e.replace(je,"")}function Rn(e,t){var n=Ao(e),r=t?":".concat(t):"",i="".concat(e).concat(r),o="".concat(n).concat(r),a="".concat(n,"End").concat(r);return[i,o,a]}function Io(e,t,n){var r=Rn(e),i=r.map(function(o){return Ln(o,t)});return t.reduce(function(o,a){var s=a.name,u=Rn(e,s),f=u.map(function(O){return Ln(O,t)}),h=xo(f,3),c=h[0],m=h[1],S=h[2];return c.length&&(o.beforeNS[s]=c),m.length&&(o.duringNS[s]=m),S.length&&(o.afterNS[s]=S),o},{before:i[0],beforeNS:{},during:i[1],duringNS:{},after:i[2],afterNS:{}})}function vt(e,t){var n=e.abort;return n?n===!0?!0:zn(n,t)||n&&zn(n.plugins,t):!1}function Lr(e,t){var n=e.abort;if(!n)return!1;if(n===!0||Qe(n))return!0;var r=n.plugins;return We(n)&&n.length===t||We(r)&&r.length===t}function We(e){return Array.isArray(e)}function zn(e,t){return!e||!We(e)?!1:e.includes(t)}function jo(e,t){return function(n,r,i){var o=r.config,a=r.name,s="".concat(a,".").concat(n.type);i&&(s=i.event);var u=n.type.match(je)?Po(a,s,t,i,n):To(n,s);return{payload:_o(n),instance:e,config:o||{},abort:u}}}function Po(e,t,n,r,i){return function(o,a){var s=r?r.name:e,u=a&&We(a)?a:n;if(r&&(u=a&&We(a)?a:[e],!u.includes(e)||u.length!==1))throw new Error("Method ".concat(t," can only abort ").concat(e," plugin. ").concat(JSON.stringify(u)," input valid"));return A(A({},i),{},{abort:{reason:o,plugins:u,caller:t,_:s}})}}function To(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}function No(e,t){var n=Wn(e),r=n&&n.name===t;if(r){var i=Wn(n.method),o=i?"or "+i.method:"";throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use ".concat(n.method," ").concat(o," in ").concat(t," plugin insteadof ").concat(e)].join(`
|
7
7
|
`))}}function Wn(e){var t=e.match(/(.*):(.*)/);return t?{method:t[1],name:t[2]}:!1}function _o(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(te(e[n])?t[n]=Object.assign({},e[n]):t[n]=e[n]),t},{})}function Co(e,t,n){var r={};return function(i){return function(o){return function(){var a=oe(J.mark(function s(u){var f,h,c,m,S,O,j,I,d,x,_,E;return J.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(f=u.type,h=u.abort,c=u.plugins,m=u,!h){P.next=4;break}return P.abrupt("return",o(u));case 4:if(f===L.enablePlugin&&i.dispatch({type:L.initializeStart,plugins:c,disabled:[],fromEnable:!0,meta:u.meta}),f===L.disablePlugin&&setTimeout(function(){return Mr(u.meta.rid,{payload:u})},0),f===L.initializeEnd&&(S=t(),O=Object.keys(S),j=O.filter(function(C){return c.includes(C)}).map(function(C){return S[C]}),I=[],d=[],x=u.disabled,_=j.map(function(C){var M=C.loaded,z=C.name;return Dr(C,M,1e4).then(function(F){return r[z]||(i.dispatch({type:L.pluginReadyType(z),name:z,events:Object.keys(C).filter(function(H){return!Dt.includes(H)})}),r[z]=!0),I=I.concat(z),C}).catch(function(F){if(F instanceof Error)throw new Error(F);return d=d.concat(F.name),F})}),Promise.all(_).then(function(C){var M={plugins:I,failed:d,disabled:x};setTimeout(function(){O.length===_.length+x.length&&i.dispatch(A(A({},{type:L.ready}),M))},0)})),f===L.bootstrap){P.next=13;break}return/^ready:([^:]*)$/.test(f)&&setTimeout(function(){return Ur(i,t,e)},0),P.next=11,ko(u,t,e,i,n);case 11:return E=P.sent,P.abrupt("return",o(E));case 13:return P.abrupt("return",o(m));case 14:case"end":return P.stop()}},s)}));return function(s){return a.apply(this,arguments)}}()}}}function Mo(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===L.setItem||i===L.removeItem){if(r.abort)return n(r);i===L.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}function Do(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Lo=Do(function e(){var t=this;Uo(this,e),pe(this,"before",[]),pe(this,"after",[]),pe(this,"addMiddleware",function(n,r){t[r]=t[r].concat(n)}),pe(this,"removeMiddleware",function(n,r){var i=t[r].findIndex(function(o){return o===n});i!==-1&&(t[r]=[].concat(Me(t[r].slice(0,i)),Me(t[r].slice(i+1))))}),pe(this,"dynamicMiddlewares",function(n){return function(r){return function(i){return function(o){var a={getState:r.getState,dispatch:function(u){return r.dispatch(u)}},s=t[n].map(function(u){return u(a)});return Ie.apply(void 0,Me(s))(i)(o)}}}})});function Ro(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Vn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled;return r[i]={enabled:a,initialized:a?!o.initialize:!1,loaded:a?!!o.loaded():!1,config:o.config||{}},A(A({},t),r)}if(/^initialize:([^:]*)$/.test(n.type)){var s=Vn(n.type,L.initialize),u=e()[s];return!u||!s?t:(r[s]=A(A({},t[s]),{initialized:!0,loaded:!!u.loaded()}),A(A({},t),r))}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=A(A({},t[n.name]),{loaded:!0}),A(A({},t),r);switch(n.type){case L.disablePlugin:return A(A({},t),$n(n.plugins,!1,t));case L.enablePlugin:return A(A({},t),$n(n.plugins,!0,t));default:return t}}}function Vn(e,t){return e.substring(t.length+1,e.length)}function $n(e,t,n){return e.reduce(function(r,i){return r[i]=A(A({},n[i]),{enabled:t}),r},n)}function Rr(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var zo={last:{},history:[]};function Wo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zo,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.event,i=t.properties,o=t.options,a=t.meta;switch(n){case L.track:var s=Rr(A(A({event:r,properties:i},Object.keys(o).length&&{options:o}),{},{meta:a}));return A(A({},e),{last:s,history:e.history.concat(s)});default:return e}}var Vo={actions:[]};function $o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vo,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"queue":var i;return r&&r.type&&r.type===L.identify?i=[t].concat(e.actions):i=e.actions.concat(t),A(A({},e),{},{actions:i});case"dequeue":return[];default:return e}}var zr=/#.*$/;function Ho(){if(ue){for(var e=document.getElementsByTagName("link"),t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}}function Go(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g,n=t.exec(e),r=n&&n[3]?n[3].split("?")[0].replace(zr,""):"";return"/"+r}function Ko(e){var t=Ho();return t?t.match(/\?/)?t:t+e:window.location.href.replace(zr,"")}var Fo=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!ue)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,u=o.hash,f=o.search,h=Ko(f),c={title:n,url:h,path:Go(h),hash:u,search:f,width:a,height:s};return r&&r!==""&&(c.referrer=r),A(A({},c),e)},qo={last:{},history:[]};function Xo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qo,t=arguments.length>1?arguments[1]:void 0,n=t.properties,r=t.options,i=t.meta;switch(t.type){case L.page:var o=Rr(A({properties:n,meta:i},Object.keys(r).length&&{options:r}));return A(A({},e),{last:o,history:e.history.concat(o)});default:return e}}function Bo(){if(!ue)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}var Wr,Vr,$r,Hr;Wr=Bo(),Vr=ue?document.referrer:null,$r=qi(),Hr=Xi();var Hn={initialized:!1,sessionId:be(),app:null,version:null,debug:!1,offline:ue?!navigator.onLine:!1,os:{name:Wr},userAgent:ue?navigator.userAgent:"node",library:{name:Mt,version:"0.10.22"},timezone:Hr,locale:$r,campaign:{},referrer:Vr};function Jo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hn,t=arguments.length>1?arguments[1]:void 0,n=e.initialized,r=t.type,i=t.campaign;switch(r){case L.campaign:return A(A({},e),{campaign:i});case L.offline:return A(A({},e),{offline:!0});case L.online:return A(A({},e),{offline:!1});default:return n?e:A(A(A({},Hn),e),{initialized:!0})}}var Yo=["plugins","reducers","storage"];function Qo(e){return Object.keys(e).reduce(function(t,n){return Yo.includes(n)||(t[n]=e[n]),t},{})}function Zo(e,t,n){if(ue){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function ea(){return Promise.resolve(!navigator.onLine)}function ta(e){var t=function(r){return ea().then(e)},n=Zo.bind(null,"online offline",t);return n(!0),function(r){return n(!1)}}function Gr(){return se(Mt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch,a=function(s){var u=s.action||s;return Ae[ke][Mt].push(u),o(s)};return Object.assign(i,{dispatch:a})}}}function Gn(e){return function(){return Ie(Ie.apply(null,arguments),Gr())}}function bt(e){return e?Qi(e)?e:[e]:[]}function na(e){for(var t=e||Array.prototype.slice.call(arguments),n,r=0;r<t.length;r++)if(ie(t[r])){n=t[r];break}return n}function ra(){return new Date().getTime()}function ia(e,t){return function(n){t&&t(n),e(n)}}function Kn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=be();return t&&(Ne[r]=ia(t,na(n))),A(A({},e),{},{rid:r,ts:ra()},t?{hasCallback:!0}:{})}function oa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(l,p){if(ie(p))return l.middlewares=l.middlewares.concat(p),l;if(p.NAMESPACE&&(p.name=p.NAMESPACE),!p.name)throw new Error(uo+"1");var b=p.EVENTS?Object.keys(p.EVENTS).map(function(K){return p.EVENTS[K]}):[],k=p.enabled!==!1,D=!(p.config&&p.config.enabled===!1);l.pluginEnabled[p.name]=k&&D,delete p.enabled,p.methods&&(l.methods[p.name]=Object.keys(p.methods).reduce(function(K,G){return K[G]=y(p.methods[G]),K},{}),delete p.methods);var R=Object.keys(p),V=R.concat(b),$=new Set(l.events.concat(V));if(l.events=Array.from($),l.pluginsArray=l.pluginsArray.concat(p),l.plugins[p.name])throw new Error(p.name+"AlreadyLoaded");return l.plugins[p.name]=p,l.plugins[p.name].loaded||(l.plugins[p.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:ce,setItem:se,removeItem:we},o=go(i),a=r.plugins,s=r.events.filter(function(l){return!Dt.includes(l)}).sort(),u=new Set(s.concat(nt).filter(function(l){return!Dt.includes(l)})),f=Array.from(u).sort(),h=function(){return a},c=new Lo,m=c.addMiddleware,S=c.removeMiddleware,O=c.dynamicMiddlewares,j=function(){throw new Error("Abort disabled inListener")},I=Bi(),d=Cr(i),x=A(A(A(A({},d),n),I.an_uid?{userId:I.an_uid}:{}),I.an_aid?{anonymousId:I.an_aid}:{});x.anonymousId||(x.anonymousId=be());var _=A({enable:function(l,p){return new Promise(function(b){v.dispatch({type:L.enablePlugin,plugins:bt(l),_:{originalAction:L.enablePlugin}},b,[p])})},disable:function(l,p){return new Promise(function(b){v.dispatch({type:L.disablePlugin,plugins:bt(l),_:{originalAction:L.disablePlugin}},b,[p])})}},r.methods),E={identify:function(){var l=oe(J.mark(function b(k,D,R,V){var $,K,G,B,Ge;return J.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return $=Qe(k)?k:null,K=te(k)?k:D,G=R||{},B=E.user(),se(rn(fe),$),Ge=$||K.userId||o(fe,E,K),Ke.abrupt("return",new Promise(function(yi){v.dispatch(A({type:L.identifyStart,userId:Ge,traits:K||{},options:G,anonymousId:B.anonymousId},B.id&&B.id!==$&&{previousId:B.id}),yi,[D,R,V])}));case 7:case"end":return Ke.stop()}},b)}));function p(b,k,D,R){return l.apply(this,arguments)}return p}(),track:function(){var l=oe(J.mark(function b(k,D,R,V){var $,K,G;return J.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if($=te(k)?k.event:k,!(!$||!Qe($))){B.next=3;break}throw new Error("EventMissing");case 3:return K=te(k)?k:D||{},G=te(R)?R:{},B.abrupt("return",new Promise(function(Ge){v.dispatch({type:L.trackStart,event:$,properties:K,options:G,userId:o(fe,E,D),anonymousId:o(Se,E,D)},Ge,[D,R,V])}));case 6:case"end":return B.stop()}},b)}));function p(b,k,D,R){return l.apply(this,arguments)}return p}(),page:function(){var l=oe(J.mark(function b(k,D,R){var V,$;return J.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return V=te(k)?k:{},$=te(D)?D:{},K.abrupt("return",new Promise(function(G){v.dispatch({type:L.pageStart,properties:Fo(V),options:$,userId:o(fe,E,V),anonymousId:o(Se,E,V)},G,[k,D,R])}));case 3:case"end":return K.stop()}},b)}));function p(b,k,D){return l.apply(this,arguments)}return p}(),user:function(l){if(l===fe||l==="id")return o(fe,E);if(l===Se||l==="anonId")return o(Se,E);var p=E.getState("user");return l?xn(p,l):p},reset:function(l){return new Promise(function(p){v.dispatch({type:L.resetStart},p,l)})},ready:function(l){return E.on(L.ready,l)},on:function(l,p){if(!l||!ie(p))return!1;if(l===L.bootstrap)throw new Error(".on disabled for "+l);var b=/Start$|Start:/;if(l==="*"){var k=function($){return function(K){return function(G){return G.type.match(b)&&p({payload:G,instance:E,plugins:a}),K(G)}}},D=function($){return function(K){return function(G){return G.type.match(b)||p({payload:G,instance:E,plugins:a}),K(G)}}};return m(k,Be),m(D,Je),function(){S(k,Be),S(D,Je)}}var R=l.match(b)?Be:Je,V=function($){return function(K){return function(G){return G.type===l&&p({payload:G,instance:E,plugins:a,abort:j}),K(G)}}};return m(V,R),function(){return S(V,R)}},once:function(l,p){if(!l||!ie(p))return!1;if(l===L.bootstrap)throw new Error(".once disabled for "+l);var b=E.on(l,function(k){var D=k.payload;p({payload:D,instance:E,plugins:a,abort:j}),b()});return b},getState:function(l){var p=v.getState();return l?xn(p,l):Object.assign({},p)},dispatch:function(l){var p=Qe(l)?{type:l}:l;if(fo(p.type))throw new Error("reserved action "+p.type);var b=l._||{},k=A(A({},p),{},{_:A({originalAction:p.type},b)});v.dispatch(k)},enablePlugin:_.enable,disablePlugin:_.disable,plugins:_,storage:{getItem:i.getItem,setItem:function(l,p,b){v.dispatch({type:L.setItemStart,key:l,value:p,options:b})},removeItem:function(l,p){v.dispatch({type:L.removeItemStart,key:l,options:p})}},setAnonymousId:function(l,p){E.storage.setItem(he,l,p)},events:{all:f,core:nt,plugins:s}},P=function(l){return function(p){return function(b){return b.meta||(b.meta=Kn()),p(b)}}},C=r.middlewares.concat([P,O(Be),Co(E,h,{all:f,plugins:s}),Mo(i),po(E),mo(E),O(Je)]),M={context:Jo,user:ho(i),page:Xo,track:Wo,plugins:Ro(h),queue:$o},z=Ie,F=Ie;if(ue&&e.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(z=H({trace:!0,traceLimit:25})),F=function(){return arguments.length===0?Gr():te(Y(arguments[0]))?Gn():Gn().apply(null,arguments)}}var W=Qo(e),q=r.pluginsArray.reduce(function(l,p){var b=p.name,k=p.config,D=p.loaded,R=r.pluginEnabled[b];return l[b]={enabled:R,initialized:R?!p.initialize:!1,loaded:!!D(),config:k||{}},l},{}),w={context:W,user:x,plugins:q},v=_r(ao(A(A({},M),t)),w,F(z(so.apply(void 0,Me(C)))));function N(l){return function(p,b,k){var D=Kn(p.meta,b,bt(k)),R=A(A({},p),{meta:D});return l.apply(null,[R])}}v.dispatch=N(v.dispatch);var U=Object.keys(a);v.dispatch({type:L.bootstrap,plugins:U,config:W,params:I,user:x,initialUser:n,persistedUser:d});var T=U.filter(function(l){return r.pluginEnabled[l]}),g=U.filter(function(l){return!r.pluginEnabled[l]});v.dispatch({type:L.registerPlugins,plugins:U,enabled:r.pluginEnabled}),r.pluginsArray.map(function(l,p){var b=l.bootstrap,k=l.config,D=l.name;b&&ie(b)&&b({instance:E,config:k,payload:l}),v.dispatch({type:L.registerPluginType(D),name:D,enabled:r.pluginEnabled[D],plugin:l}),r.pluginsArray.length===p+1&&v.dispatch({type:L.initializeStart,plugins:T,disabled:g})}),ta(function(l){v.dispatch({type:l?L.offline:L.online})}),vo(v,h,E);function y(l){return function(){for(var p=Array.prototype.slice.call(arguments),b=new Array(l.length),k=0;k<p.length;k++)b[k]=p[k];return b[b.length]=E,l.apply({instance:E},b)}}return E}var Be="before",Je="after",Ue="cookie",me=qr(),on=lt,Kr=lt;function Fr(e){return me?lt(e,"",-1):we(e)}function qr(){if(me!==void 0)return me;var e="cookiecookie";try{lt(e,e),me=document.cookie.indexOf(e)!==-1,Fr(e)}catch{me=!1}return me}function lt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return me===!1&&(a?se(e,t):ce(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var Le="localStorage",aa=ut.bind(null,"localStorage"),an=le("localStorage","getItem",ce),sa=le("localStorage","setItem",se),Xr=le("localStorage","removeItem",we),Re="sessionStorage",ua=ut.bind(null,"sessionStorage");le("sessionStorage","getItem",ce);le("sessionStorage","setItem",se);le("sessionStorage","removeItem",we);var Fn,Br="any",Jr="*",Rt=typeof process<"u"?process:{};(Fn=Rt.env)!=null&&Fn.NODE_ENV;var ca=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;ca&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function ft(e,t){return typeof t===e}ft.bind(null,"function");var la=ft.bind(null,"string"),Oe=ft.bind(null,"undefined");ft.bind(null,"boolean");function fa(e){return e&&(typeof e=="object"||e!==null)}function pa(e){if(!fa(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ee(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(pa(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var da=aa(),ha=ua(),ga=qr();function Yr(e,t){if(e){var n=sn(t),r=!fn(n),i=un(n)?Ee(localStorage.getItem(e)):void 0;if(r&&!Oe(i))return i;var o=cn(n)?Ee(on(e)):void 0;if(r&&o)return o;var a=ln(n)?Ee(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=ce(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function ma(e,t,n){if(e&&!Oe(t)){var r={},i=sn(n),o=JSON.stringify(t),a=!fn(i);return un(i)&&(r[Le]=Ye(Le,t,Ee(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[Le]:cn(i)&&(r[Ue]=Ye(Ue,t,Ee(on(e))),Kr(e,o),a)?r[Ue]:ln(i)&&(r[Re]=Ye(Re,t,Ee(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[Re]:(r[Ce]=Ye(Ce,t,ce(e)),se(e,t),a?r[Ce]:r)}}function ya(e,t){if(e){var n=sn(t),r=Yr(e,Jr),i={};return!Oe(r.localStorage)&&un(n)&&(localStorage.removeItem(e),i[Le]=r.localStorage),!Oe(r.cookie)&&cn(n)&&(Fr(e),i[Ue]=r.cookie),!Oe(r.sessionStorage)&&ln(n)&&(sessionStorage.removeItem(e),i[Re]=r.sessionStorage),!Oe(r.global)&&pt(n,Ce)&&(we(e),i[Ce]=r.global),i}}function sn(e){return e?la(e)?e:e.storage:Br}function un(e){return da&&pt(e,Le)}function cn(e){return ga&&pt(e,Ue)}function ln(e){return ha&&pt(e,Re)}function fn(e){return e===Jr||e==="all"}function pt(e,t){return e===Br||e===t||fn(e)}function Ye(e,t,n){return{location:e,current:t,previous:n}}var va={setItem:ma,getItem:Yr,removeItem:ya};function ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qn(Object(n),!0).forEach(function(r){ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:va};return oa(Xn(Xn({},t),e))}function ne(e){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(e)}function Sa(e,t){if(ne(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ne(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oa(e){var t=Sa(e,"string");return ne(t)=="symbol"?t:t+""}function pn(e,t,n){return(t=Oa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bn(Object(n),!0).forEach(function(r){pn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jn={exports:{}},Yn={exports:{}},Qn;function xa(){return Qn||(Qn=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Yn)),Yn.exports}var Zn;function Ea(){return Zn||(Zn=1,function(e){var t=xa().default;function n(){e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},o=Object.prototype,a=o.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},u=s.iterator||"@@iterator",f=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function c(w,v,N,U){Object.defineProperty(w,v,{value:N,enumerable:!U,configurable:!U,writable:!U})}try{c({},"")}catch{c=function(w,v,N){return w[v]=N}}function m(w,v,N,U){var T=v&&v.prototype instanceof j?v:j,g=Object.create(T.prototype);return c(g,"_invoke",function(y,l,p){var b=1;return function(k,D){if(b===3)throw Error("Generator is already running");if(b===4){if(k==="throw")throw D;return{value:r,done:!0}}for(p.method=k,p.arg=D;;){var R=p.delegate;if(R){var V=z(R,p);if(V){if(V===O)continue;return V}}if(p.method==="next")p.sent=p._sent=p.arg;else if(p.method==="throw"){if(b===1)throw b=4,p.arg;p.dispatchException(p.arg)}else p.method==="return"&&p.abrupt("return",p.arg);b=3;var $=S(y,l,p);if($.type==="normal"){if(b=p.done?4:2,$.arg===O)continue;return{value:$.arg,done:p.done}}$.type==="throw"&&(b=4,p.method="throw",p.arg=$.arg)}}}(w,N,new W(U||[])),!0),g}function S(w,v,N){try{return{type:"normal",arg:w.call(v,N)}}catch(U){return{type:"throw",arg:U}}}i.wrap=m;var O={};function j(){}function I(){}function d(){}var x={};c(x,u,function(){return this});var _=Object.getPrototypeOf,E=_&&_(_(q([])));E&&E!==o&&a.call(E,u)&&(x=E);var P=d.prototype=j.prototype=Object.create(x);function C(w){["next","throw","return"].forEach(function(v){c(w,v,function(N){return this._invoke(v,N)})})}function M(w,v){function N(T,g,y,l){var p=S(w[T],w,g);if(p.type!=="throw"){var b=p.arg,k=b.value;return k&&t(k)=="object"&&a.call(k,"__await")?v.resolve(k.__await).then(function(D){N("next",D,y,l)},function(D){N("throw",D,y,l)}):v.resolve(k).then(function(D){b.value=D,y(b)},function(D){return N("throw",D,y,l)})}l(p.arg)}var U;c(this,"_invoke",function(T,g){function y(){return new v(function(l,p){N(T,g,l,p)})}return U=U?U.then(y,y):y()},!0)}function z(w,v){var N=v.method,U=w.i[N];if(U===r)return v.delegate=null,N==="throw"&&w.i.return&&(v.method="return",v.arg=r,z(w,v),v.method==="throw")||N!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+N+"' method")),O;var T=S(U,w.i,v.arg);if(T.type==="throw")return v.method="throw",v.arg=T.arg,v.delegate=null,O;var g=T.arg;return g?g.done?(v[w.r]=g.value,v.next=w.n,v.method!=="return"&&(v.method="next",v.arg=r),v.delegate=null,O):g:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,O)}function F(w){this.tryEntries.push(w)}function H(w){var v=w[4]||{};v.type="normal",v.arg=r,w[4]=v}function W(w){this.tryEntries=[[-1]],w.forEach(F,this),this.reset(!0)}function q(w){if(w!=null){var v=w[u];if(v)return v.call(w);if(typeof w.next=="function")return w;if(!isNaN(w.length)){var N=-1,U=function T(){for(;++N<w.length;)if(a.call(w,N))return T.value=w[N],T.done=!1,T;return T.value=r,T.done=!0,T};return U.next=U}}throw new TypeError(t(w)+" is not iterable")}return I.prototype=d,c(P,"constructor",d),c(d,"constructor",I),c(d,h,I.displayName="GeneratorFunction"),i.isGeneratorFunction=function(w){var v=typeof w=="function"&&w.constructor;return!!v&&(v===I||(v.displayName||v.name)==="GeneratorFunction")},i.mark=function(w){return Object.setPrototypeOf?Object.setPrototypeOf(w,d):(w.__proto__=d,c(w,h,"GeneratorFunction")),w.prototype=Object.create(P),w},i.awrap=function(w){return{__await:w}},C(M.prototype),c(M.prototype,f,function(){return this}),i.AsyncIterator=M,i.async=function(w,v,N,U,T){T===void 0&&(T=Promise);var g=new M(m(w,v,N,U),T);return i.isGeneratorFunction(v)?g:g.next().then(function(y){return y.done?y.value:g.next()})},C(P),c(P,h,"Generator"),c(P,u,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),i.keys=function(w){var v=Object(w),N=[];for(var U in v)N.unshift(U);return function T(){for(;N.length;)if((U=N.pop())in v)return T.value=U,T.done=!1,T;return T.done=!0,T}},i.values=q,W.prototype={constructor:W,reset:function(w){if(this.prev=this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(H),!w)for(var v in this)v.charAt(0)==="t"&&a.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=r)},stop:function(){this.done=!0;var w=this.tryEntries[0][4];if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var v=this;function N(b){g.type="throw",g.arg=w,v.next=b}for(var U=v.tryEntries.length-1;U>=0;--U){var T=this.tryEntries[U],g=T[4],y=this.prev,l=T[1],p=T[2];if(T[0]===-1)return N("end"),!1;if(!l&&!p)throw Error("try statement without catch or finally");if(T[0]!=null&&T[0]<=y){if(y<l)return this.method="next",this.arg=r,N(l),!0;if(y<p)return N(p),!1}}},abrupt:function(w,v){for(var N=this.tryEntries.length-1;N>=0;--N){var U=this.tryEntries[N];if(U[0]>-1&&U[0]<=this.prev&&this.prev<U[2]){var T=U;break}}T&&(w==="break"||w==="continue")&&T[0]<=v&&v<=T[2]&&(T=null);var g=T?T[4]:{};return g.type=w,g.arg=v,T?(this.method="next",this.next=T[2],O):this.complete(g)},complete:function(w,v){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&v&&(this.next=v),O},finish:function(w){for(var v=this.tryEntries.length-1;v>=0;--v){var N=this.tryEntries[v];if(N[2]===w)return this.complete(N[4],N[3]),H(N),O}},catch:function(w){for(var v=this.tryEntries.length-1;v>=0;--v){var N=this.tryEntries[v];if(N[0]===w){var U=N[4];if(U.type==="throw"){var T=U.arg;H(N)}return T}}throw Error("illegal catch attempt")},delegateYield:function(w,v,N){return this.delegate={i:q(w),r:v,n:N},this.method==="next"&&(this.arg=r),O}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Jn)),Jn.exports}var wt,er;function ka(){if(er)return wt;er=1;var e=Ea()();wt=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return wt}var Aa=ka(),X=Qr(Aa);function tr(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){return void n(f)}s.done?t(u):Promise.resolve(u).then(r,i)}function re(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){tr(o,r,i,a,s,"next",u)}function s(u){tr(o,r,i,a,s,"throw",u)}a(void 0)})}}var nr=function(){};function Ia(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,u=t.onEmpty||nr,f=t.onPause||nr;function h(m){clearInterval(n);var S=o.splice(0,a);return S.length&&e(S,o),o.length?m?h():c():(i=!1,u(o))}function c(){i=!0,n=setInterval(h,s)}return o.length&&c(),{flush:function(m){h(m)},resume:h,push:function(m){return(r=o.push(m))>=a&&!t.throttle&&h(),i||c(),r},size:function(){return o.length},pause:function(m){m&&h(),clearInterval(n),i=!1,f(o)}}}ut.bind(null,"sessionStorage");var ja=le("sessionStorage","getItem",ce),Pa=le("sessionStorage","setItem",se);le("sessionStorage","removeItem",we);var Zr="__session",rr=["id","createdAt","created"];function zt(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function ei(){var e=zt(),t=e[0],n=e[1];return{id:be(),created:n,createdAt:t}}var Ta={session:[ja,Pa],page:[ce,se]};function dt(e,t){for(var n=Ta[e],r=n[0],i=n[1],o=ei(),a=!1,s={},u=0;u<rr.length;u++){var f=rr[u],h="__"+e+"__session__"+f,c=r(h);a=t||!c,(t||!t&&!c)&&i(h,o[f]);var m=c&&!t?c:o[f],S=f!=="created"?m:Number(m);s[f]=S}return dn(s,a)}function dn(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function Ve(e,t){e===void 0&&(e=30);var n=on(Zr),r=n?JSON.parse(n):rt(e);return t?r:dn(r,!n)}function rt(e,t,n){e===void 0&&(e=30);var r=n?Ve(e,!0):ei(),i=60*e,o=r.created;if(n){var a=zt(),s=a[0],u=a[1];r.modified=u,r.modifiedAt=s,o=u}var f=zt(o+1e3*i),h=f[0];return r.expires=f[1],r.expiresAt=h,r.duration=1e3*i,t&&(r=Object.assign(r,t)),Kr(Zr,JSON.stringify(r),i),dn(r,!n)}var Na=function(e,t){return rt(e,t,!0)},ti=dt.bind(null,"session"),_a=dt.bind(null,"session",!0),hn=dt.bind(null,"page"),ir=dt.bind(null,"page",!0),ve=typeof window<"u";function Ca(e){return typeof e=="string"}function or(e){return typeof e=="boolean"}var St,ar;function Ma(){if(ar)return St;ar=1;var e=function(d){return t(d)&&!n(d)};function t(d){return!!d&&typeof d=="object"}function n(d){var x=Object.prototype.toString.call(d);return x==="[object RegExp]"||x==="[object Date]"||o(d)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(d){return d.$$typeof===i}function a(d){return Array.isArray(d)?[]:{}}function s(d,x){return x.clone!==!1&&x.isMergeableObject(d)?j(a(d),d,x):d}function u(d,x,_){return d.concat(x).map(function(E){return s(E,_)})}function f(d,x){if(!x.customMerge)return j;var _=x.customMerge(d);return typeof _=="function"?_:j}function h(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(x){return Object.propertyIsEnumerable.call(d,x)}):[]}function c(d){return Object.keys(d).concat(h(d))}function m(d,x){try{return x in d}catch{return!1}}function S(d,x){return m(d,x)&&!(Object.hasOwnProperty.call(d,x)&&Object.propertyIsEnumerable.call(d,x))}function O(d,x,_){var E={};return _.isMergeableObject(d)&&c(d).forEach(function(P){E[P]=s(d[P],_)}),c(x).forEach(function(P){S(d,P)||(m(d,P)&&_.isMergeableObject(x[P])?E[P]=f(P,_)(d[P],x[P],_):E[P]=s(x[P],_))}),E}function j(d,x,_){_=_||{},_.arrayMerge=_.arrayMerge||u,_.isMergeableObject=_.isMergeableObject||e,_.cloneUnlessOtherwiseSpecified=s;var E=Array.isArray(x),P=Array.isArray(d),C=E===P;return C?E?_.arrayMerge(d,x,_):O(d,x,_):s(x,_)}j.all=function(d,x){if(!Array.isArray(d))throw new Error("first argument should be an array");return d.reduce(function(_,E){return j(_,E,x)},{})};var I=j;return St=I,St}var Da=Ma(),Ua=Qr(Da);var Wt=new TextEncoder,La={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},Ra=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Vt=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:u}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=u||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:u}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=u!=null&&s.has("X-Amz-Content-Sha256")?u:await t.clone().arrayBuffer()),t=a}let r=new $t(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},$t=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:u,region:f,cache:h,datetime:c,signQuery:m,appendSessionToken:S,allHeaders:O,singleEncode:j}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let I,d;(!u||!f)&&([I,d]=za(this.url,this.headers)),this.service=u||I||"",this.region=f||d||"us-east-1",this.cache=h||new Map,this.datetime=c||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=m,this.appendSessionToken=S||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let x=this.signQuery?this.url.searchParams:this.headers;if(x.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&x.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(E=>O||!Ra.has(E)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(E=>E+":"+(E==="host"?this.url.host:(this.headers.get(E)||"").replace(/\s+/g," "))).join(`
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250528 */
|
4
4
|
var i=n=>{var l;return((l=n.links)===null||l===void 0?void 0:l.thumbnail)||n.thumbnailUrl};export{i as a};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as k}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as k}from"./NBW6TGCY.js";import"./F7J5AVP6.js";import{g as s}from"./CH65TEDK.js";import{a as g,b as m}from"./KV7CP4TD.js";import{b as y}from"./3YNQSVNT.js";import{a as w}from"./SOLDJVDR.js";import{D as n,E as o,I as p,c,d as l,o as a,q as d}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var _=c`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as f}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as f}from"./BPPOS7VC.js";import{e as b}from"./PYJIK3CR.js";import{c as u,n as g,t as _,z as x}from"./4JGCEBGT.js";import"./52W5VWDL.js";import{a as m,c as a,d as w,e as v,f as y}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var k=`
|
5
5
|
@media print {
|
6
6
|
@page {
|
7
7
|
size: Portrait;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as r,b as s,c as a,d as n}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as r,b as s,c as a,d as n}from"./6CWLNSWC.js";import{c as e}from"./L7R6K4A2.js";import{a as i}from"./X4HL3D2I.js";import{b as t}from"./YWGNQDQM.js";var m=["hub:initiative:edit","hub:initiative:create","hub:initiative:create2","hub:initiative:metrics","hub:initiative:associations","hub:initiative:settings"],b=Object.assign(Object.assign({},i),{properties:Object.assign(Object.assign({},i.properties),{_groups:{type:"array",items:{type:"string"}},status:{type:"string",default:t.notStarted,enum:Object.keys(t)},_metric:{type:"object",required:["cardTitle"],properties:e.properties}}),allOf:[s,r,n,a]});export{m as a,b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250528 */
|
4
4
|
var o={user:"user",group:"group",groupAdmin:"group-admin",org:"org",orgAdmin:"org-admin",authenticated:"authenticated",anonymous:"anonymous",owner:"owner"};export{o as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{e as s}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{e as s}from"./PYJIK3CR.js";import"./4JGCEBGT.js";import"./52W5VWDL.js";import{a as c,c as e,d as l,e as r,f as d}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var m=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}",u=m,h={content:"instant-apps-measurement__content"},f=class{constructor(t){c(this,t),this.measureActive=d(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){s(this)}componentDidLoad(){}render(){return e(l,{key:"68d619bbb5d2b0808ad57a1891ca07ae35391194"},e("calcite-panel",{key:"5fe4f0d6ee4c8344cb5fadedd3c09a81a100f342",heading:this?.messages?.label,closable:this.closable},e("div",{key:"6f220edb8795f0563ea4f4e76f0908c2fca4a263",slot:"content-top"},this.renderActionPad()),e("div",{key:"5b11d036b55b5a98df11d8c575b995c2b7f4a322"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){let{view:t,coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o}=this;return e("calcite-panel",{class:h.content},e("instant-apps-measurement-tool",{ref:p=>{this.measureTool=p},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o},activeTool:this.activeToolType}))}renderActionPad(){let{messages:t,activeToolType:i}=this;return e("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},e("calcite-action",{class:i==="distance"?"active-tool":"",text:t?.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.line)),e("calcite-action",{class:i==="area"?"active-tool":"",text:t?.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.area)),e("calcite-action",{class:i==="point"?"active-tool":"",text:t?.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.point)),e("calcite-action",{text:t?.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.clear)))}_handleToolClick(t){if(!this?.measureTool)return;let i=t?.target;if(!(i instanceof HTMLElement))return;let a=i?.dataset.value;if(a!=="distance"&&a!=="area"&&a!=="point"&&a!=="clear")return;a&&(this.measureTool.activeTool=a);let n=document.getElementsByClassName("active-tool");for(let o=0;o<n?.length;o++)n[o]?.classList?.remove("active-tool");i?.classList.add("active-tool"),this.measureActive.emit(!(a===void 0||a==="clear"))}get el(){return r(this)}};f.style=u;export{f as instant_apps_measurement};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{b as d}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{b as d}from"./KV7CP4TD.js";import{D as c,E as l,I as h,c as o,d as a,o as r}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var u=o`:host{display:block}.chat-container{display:flex;flex-direction:column;gap:10px;max-width:400px;background-color:#d3d3d3;border-radius:10px;padding:10px}.chat-panel{--calcite-panel-background-color: "blue"}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:300px;max-height:300px;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;width:90%;--calcite-card-background-color: "blue";--calcite-card-border-color: "blue";color:#fff}.system-message{align-self:flex-start;background:var(--calcite-ui-foreground-1);border-radius:8px;width:90%;--calcite-card-background-color: "white";--calcite-card-border-color: "white"}.message-content{padding:0}.chat-input{display:flex;gap:8px}`,n=class extends c{constructor(){super(...arguments),this.handleSendMessage=async()=>{if(!this.inputRef?.value.trim())return;this._isLoading=!0;let e=this.inputRef.value.trim(),i={message:e};if(this.conversationStore.conversationId!==null){if(i={message:e,conversationId:this.conversationStore.conversationId},this.token){let s=await this.requestAIServer(i,this.token);this.loopRequest(s,this.token)}}else if(this.token){let s=await this.requestAIServer(i,this.token);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token)}this.inputRef.value=""},this.loopRequest=async(e,i)=>{let s={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId},t=await this.requestAIServer(s,i);t.hasMore?(t.message&&t.message!==null&&(this._isValidJson(t.message)!==!1?(this.jsonMessage=this._isValidJson(t.message),t.context?.intent==="inspection"?this.messages=[...this.messages,{text:this.jsonMessage,sender:t.context.author,format:"json",inquiryId:t.inquiryId}]:t.context&&(this.jsonMessage.response&&this.jsonMessage.response==="no"?(this._resetConversation(),this.messages=[...this.messages,{text:"What else can I help you with?",sender:t.context.author,format:"text",inquiryId:t.inquiryId}]):this.messages=[...this.messages,{text:this.jsonMessage.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])):t.context&&(this.messages=[...this.messages,{text:t.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])),this.loopRequest(t,i)):this._isLoading=!1},this.requestAIServer=async(e,i)=>await fetch(this.AIServerUrl,{method:"POST",headers:{"Content-Type":"application/json",token:i},body:JSON.stringify(e)}).then(async s=>await s.json()).then(s=>s||"error").catch(s=>s),this.resetChat=()=>{this._resetConversation(),this.messages=[],this.inputRef&&(this.inputRef.value="")},this._isValidJson=e=>{try{return JSON.parse(e)}catch{return!1}},this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setRef=e=>{this.inputRef=e},this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this.jsonMessage={},this.messages=[],this._isLoading=!1,this.AIServerUrl="http://localhost:8080/skills/solution_deployment/chat",this.token=null,this.arcgisCreateSolutionEvent=r()}static{this.properties={conversationStore:16,jsonMessage:16,messages:16,_isLoading:16,AIServerUrl:1,token:1}}static{this.styles=u}emitCreateSolutionEvent(e){return console.log(e),this.arcgisCreateSolutionEvent.emit()}render(){return a`<div class="chat-container"><calcite-panel class="chat-panel" heading="Solution Assistant">${this.messages.length>0?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent>Reset</calcite-button>`:""}<div class="chat-messages">${this.messages.map(e=>a`<calcite-card class=${l(e.sender==="human"?"user-message":"system-message")}><div class="message-content"><strong>${e.sender==="human"?"You:":"AI:"}</strong>${e.format==="json"?this.renderExtraInformation(e.text):e.text}</div></calcite-card>`)}</div></calcite-panel><div class="chat-input"><calcite-text-area placeholder="Type your message..." auto-grow value="I would like to assess and capture the condition of bus stops in our city?" ${d(this._setRef)}></calcite-text-area><calcite-button @click=${this.handleSendMessage} .disabled=${!!this._isLoading}>${this._isLoading?a`<calcite-loader label=processing... inline></calcite-loader>`:"Send"}</calcite-button></div></div>`}renderExtraInformation(e){return a`<calcite-accordion><calcite-accordion-item description="View the JSON schema" heading="View Schema"><calcite-card><calcite-button @click=${()=>this.emitCreateSolutionEvent(e)}>Create Solution</calcite-button></calcite-card><calcite-card><pre>${JSON.stringify(e,null,2)}</pre></calcite-card></calcite-accordion-item></calcite-accordion>`}};h("arcgis-solutions-assistant",n);export{n as ArcgisSolutionsAssistant};
|