@arcgis/core 4.27.0-next.20230412 → 4.27.0-next.20230413
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0948a40569b2408edefb.js +1 -0
- package/assets/esri/core/workers/chunks/{e9ecfd3ee78492b797cd.js → 0b3d4bcf004c1394bc69.js} +1 -1
- package/assets/esri/core/workers/chunks/0d080dd1ca6a71597409.js +1 -0
- package/assets/esri/core/workers/chunks/0f04978e8342d9a35e59.js +1 -0
- package/assets/esri/core/workers/chunks/0f52e49eb552fbd8cec0.js +1 -0
- package/assets/esri/core/workers/chunks/0fb4c62a0676090b1dff.js +1 -0
- package/assets/esri/core/workers/chunks/1255f9a6e86aa4120bb4.js +1 -0
- package/assets/esri/core/workers/chunks/192e3eeed50768c77c65.js +1 -0
- package/assets/esri/core/workers/chunks/1c13b6014943f6190b32.js +1 -0
- package/assets/esri/core/workers/chunks/1fe31a412479815e5e2d.js +1 -0
- package/assets/esri/core/workers/chunks/2014f2cf5f4cb070f59c.js +1 -0
- package/assets/esri/core/workers/chunks/20ad44b1a7adfed4c6c4.js +1 -0
- package/assets/esri/core/workers/chunks/277a477446d6644aada6.js +1 -0
- package/assets/esri/core/workers/chunks/2eefaaede5fc2537421c.js +1 -0
- package/assets/esri/core/workers/chunks/308f3811dfa71f619279.js +1 -0
- package/assets/esri/core/workers/chunks/384739a9e2612500a51a.js +1 -0
- package/assets/esri/core/workers/chunks/38ebd270e6ffa60791bb.js +1 -0
- package/assets/esri/core/workers/chunks/{87b55ff95167ad944649.js → 3978f4f68ada540ee3a3.js} +1 -1
- package/assets/esri/core/workers/chunks/{b84b15b10624ec6a1896.js → 3d6ec42d92895cc6d060.js} +1 -1
- package/assets/esri/core/workers/chunks/3f18ad02612e6884f848.js +1 -0
- package/assets/esri/core/workers/chunks/4538a225f4ef2767b3f3.js +1 -0
- package/assets/esri/core/workers/chunks/4a2a0091cd830b6a1729.js +1 -0
- package/assets/esri/core/workers/chunks/51cfb708179d454ea76e.js +1 -0
- package/assets/esri/core/workers/chunks/{622139ef8f7181e48cd0.js → 56a343f7dbac311917d2.js} +1 -1
- package/assets/esri/core/workers/chunks/6053a78aef54b4a5b172.js +1 -0
- package/assets/esri/core/workers/chunks/6c54579981a7bd483f1a.js +1 -0
- package/assets/esri/core/workers/chunks/6e3b4fa0c70db70c3d1e.js +1 -0
- package/assets/esri/core/workers/chunks/6eb6ddeef739f73d5ed2.js +1 -0
- package/assets/esri/core/workers/chunks/714d911412d1e111078b.js +1 -0
- package/assets/esri/core/workers/chunks/71d24e3f2e697e9b13ff.js +1 -0
- package/assets/esri/core/workers/chunks/71f973d381814275e50d.js +1 -0
- package/assets/esri/core/workers/chunks/740dc67038f554431f1b.js +1 -0
- package/assets/esri/core/workers/chunks/766f397dfdfbc0eb72d1.js +1 -0
- package/assets/esri/core/workers/chunks/{1544568c32b0ed0fd788.js → 77058782547a9c2dca5a.js} +1 -1
- package/assets/esri/core/workers/chunks/794acfd34b9bf4b1985b.js +1 -0
- package/assets/esri/core/workers/chunks/7a204c98b8e096917ff2.js +1 -0
- package/assets/esri/core/workers/chunks/7a820e6208e4a02e9bbc.js +1 -0
- package/assets/esri/core/workers/chunks/7df8073c232d70ac4a82.js +1 -0
- package/assets/esri/core/workers/chunks/80bf6cf1bef17215bca4.js +1 -0
- package/assets/esri/core/workers/chunks/83f7e22a12d90ef93e62.js +1 -0
- package/assets/esri/core/workers/chunks/8c747a8c05aa1b099c3d.js +1 -0
- package/assets/esri/core/workers/chunks/8d2da875a28fa08d1b7a.js +1 -0
- package/assets/esri/core/workers/chunks/{801b5d79422028469006.js → 8d41305509fedb3603ac.js} +1 -1
- package/assets/esri/core/workers/chunks/8fec9979ae2b0e3a878f.js +1 -0
- package/assets/esri/core/workers/chunks/93e17ab3bc56ceea928d.js +1 -0
- package/assets/esri/core/workers/chunks/9af7179bcbdcfb3c3a6e.js +1 -0
- package/assets/esri/core/workers/chunks/a0b968253afcf0cb0316.js +1 -0
- package/assets/esri/core/workers/chunks/{5a25079cd79e90757cb1.js → a7079f692049e708db9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{aebc5091bd4159197ce0.js → a75cb9b28b7ea1b30e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/ac2633ce3a1bc889fdf4.js +1 -0
- package/assets/esri/core/workers/chunks/b717f0def3b009852ddb.js +1 -0
- package/assets/esri/core/workers/chunks/b996d43f37ad3d6bb64d.js +1 -0
- package/assets/esri/core/workers/chunks/c25aa08b869f2777dc26.js +1 -0
- package/assets/esri/core/workers/chunks/{666e6bdca88a48b0f609.js → c2aeceb556e4b6cccef3.js} +1 -1
- package/assets/esri/core/workers/chunks/c2fd0130368ae3d8637b.js +1 -0
- package/assets/esri/core/workers/chunks/c646dc9da08b509e39d6.js +1 -0
- package/assets/esri/core/workers/chunks/{a456548053a703e3702b.js → ccf4420c89c54bc19c1f.js} +1 -1
- package/assets/esri/core/workers/chunks/d0ff496834686dbfe29f.js +1 -0
- package/assets/esri/core/workers/chunks/d35d8b02b884fdda4ecc.js +1 -0
- package/assets/esri/core/workers/chunks/{525a623d59ed68593a3d.js → d59274ac695dfcff1143.js} +1 -1
- package/assets/esri/core/workers/chunks/df7dcd035997881cf2ef.js +1 -0
- package/assets/esri/core/workers/chunks/e5352dc8983d06d4ee0f.js +1 -0
- package/assets/esri/core/workers/chunks/e965d10225fd4e2f26fa.js +1 -0
- package/assets/esri/core/workers/chunks/f05634909c9449533193.js +1 -0
- package/assets/esri/core/workers/chunks/f0c62bb406bb93b1408a.js +1 -0
- package/assets/esri/core/workers/chunks/f69bc07736c57ed09e8e.js +1 -0
- package/assets/esri/core/workers/chunks/fa059d94d5051ded85b3.js +1 -0
- package/assets/esri/core/workers/chunks/fa169378e2352266f2e7.js +1 -0
- package/assets/esri/core/workers/chunks/ff1c5281445d2bed7b05.js +1 -0
- package/assets/esri/core/workers/chunks/ff30e2230de91e2e7f70.js +1 -0
- package/assets/esri/core/workers/chunks/ff84934441b9d7b63853.js +1 -0
- package/assets/esri/themes/base/fonts/cdn.scss +1 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts.scss +205 -129
- package/assets/esri/themes/base/widgets/_Daylight.scss +4 -0
- package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -0
- package/assets/esri/themes/dark/main.css +8 -1
- package/assets/esri/themes/light/main.css +8 -1
- package/assets/esri/themes/light/view.css +8 -1
- package/chunks/Jpg.js +1 -1
- package/chunks/SunCalc.js +1 -1
- package/chunks/Zlib.js +1 -1
- package/chunks/ajv.bundle.js +1 -1
- package/chunks/ar.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/basis_transcoder.js +1 -1
- package/chunks/bg_BG.js +1 -1
- package/chunks/bs_BA.js +1 -1
- package/chunks/builtins.js +1 -1
- package/chunks/ca_ES.js +1 -1
- package/chunks/cs_CZ.js +1 -1
- package/chunks/da_DK.js +1 -1
- package/chunks/de_CH.js +1 -1
- package/chunks/de_DE.js +1 -1
- package/chunks/earcut.js +1 -1
- package/chunks/el_GR.js +1 -1
- package/chunks/en_CA.js +1 -1
- package/chunks/en_US.js +1 -1
- package/chunks/es_ES.js +1 -1
- package/chunks/et_EE.js +1 -1
- package/chunks/fi_FI.js +1 -1
- package/chunks/fr_FR.js +1 -1
- package/chunks/geometryEngineBase.js +1 -1
- package/chunks/he_IL.js +1 -1
- package/chunks/hr_HR.js +1 -1
- package/chunks/hu_HU.js +1 -1
- package/chunks/i3s.js +1 -1
- package/chunks/id_ID.js +1 -1
- package/chunks/index.js +1 -1
- package/chunks/index2.js +1 -1
- package/chunks/it_IT.js +1 -1
- package/chunks/ja_JP.js +1 -1
- package/chunks/ko_KR.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/libtess-asm.js +1 -1
- package/chunks/libtess.js +1 -1
- package/chunks/lt_LT.js +1 -1
- package/chunks/lv_LV.js +1 -1
- package/chunks/nb_NO.js +1 -1
- package/chunks/nl_NL.js +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/chunks/pl_PL.js +1 -1
- package/chunks/pt_BR.js +1 -1
- package/chunks/pt_PT.js +1 -1
- package/chunks/quickselect.js +1 -1
- package/chunks/ro_RO.js +1 -1
- package/chunks/ru_RU.js +1 -1
- package/chunks/sk_SK.js +1 -1
- package/chunks/sl_SL.js +1 -1
- package/chunks/sr_RS.js +1 -1
- package/chunks/sv_SE.js +1 -1
- package/chunks/th_TH.js +1 -1
- package/chunks/tr_TR.js +1 -1
- package/chunks/uk_UA.js +1 -1
- package/chunks/vi_VN.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/chunks/zh_Hans.js +1 -1
- package/chunks/zh_Hant.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/interfaces.d.ts +42 -4
- package/layers/effects/parser.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/time/legacyTimeZoneMap.js +1 -1
- package/assets/esri/core/workers/chunks/075aef0ea127a96312a3.js +0 -1
- package/assets/esri/core/workers/chunks/0761672964d9decc5dc3.js +0 -1
- package/assets/esri/core/workers/chunks/17a989e25c7fb9a80b72.js +0 -1
- package/assets/esri/core/workers/chunks/1b5bdd80db9a1a410ff8.js +0 -1
- package/assets/esri/core/workers/chunks/1b5dce4654bf7a2b54d3.js +0 -1
- package/assets/esri/core/workers/chunks/1b6ae140a9bee1c166d1.js +0 -1
- package/assets/esri/core/workers/chunks/1c9fff56d6e1cc3df63f.js +0 -1
- package/assets/esri/core/workers/chunks/1cdc14124617923b5c61.js +0 -1
- package/assets/esri/core/workers/chunks/2a6902994fc7c104d76e.js +0 -1
- package/assets/esri/core/workers/chunks/2dc876bf9edccddbb835.js +0 -1
- package/assets/esri/core/workers/chunks/31299c139d4dadc065b1.js +0 -1
- package/assets/esri/core/workers/chunks/324c7064ac8c456c9be7.js +0 -1
- package/assets/esri/core/workers/chunks/365c581d606135a59ba0.js +0 -1
- package/assets/esri/core/workers/chunks/597f73478dfd73a52d6e.js +0 -1
- package/assets/esri/core/workers/chunks/5b4f8e6e900ced669697.js +0 -1
- package/assets/esri/core/workers/chunks/5bae7057b4472cde9d78.js +0 -1
- package/assets/esri/core/workers/chunks/5e3079b3666df3a9d235.js +0 -1
- package/assets/esri/core/workers/chunks/65d24661919c2423ba98.js +0 -1
- package/assets/esri/core/workers/chunks/6788d0654735201cb07a.js +0 -1
- package/assets/esri/core/workers/chunks/6f67ea380ad67cd774e9.js +0 -1
- package/assets/esri/core/workers/chunks/7570ec6a64a88ddc0fdd.js +0 -1
- package/assets/esri/core/workers/chunks/776b76ee275a41fff456.js +0 -1
- package/assets/esri/core/workers/chunks/7b8c7d69da5454d43456.js +0 -1
- package/assets/esri/core/workers/chunks/7d0cba1e10523a27af3e.js +0 -1
- package/assets/esri/core/workers/chunks/7e86e0b7791479b73788.js +0 -1
- package/assets/esri/core/workers/chunks/83d30e558c8d7cae150a.js +0 -1
- package/assets/esri/core/workers/chunks/83e684b536b24d9ccc71.js +0 -1
- package/assets/esri/core/workers/chunks/859fbe82c137172edcac.js +0 -1
- package/assets/esri/core/workers/chunks/89ca535589b325c79724.js +0 -1
- package/assets/esri/core/workers/chunks/8c614117d9c653cb629c.js +0 -1
- package/assets/esri/core/workers/chunks/8de6d64d15240a166ab9.js +0 -1
- package/assets/esri/core/workers/chunks/913f2337f2e83f9c073d.js +0 -1
- package/assets/esri/core/workers/chunks/947770d8d9f98e3bd207.js +0 -1
- package/assets/esri/core/workers/chunks/96e9fa7afb1961354419.js +0 -1
- package/assets/esri/core/workers/chunks/99bfa5cbad8059c53fdd.js +0 -1
- package/assets/esri/core/workers/chunks/a1f043dff7953d6dccc7.js +0 -1
- package/assets/esri/core/workers/chunks/a2969ddd0769be471ed0.js +0 -1
- package/assets/esri/core/workers/chunks/a624b66576e6eaf4467d.js +0 -1
- package/assets/esri/core/workers/chunks/aa4640a0207e0be224e2.js +0 -1
- package/assets/esri/core/workers/chunks/ab37d5490f0677009e23.js +0 -1
- package/assets/esri/core/workers/chunks/b451d014f9387c67e1df.js +0 -1
- package/assets/esri/core/workers/chunks/b86f9181eb82a8917511.js +0 -1
- package/assets/esri/core/workers/chunks/be2e5b454b7f1ccda9a7.js +0 -1
- package/assets/esri/core/workers/chunks/c35e921b4f2392d65f8d.js +0 -1
- package/assets/esri/core/workers/chunks/c419a26e2b7d20d99cef.js +0 -1
- package/assets/esri/core/workers/chunks/c72be2fe05533b46cb33.js +0 -1
- package/assets/esri/core/workers/chunks/c84a1acb165ab8bcf850.js +0 -1
- package/assets/esri/core/workers/chunks/ccc6b52fc947bab574ac.js +0 -1
- package/assets/esri/core/workers/chunks/cd0f8fe877532c0a1fe6.js +0 -1
- package/assets/esri/core/workers/chunks/ce0d279b75b597988e71.js +0 -1
- package/assets/esri/core/workers/chunks/d4338bc4a99b71c44dc2.js +0 -1
- package/assets/esri/core/workers/chunks/db3df4f42c72ed48c527.js +0 -1
- package/assets/esri/core/workers/chunks/e7d5e22065218ac436a9.js +0 -1
- package/assets/esri/core/workers/chunks/edefb561c03a60f086bc.js +0 -1
- package/assets/esri/core/workers/chunks/f115086971b329d840b6.js +0 -1
- package/assets/esri/core/workers/chunks/f9f1bbd7930100e84e50.js +0 -1
- package/assets/esri/core/workers/chunks/fcf9d94c39479a0e0ad7.js +0 -1
- package/assets/esri/core/workers/chunks/fdbc08b9da415b9b4447.js +0 -1
- package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/15e2e15a-2f36-4a01-b529-677d575bf76d.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/174d458a-81e0-4174-9473-35e3bf0a613c.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/18629a56-2ec3-4470-a65f-f82d7ec4d41b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/1fed34fa-250a-4d32-9f1d-42f978a2e0b2.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/2200dfff-da50-40b0-bc12-5e4b872a1998.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/281f890c-8412-4ee3-84ed-8b5d062d2ab8.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/2a1ae9a5-b6b5-405c-b660-bbdf1b356952.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/31da4b04-f98a-4b5f-b545-a31d26da99e5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/32a2c5cf-6736-44a6-a276-49ba7e030944.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/40d36b4a-60c6-460a-bf43-4c948c23563e.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/46947883-147e-48dd-97c2-5a8ca675b998.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/4daa2125-53c6-4da8-9614-8a1049eaccc2.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/4e4befe6-3f94-41d8-886c-1a6831818c6a.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/6ea5fa46-5311-450b-8744-288a30c55348.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/75e2f3b1-1402-4916-8392-4db9ababea7b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/7db1f672-3a8f-4d19-9c49-7f61aed450b5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/8a65abc7-6463-4895-b3e6-5e203b80b7e2.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/97694c53-4e94-4f9e-969b-a148adfcdcfd.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/9c1ab088-0cb0-402f-9cea-170f0fea14a8.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/a9eaf4d3-6427-42df-9306-3ea1270f7b1a.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-basic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b17468ea-cf53-4635-984b-4d930a68ed4d.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/c1905e2e-a1cb-49de-9bb0-ce3c5ffc85ae.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/c4cc9032-7eee-4a6e-ae8b-f384b1349bcf.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/d824d78b-aab0-44e3-8c56-6c3dcf551952.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/dd7b7d4e-21ab-4ac0-b26a-d032c992f3c5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117.woff2 +0 -0
- package/views/3d/webgl-engine/lib/Indices.js +0 -4
- package/widgets/Editor/UploadState.js +0 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.27/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
const a=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/
|
|
5
|
+
const a=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);export{a as legacyTimeZoneMap};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[142],{5732:(e,t,n)=>{n.d(t,{c:()=>i});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},69801:(e,t,n)=>{n.d(t,{WJ:()=>a,Xq:()=>o});var i,s,r=n(44553);(s=i||(i={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class o{constructor(e,t,n){this._namespace=e,this._storage=t,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(e,t,n,i=0){this._storage.put(this._namespace+e,t,n,i)}get(e){const t=this._storage.get(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}pop(e){const t=this._storage.pop(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,n){this._storage.updateSize(this._namespace+e,t,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class a{constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get size(){return this._size}get sizeMB(){return this._size/1024/1024}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimit()}put(e,t,n,s){const r=this._db.get(e);if(r&&(this._size-=r.size,this._db.delete(e),r.entry!==t&&this._notifyRemove(e,r.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,t,i.ALL);if(void 0===t)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const o=1+Math.max(s,-3)- -3;this._db.set(e,{entry:t,size:n,lifetime:o,lives:o}),this._size+=n,this._checkSizeLimit()}updateSize(e,t,n){const s=this._db.get(e);if(s&&s.entry===t){for(this._size-=s.size;n>this._maxSize;){const s=this._notifyRemove(e,t,i.SOME);if(!(null!=s&&s>0))return void this._db.delete(e);n=s}s.size=n,this._size+=n,this._checkSizeLimit()}}pop(e){const t=this._db.get(e);if(t)return this._size-=t.size,this._db.delete(e),++this._hit,t.entry;++this._miss}get(e){const t=this._db.get(e);if(void 0!==t)return this._db.delete(e),t.lives=t.lifetime,this._db.set(e,t),++this._hit,t.entry;++this._miss}getStats(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach(((e,i)=>{const s=e.lifetime;n[s]=(n[s]||0)+e.size,this._users.forAll((n=>{const s=n.namespace;if(i.startsWith(s)){const n=t[s]||0;t[s]=n+e.size}}))}));const i={};this._users.forAll((e=>{const n=e.namespace;if(!isNaN(e.hitRate)&&e.hitRate>0){const s=t[n]||0;t[n]=s,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"}));const s=Object.keys(t);s.sort(((e,n)=>t[n]-t[e])),s.forEach((n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]));for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this.size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){this._db.forEach(((t,n)=>{n.startsWith(e)&&(this._size-=t.size,this._db.delete(n),this._notifyRemove(n,t.entry,i.ALL))}))}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n){let i;return this._removeFuncs.some((s=>{if(e.startsWith(s[0])){const e=s[1](t,n);return"number"==typeof e&&(i=e),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[e,t]of this._db){if(this._db.delete(e),t.lives<=1){this._size-=t.size;const n=this._notifyRemove(e,t.entry,i.SOME);null!=n&&n>0&&(this._size+=n,t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t);if(this._size<=.9*this.maxSize)return}}}},66643:(e,t,n)=>{n.d(t,{Ed:()=>c,UI:()=>u,mt:()=>p,q6:()=>f,vr:()=>m});var i=n(43697),s=n(15923),r=n(70586),o=n(95330),a=n(5600),l=n(52011);function c(e,t,n){return(0,o.as)(e.map(((e,i)=>t.apply(n,[e,i]))))}async function u(e,t,n){return(await(0,o.as)(e.map(((e,i)=>t.apply(n,[e,i]))))).map((e=>e.value))}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function p(e){try{return h(await e)}catch(e){return(0,o.r9)(e),d(e)}}function m(e,t){return new g(e,t)}let g=class extends s.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then((e=>{this._result=h(e),this._cleanup()}),(e=>{this._result=d(e),this._cleanup()})),this._abortHandle=(0,o.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.hw)(this._abortHandle),this._abortController=null}};(0,i._)([(0,a.Cb)()],g.prototype,"value",null),(0,i._)([(0,a.Cb)()],g.prototype,"error",null),(0,i._)([(0,a.Cb)()],g.prototype,"finished",null),(0,i._)([(0,a.Cb)()],g.prototype,"promise",void 0),(0,i._)([(0,a.Cb)()],g.prototype,"_result",void 0),g=(0,i._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],g)},24133:(e,t,n)=>{n.d(t,{Q:()=>a});var i=n(67676),s=n(70586),r=n(44553),o=n(88764);class a{constructor(e=9,t){this._compareMinX=h,this._compareMinY=d,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),S.prune(),w.prune(),I.prune()}all(e){this._all(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(y(e,n))for(b.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;y(e,o)&&(n.leaf?t(r):_(e,o)?this._all(r,t):b.push(r))}n=b.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!y(e,t))return!1;for(b.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(y(e,r)){if(t.leaf||_(e,r))return!0;b.push(s)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(w.clear(),I.clear();n||w.length>0;){if(n||(n=(0,s.j0)(w.pop()),r=w.data[w.length-1],o=I.pop()??0,a=!0),n.leaf&&(t=(0,i.cq)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),w.push(n),this._condense(w),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(w.push(n),I.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t(e);else S.pushArray(n.children);n=S.pop()??null}}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new B(e.slice(t,n+1));return l(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new M([]);o.height=i;const a=Math.ceil(s/r),c=a*Math.ceil(Math.sqrt(r));x(e,t,n,c,this._compareMinX);for(let s=t;s<=n;s+=c){const t=Math.min(s+c-1,n);x(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return l(o,this._toBBox),o}_chooseSubtree(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=f(o),l=m(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);w.clear();const r=this._chooseSubtree(s,this._data,t,w);for(r.children.push(e),u(r,s);t>=0&&w.data[t].children.length>this._maxEntries;)this._split(w,t),t--;this._adjustParentBBoxes(s,w,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(r,n.children.length-r),a=n.leaf?new B(o):new M(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new M([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=f(t)+f(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:h,s=e.leaf?this._compareMinY:d;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=c(e,0,t,s),o=c(e,n-t,n,s);let a=p(r)+p(o);for(let i=t;i<n-t;i++){const t=e.children[i];u(r,e.leaf?s(t):t),a+=p(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];u(o,e.leaf?s(t):t),a+=p(o)}return a}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)u(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,s){s||(s=new B([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],u(s,e.leaf?i(r):r);return s}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function y(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,n,i,r){const a=[t,n];for(;a.length;){const t=(0,s.j0)(a.pop()),n=(0,s.j0)(a.pop());if(t-n<=i)continue;const l=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,l,n,t,r),a.push(n,l,l,t)}}const b=new r.Z,S=new r.Z,w=new r.Z,I=new r.Z({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class B extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class M extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},14808:(e,t,n)=>{n.d(t,{Qc:()=>u,WU:()=>a,lt:()=>c});var i=n(19153),s=n(70171);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,s.Kd)()){let t=(e=e.toLowerCase())in r;if(!t){const n=e.split("-");n.length>1&&n[0]in r&&(e=n[0],t=!0),t||(e="en")}const[n,i,o="#,##0.###"]=r[e];return{decimal:n,group:i,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const i=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const i=(n=n||{}).customs.group,s=n.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,c=o.match(a);if(!c)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const i=t.split("."),s="string"==typeof n.places&&n.places.indexOf(",");let r=n.places;s?r=n.places.substring(s+1):+r>=0||(r=(i[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(i[1]||n.places){s&&(n.places=n.places.substring(0,s));const e=void 0!==n.places?n.places:i[1]&&i[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+r<a.length&&(o[1]=a.substr(0,Number(r)))}else o[1]&&o.pop();const l=i[0].replace(",","");let c=l.indexOf("0");-1!==c&&(c=l.length-c,c>o[0].length&&(o[0]=o[0].padStart(c,"0")),l.includes("#")||(o[0]=o[0].substr(o[0].length-c)));let u,h,d=i[0].lastIndexOf(",");if(-1!==d){u=i[0].length-d-1;const e=i[0].substr(0,d);d=e.lastIndexOf(","),-1!==d&&(h=e.length-d-1)}const f=[];for(let e=o[0];e;){const t=e.length-u;f.push(t>0?e.substr(t):e),e=t>0?e.slice(0,t):"",h&&(u=h,h=void 0)}return o[0]=f.reverse().join(n.group||","),o.join(n.decimal||".")}(e,c[0],{decimal:s,group:i,places:n.places,round:n.round}))}(e,i,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function c(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,s=t.group,r=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const c=n.split(";");1===c.length&&c.push("-"+c[0]);const u=d(c,(t=>(t="(?:"+(0,i.Qs)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?s:[s,""],fractional:e.fractional,decimal:r,exponent:!1},i=t.split(".");let o=e.places;1===i.length&&1!==a&&(i[1]="###"),1===i.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?i[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<i[1].length&&(o+=","+i[1].length),n.places=o);const l=i[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!/^0/.test(String(e.places))||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=h(e),n=d(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let i=t+n;return n&&(i="(?:(?:"+i+")|(?:"+n+"))"),i+d(e.exponent,(t=>t?"([eE]"+h({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:u.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:s,decimal:r,factor:a}}function u(e,t){const n=c(t),i=new RegExp("^"+n.regexp+"$").exec(e);if(!i)return NaN;let s=i[1];if(!i[1]){if(!i[2])return NaN;s=i[2],n.factor*=-1}return s=s.replace(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(s)*n.factor}function h(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,(e=>e?"[-+]":""),!0)+d(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,i.Qs)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,s=e.groupSize2;if(s){const e="(?:0|[1-9]\\d{0,"+(s-1)+"}(?:["+t+"]\\d{"+s+"})*["+t+"]\\d{"+n+"})";return n-s>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const d=(e,t,n)=>{if(!(e instanceof Array))return t(e);const i=[];for(let n=0;n<e.length;n++)i.push(t(e[n]));return f(i.join("|"),Boolean(n))},f=(e,t)=>"("+(t?"?:":"")+e+")"},17445:(e,t,n)=>{n.d(t,{N1:()=>d,YP:()=>l,Z_:()=>m,gx:()=>c,nn:()=>g,on:()=>h,tX:()=>_});var i=n(91460),s=n(50758),r=n(70586),o=n(95330),a=n(26258);function l(e,t,n={}){return u(e,t,n,f)}function c(e,t,n={}){return u(e,t,n,p)}function u(e,t,n={},i){let s=null;const o=n.once?(e,n)=>{i(e)&&((0,r.hw)(s),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(s=(0,a.aQ)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return s}function h(e,t,n,o={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),o.onListenerRemove?.(a),a=null,c=null)}function d(e){o.once&&o.once&&(0,r.hw)(u),n(e)}const f=l(e,((e,n)=>{h(),(0,i.vT)(e)&&(a=e,c=(0,i.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,s.kB)((()=>{f.remove(),h()})),u}function d(e,t){return function(e,t,n){if((0,o.Hc)(n))return Promise.reject((0,o.zE)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((i,r)=>{a=(0,s.AL)([(0,o.fu)(n,(()=>{l(),r((0,o.zE)())})),u(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??f)])}))}(e,p,t)}function f(e){return!0}function p(e){return!!e}n(87538);const m={sync:!0},g={initial:!0},_={sync:!0,initial:!0}},16306:(e,t,n)=>{n.d(t,{aX:()=>w});var i=n(68773),s=n(20102),r=n(92604),o=n(38913),a=n(58901),l=n(73913),c=n(8744),u=n(40488),h=(n(66577),n(3172)),d=n(33955),f=n(11282),p=n(17452);async function m(e,t,n){const i="string"==typeof e?(0,p.mN)(e):e,s=t[0].spatialReference,r=(0,d.Ji)(t[0]),o={...n,query:{...i.query,f:"json",sr:s.wkid??JSON.stringify(s),geometries:JSON.stringify((l=t,{geometryType:(0,d.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:a}=await(0,h.default)(i.path+"/simplify",o);var l;return function(e,t,n){const i=(0,d.q9)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=n,t}))}(a.geometries,r,s)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function _(e){return"polygon"===e[0].type}function y(e){return"polyline"===e[0].type}function x(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(e),new s.Z(e)}const n=(0,l.x3)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const s=e[i][0],r=e[i][1],o=e[i+1][0],a=e[i+1][1],l=Math.sqrt((o-s)*(o-s)+(a-r)*(a-r)),c=(a-r)/l,u=(o-s)/l,h=l/t;if(h>1){for(let e=1;e<=h-1;e++){const i=e*t,o=u*i+s,a=c*i+r;n.push([o,a])}const e=(l+Math.floor(h-1)*t)/2,i=u*e+s,o=c*e+r;n.push([i,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:i,spatialReference:e.spatialReference}):new a.Z({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return n&&(e=(0,l.Sy)(e,n)),e}function b(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,l.XZ)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,l.XZ)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,l.XZ)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,l.XZ)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function S(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const s=t.cutIndexes[i],r=t.geometries[i],o=(0,l.x3)(r);for(let e=0;e<o.length;e++){const t=o[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,l.XZ)(n,180);for(let n=0;n<t.length;n++){const t=r.getPoint(e,n);r.setPoint(e,n,t.clone().offset(i,0))}return!0}}))}if(s===n){if(_(e))for(const t of(0,l.x3)(r))e[s]=e[s].addRing(t);else if(y(e))for(const t of(0,l.x3)(r))e[s]=e[s].addPath(t)}else n=s,e[s]=r}return e}async function w(e,t,n){if(!Array.isArray(e))return w([e],t);t&&"string"!=typeof t&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??i.Z.geometryServiceUrl;let r,p,_,y,I,v,F,B,M=0;const E=[],N=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,p=(0,c.C5)(r),_=r.isWebMercator,v=_?102100:4326,y=l.UZ[v].maxX,I=l.UZ[v].minX,F=l.UZ[v].plus180Line,B=l.UZ[v].minus180Line),p)if("mesh"===t.type)N.push(t);else if("point"===t.type)N.push(b(t.clone(),y,I));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,y,I))),N.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,p);N.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,n=(0,l.XZ)(e.xmin,I)*(2*y);let i=0===n?t.clone():(0,l.Sy)(t.clone(),n);e.offset(n,0),e.intersects(F)&&e.xmax!==y?(M=e.xmax>M?e.xmax:M,i=x(i,_),E.push(i),N.push("cut")):e.intersects(B)&&e.xmin!==I?(M=e.xmax*(2*y)>M?e.xmax*(2*y):M,i=x(i,_,360),E.push(i),N.push("cut")):N.push(i)}else N.push(t.clone());else N.push(t);else N.push(t);let z=(0,l.XZ)(M,y),T=-90;const Z=z,C=new a.Z;for(;z>0;){const e=360*z-180;C.addPath([[e,T],[e,-1*T]]),T*=-1,z--}if(E.length>0&&Z>0){const t=S(E,await async function(e,t,n,i){const s=(0,f.en)(e),r=t[0].spatialReference,o={...i,query:{...s.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,d.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,h.default)(s.path+"/cut",o),{cutIndexes:l,geometries:c=[]}=a.data;return{cutIndexes:l,geometries:c.map((e=>{const t=(0,d.im)(e);return t.spatialReference=r,t}))}}(s,E,C,n)),i=[],r=[];for(let n=0;n<N.length;n++){const s=N[n];if("cut"!==s)r.push(s);else{const s=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(i.push(s),r.push("simplify")):r.push(_?(0,u.$)(s):s)}}if(!i.length)return r;const o=await m(s,i,n),a=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?a.push(t):a.push(_?(0,u.$)(o.shift()):o.shift())}return a}const R=[];for(let e=0;e<N.length;e++){const t=N[e];if("cut"!==t)R.push(t);else{const e=E.shift();R.push(!0===_?(0,u.$)(e):e)}}return R}},73913:(e,t,n)=>{n.d(t,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>c});var i=n(58901),s=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=c(e);for(const e of n)for(const n of e)n[0]+=t;return e}function c(e){return(0,r.oU)(e)?e.rings:e.paths}},70171:(e,t,n)=>{let i;n.d(t,{Kd:()=>o,Ze:()=>u,qe:()=>l});const s=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function r(){return s??globalThis.navigator?.language??"en"}function o(){return void 0===i&&(i=r()),i}const a=[];function l(e){return a.push(e),{remove(){a.splice(a.indexOf(e),1)}}}const c=[];function u(e){return c.push(e),{remove(){a.splice(c.indexOf(e),1)}}}globalThis.addEventListener?.("languagechange",(function(){const e=r();i!==e&&(i=e,[...c].forEach((t=>{t.call(null,e)})),[...a].forEach((t=>{t.call(null,e)})))}))},37549:(e,t,n)=>{n.d(t,{H:()=>a});var i=n(80442),s=n(24133),r=n(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.Q(9,(0,i.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((n,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.cS)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,n)=>{n.d(t,{Z:()=>g});var i=n(20102),s=n(32448),r=n(92604),o=n(60437),a=n(24470),l=n(98732),c=n(37549),u=n(29730),h=n(70272),d=n(5428);const f={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new h.u_(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(null==e.centroid&&(e.centroid=(0,u.Y)(new d.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};var p=n(11490);const m=(0,o.Ue)();class g{constructor(e){this.geometryInfo=e,this._boundsStore=new c.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new s.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:(0,p.S2)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,o.JR)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,n)=>{this._markedIds.has(n)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(this._markedIds.add(t),n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),null==e.geometry||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,l.$)(null!=s?s:(0,a.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e)}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},27793:(e,t,n)=>{n.r(t),n.d(t,{default:()=>G}),n(66577);var i=n(3172),s=n(66643),r=n(20102),o=n(92604),a=n(95330),l=n(17452),c=n(44547),u=n(37455),h=n(8744),d=n(40488),f=n(70272),p=n(5428),m=n(57191),g=n(37427),_=n(4136),y=n(14808),x=n(35671);const b=/^\s*"([\S\s]*)"\s*$/,S=/""/g,w="\n",I=[","," ",";","|","\t"];function*v(e,t,n){let i=0;for(;i<=e.length;){const s=e.indexOf(t,i),r=e.substring(i,s>-1?s:void 0);i+=r.length+t.length,n&&!r.trim()||(yield r)}}function F(e){const t=e.includes("\r\n")?"\r\n":w;return v(e,t,!0)}function B(e,t){return v(e,t,!1)}function M(e,t,n){e=e.trim(),t=t?.trim();const i=[],s=Array.from(new Set([n?.delimiter,...I])).filter((e=>null!=e));for(const n of s){const s=z(e,n).length,r=z(t,n).length??s;s>1&&i.push({weight:Math.min(s,r),delimiter:n})}const r=i.sort((({weight:e},{weight:t})=>t-e)).map((({delimiter:e})=>e));for(const t of r){const i=Z(N(e,t).names,n?.longitudeField,n?.latitudeField);if(i.longitudeFieldName&&i.latitudeFieldName)return{delimiter:t,locationInfo:i}}return{delimiter:r[0],locationInfo:null}}function*E(e,t,n,i=(()=>Object.create(null))){const s=F(e);s.next();let r="",o="",a=0,l=i(),c=0;e:for(const e of s){const s=B(e,n);for(const e of s)if(r+=o+e,o="",a+=T(e),a%2==0){if(a>0){const e=b.exec(r);if(!e){l=i(),c=0,r="",a=0;continue e}l[t[c]]=e[1].replace(S,'"'),c++}else l[t[c]]=r,c++;r="",a=0}else o=n;0===a?(yield l,l=i(),c=0):o=w}}function N(e,t){const n=z(e,t).filter((e=>null!=e)),i=n.map((e=>(0,x.q6)(e)));for(let e=i.length-1;e>=0;e--)i[e]||(i.splice(e,1),n.splice(e,1));return{names:i,aliases:n}}function z(e,t){if(!e?.length)return[];const n=[];let i="",s="",r=0;const o=B(e,t);for(const e of o)if(i+=s+e,s="",r+=T(e),r%2==0){if(r>0){const e=b.exec(i);e&&n.push(e[1].replace(S,'"'))}else n.push(i);i="",r=0}else s=t;return n}function T(e){let t=0,n=0;for(n=e.indexOf('"',n);n>=0;)t++,n=e.indexOf('"',n+1);return t}function Z(e,t,n){t=(0,x.q6)(t)?.toLowerCase(),n=(0,x.q6)(n)?.toLowerCase();const i=e.map((e=>e.toLowerCase())),s=t?e[i.indexOf(t)]:null,r=n?e[i.indexOf(n)]:null;return{longitudeFieldName:s||e[i.indexOf(Y.find((e=>i.includes(e))))],latitudeFieldName:r||e[i.indexOf(q.find((e=>i.includes(e))))]}}function C(e,t,n,i,s){const r=[],o=E(e,n,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<n.length;e++){const t=n[e],o=i[e];if(t===s.longitudeFieldName||t===s.latitudeFieldName)r.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e,n;switch(R(a.map((e=>e[t])))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate",n=36;break;default:e="esriFieldTypeString",n=255}r.push({name:t,type:e,alias:o,length:n})}}return r}function R(e){if(!e.length)return"string";const t=/[^+-.,0-9]/;return e.map((e=>{let n=!1;if(""!==e){if(t.test(e))n=!0;else{let t=O(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!isNaN(t))return"double";if(e.includes(",")){if(e=e.replace(",","."),t=Number(e),!isNaN(t))return"double";n=!0}else n=!0}else n=!0}return n?/^[-]?\d*[.,]?\d*$/.test(e)?"string":X(new Date(e),e)?"date":"string":"string"}})).reduce(((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0))}function X(e,t){if(!e||"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))return!1;let n=!0;if(!A&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!L.test(e[i]),i++;n=!t}}return n}const O=function(){const e=(0,y.lt)(),t=new RegExp("^"+e.regexp+"$"),n=new RegExp("["+e.group+"\\s\\xa0]","g"),i=e.factor;return s=>{const r=t.exec(s);if(e.factor=i,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(n,"").replace(e.decimal,"."),+o*e.factor}}(),L=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,A=Number.isNaN(new Date("technology 10").getTime()),q=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],Y=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];var k=n(25278),j=n(99514),D=n(82971);const P=(0,k.bU)("esriGeometryPoint"),U=["csv"],J=[0,0];class ${constructor(e,t){this.x=e,this.y=t}}class G{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[n]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),i=function(e,t){const n=t.parsingOptions||{},i={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},s=i.layerDefinition={name:(0,l.vt)(t.url,U)||"csv",drawingInfo:P,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:4326}}},o=F(e),a=o.next().value?.trim(),c=o.next().value?.trim();if(!a)throw new r.Z("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:u,locationInfo:h}=M(a,c,n);if(!u)throw new r.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:c,parsingOptions:n});if(!h)throw new r.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:c,parsingOptions:n});i.locationInfo=h,i.delimiter=u;const{names:d,aliases:f}=N(a,u),p=C(e,i.delimiter,d,f,i.locationInfo);if(n.fields?.length){const e=new j.Z(n.fields);for(const t of p){const n=e.get(t.name);n&&Object.assign(t,n)}}if(!p.some((e=>"esriFieldTypeOID"===e.type&&(s.objectIdField=e.name,!0)))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};s.objectIdField=e.name,p.unshift(e)}s.fields=p;const m=new j.Z(s.fields);if(i.locationInfo&&(i.locationInfo.latitudeFieldName=m.get(i.locationInfo.latitudeFieldName).name,i.locationInfo.longitudeFieldName=m.get(i.locationInfo.longitudeFieldName).name),s.timeInfo){const e=s.timeInfo;if(e.startTimeField){const t=m.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=m.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=m.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(s.timeInfo=null)}return i}(n,e);this._locationInfo=i.locationInfo,this._delimiter=i.delimiter,this._queryEngine=this._createQueryEngine(i);const s=await this._createFeatures(n);this._queryEngine.featureStore.addMany(s);const{fullExtent:o,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(i.layerDefinition.extent=o,a){const{start:e,end:t}=a;i.layerDefinition.timeInfo.timeExtent=[e,t]}return i}async applyEdits(){throw new r.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,s.vr)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,a.D_)(e)||o.Z.getLogger("esri.layers.CSVLayer").error(new r.Z("csv-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:n}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this._loadOptions;if(!t)throw new r.Z("csv-layer:invalid-source","url not defined");const s=(0,l.mN)(t);return(await(0,i.default)(s.path,{query:{...s.query,...n},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:n,extent:i,timeInfo:s}=e.layerDefinition,r=new m.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new _.q({fields:n,geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:s,objectIdField:t,spatialReference:i.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:r})}async _createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:n}=this._locationInfo,{objectIdField:i,fieldsIndex:s,spatialReference:r}=this._queryEngine;let o=[];const a=[],l=s.fields.filter((e=>e.name!==i)).map((e=>e.name));let m=0;const g={};for(const e of s.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,x.os)(e);void 0!==t&&(g[e.name]=t)}const _=E(e,l,this._delimiter,(0,k.Dm)(g,i));for(const e of _){const r=this._parseCoordinateValue(e[t]),l=this._parseCoordinateValue(e[n]);if(null!=l&&null!=r&&!isNaN(r)&&!isNaN(l)){e[t]=r,e[n]=l;for(const i in e)if(i!==t&&i!==n)if(s.isDateField(i)){const t=new Date(e[i]);e[i]=X(t,e[i])?t.getTime():null}else if(s.isNumericField(i)){const t=O(e[i]);isNaN(t)?e[i]=null:e[i]=t}e[i]=m,m++,o.push(new $(l,r)),a.push(e)}}if(!(0,h.fS)({wkid:4326},r))if((0,h.sS)(r))for(const e of o)[e.x,e.y]=(0,d.hG)(e.x,e.y,J);else o=(0,c.oj)(u.N,o,D.Z.WGS84,r,null,null);const y=[];for(let e=0;e<o.length;e++){const{x:t,y:n}=o[e],s=a[e];s[i]=e+1,y.push(new f.u_(new p.Z([],[t,n]),s,null,s[i]))}return y}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=O(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,g._W)(h.Zn,e)}catch{throw new r.Z("csv-layer:projection-not-supported","Projection not supported")}}}},25278:(e,t,n)=>{n.d(t,{Dm:()=>u,Hq:()=>h,MS:()=>d,bU:()=>a});var i=n(80442),s=n(22974),r=n(61159),o=n(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function u(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new i}catch(n){return()=>({[t]:null,...e})}}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:r.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},11282:(e,t,n)=>{n.d(t,{cv:()=>a,en:()=>o,lA:()=>r}),n(68773),n(40330);var i=n(22974),s=n(17452);function r(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,s.mN)(e):(0,i.d9)(e)}function a(e,t,n){const i={};for(const s in e){if("declaredClass"===s)continue;const r=e[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[s]=[];for(let e=0;e<r.length;e++)i[s][e]=a(r[e])}else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(n&&n[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?r:JSON.stringify(r);else i[s]=r}return i}n(71058)},58333:(e,t,n)=>{n.d(t,{ET:()=>r,I4:()=>s,eG:()=>l,lF:()=>o,lj:()=>u,qP:()=>a,wW:()=>c});const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4720,1444],{16306:(e,t,a)=>{a.d(t,{aX:()=>Z});var r=a(68773),s=a(20102),n=a(92604),i=a(38913),o=a(58901),l=a(73913),d=a(8744),u=a(40488),p=(a(66577),a(3172)),c=a(33955),h=a(11282),f=a(17452);async function y(e,t,a){const r="string"==typeof e?(0,f.mN)(e):e,s=t[0].spatialReference,n=(0,c.Ji)(t[0]),i={...a,query:{...r.query,f:"json",sr:s.wkid??JSON.stringify(s),geometries:JSON.stringify((l=t,{geometryType:(0,c.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:o}=await(0,p.default)(r.path+"/simplify",i);var l;return function(e,t,a){const r=(0,c.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=a,t}))}(o.geometries,n,s)}const m=n.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function F(e,t,a){if(t){const t=function(e,t){if(!(e instanceof o.Z||e instanceof i.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m.error(e),new s.Z(e)}const a=(0,l.x3)(e),r=[];for(const e of a){const a=[];r.push(a),a.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],n=e[r][1],i=e[r+1][0],o=e[r+1][1],l=Math.sqrt((i-s)*(i-s)+(o-n)*(o-n)),d=(o-n)/l,u=(i-s)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const r=e*t,i=u*r+s,o=d*r+n;a.push([i,o])}const e=(l+Math.floor(p-1)*t)/2,r=u*e+s,i=d*e+n;a.push([r,i])}a.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.Z({rings:r,spatialReference:e.spatialReference}):new o.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return a&&(e=(0,l.Sy)(e,a)),e}function w(e,t,a){if(Array.isArray(e)){const r=e[0];if(r>t){const a=(0,l.XZ)(r,t);e[0]=r+a*(-2*t)}else if(r<a){const t=(0,l.XZ)(r,a);e[0]=r+t*(-2*a)}}else{const r=e.x;if(r>t){const a=(0,l.XZ)(r,t);e=e.clone().offset(a*(-2*t),0)}else if(r<a){const t=(0,l.XZ)(r,a);e=e.clone().offset(t*(-2*a),0)}}return e}function A(e,t){let a=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],n=t.geometries[r],i=(0,l.x3)(n);for(let e=0;e<i.length;e++){const t=i[e];t.some((a=>{if(a[0]<180)return!0;{let a=0;for(let e=0;e<t.length;e++){const r=t[e][0];a=r>a?r:a}a=Number(a.toFixed(9));const r=-360*(0,l.XZ)(a,180);for(let a=0;a<t.length;a++){const t=n.getPoint(e,a);n.setPoint(e,a,t.clone().offset(r,0))}return!0}}))}if(s===a){if(g(e))for(const t of(0,l.x3)(n))e[s]=e[s].addRing(t);else if(b(e))for(const t of(0,l.x3)(n))e[s]=e[s].addPath(t)}else a=s,e[s]=n}return e}async function Z(e,t,a){if(!Array.isArray(e))return Z([e],t);t&&"string"!=typeof t&&m.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.Z.geometryServiceUrl;let n,f,g,b,I,v,S,R,E=0;const x=[],$=[];for(const t of e)if(null!=t)if(n||(n=t.spatialReference,f=(0,d.C5)(n),g=n.isWebMercator,v=g?102100:4326,b=l.UZ[v].maxX,I=l.UZ[v].minX,S=l.UZ[v].plus180Line,R=l.UZ[v].minus180Line),f)if("mesh"===t.type)$.push(t);else if("point"===t.type)$.push(w(t.clone(),b,I));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>w(e,b,I))),$.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,f);$.push(e.rings?new i.Z(e):e)}else if(t.extent){const e=t.extent,a=(0,l.XZ)(e.xmin,I)*(2*b);let r=0===a?t.clone():(0,l.Sy)(t.clone(),a);e.offset(a,0),e.intersects(S)&&e.xmax!==b?(E=e.xmax>E?e.xmax:E,r=F(r,g),x.push(r),$.push("cut")):e.intersects(R)&&e.xmin!==I?(E=e.xmax*(2*b)>E?e.xmax*(2*b):E,r=F(r,g,360),x.push(r),$.push("cut")):$.push(r)}else $.push(t.clone());else $.push(t);else $.push(t);let O=(0,l.XZ)(E,b),L=-90;const U=O,j=new o.Z;for(;O>0;){const e=360*O-180;j.addPath([[e,L],[e,-1*L]]),L*=-1,O--}if(x.length>0&&U>0){const t=A(x,await async function(e,t,a,r){const s=(0,h.en)(e),n=t[0].spatialReference,i={...r,query:{...s.query,f:"json",sr:JSON.stringify(n),target:JSON.stringify({geometryType:(0,c.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(a)}},o=await(0,p.default)(s.path+"/cut",i),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,c.im)(e);return t.spatialReference=n,t}))}}(s,x,j,a)),r=[],n=[];for(let a=0;a<$.length;a++){const s=$[a];if("cut"!==s)n.push(s);else{const s=t.shift(),i=e[a];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(r.push(s),n.push("simplify")):n.push(g?(0,u.$)(s):s)}}if(!r.length)return n;const i=await y(s,r,a),o=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?o.push(t):o.push(g?(0,u.$)(i.shift()):i.shift())}return o}const X=[];for(let e=0;e<$.length;e++){const t=$[e];if("cut"!==t)X.push(t);else{const e=x.shift();X.push(!0===g?(0,u.$)(e):e)}}return X}},73913:(e,t,a)=>{a.d(t,{Sy:()=>l,UZ:()=>i,XZ:()=>o,x3:()=>d});var r=a(58901),s=a(82971),n=a(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const a=d(e);for(const e of a)for(const a of e)a[0]+=t;return e}function d(e){return(0,n.oU)(e)?e.rings:e.paths}},14720:(e,t,a)=>{a.r(t),a.d(t,{applyEdits:()=>f,uploadAssets:()=>w});var r=a(38171),s=a(46791),n=a(20102),i=a(22974),o=a(95330),l=a(17452),d=a(16306),u=a(66361),p=a(2981),c=a(84230);function h(e){return e&&null!=e.applyEdits}async function f(e,t,a,r={}){let l;if((0,u.lQ)(e)&&e.url)l=(0,u.jF)(e.url,e.layerId,"original-and-current-features"===r.returnServiceEditsOption);else{l=(0,o.hh)(),l.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:l.promise};e.emit("apply-edits",t)}try{const{results:o,edits:d}=await async function(e,t,a,r){if(await e.load(),!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,c.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:o}=await async function(e,t,a){const r=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=null!=e.infoFor3D;if(!t||!r&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const l=(0,c.S1)(e);if(!l.data.isVersioned&&a?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!l.editing.supportsRollbackOnFailure&&a?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!l.editing.supportsGlobalId&&a?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!l.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!a?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const d={...a};if(null!=d.rollbackOnFailureEnabled||l.editing.supportsRollbackOnFailure||(d.rollbackOnFailureEnabled=!0),!1===d.rollbackOnFailureEnabled&&"original-and-current-features"===d.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!l.editing.supportsReturnServiceEditsInSourceSpatialReference&&d.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(d.returnServiceEditsInSourceSR&&"original-and-current-features"!==d.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const u={...t};if(u.addFeatures=t&&s.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():u.addFeatures||[],u.updateFeatures=t&&s.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():u.updateFeatures||[],u.deleteFeatures=t&&s.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():u.deleteFeatures||[],u.addFeatures.length&&!l.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(u.updateFeatures.length&&!l.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(u.deleteFeatures.length&&!l.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");u.addAttachments=u.addAttachments||[],u.updateAttachments=u.updateAttachments||[],u.deleteAttachments=u.deleteAttachments||[],u.addFeatures=u.addFeatures.map(b),u.updateFeatures=u.updateFeatures.map(b),u.addAssetFeatures=[];const h=a?.globalIdUsed||o;return u.addFeatures.forEach((t=>function(e,t,a){y(e,t,a)}(t,e,h))),u.updateFeatures.forEach((t=>function(e,t,a){y(e,t,a);const r=(0,c.S1)(t);if("geometry"in e&&null!=e.geometry&&!r?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),u.deleteFeatures.forEach((t=>function(e,t,a){y(e,t,a)}(t,e,h))),u.addAttachments.forEach((t=>m(t,e))),u.updateAttachments.forEach((t=>m(t,e))),o&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:a}=t,r=(0,p.PM)("model/gltf-binary",a.supportedFormats)??(0,p.Es)("glb",a.supportedFormats);if(!r||!a.editFormats.includes(r))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??(e.addAssetFeatures=[]);const{addAssetFeatures:s}=e;for(const t of e.addFeatures??[])F(t)&&s.push(t);for(const t of e.updateFeatures??[])F(t)&&s.push(t)}(u,e),{edits:await g(u),options:d}}(e,a,r);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,o)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,a,r),u=e=>e.filter((e=>!e.error)).map(i.d9),f={edits:d,addedFeatures:u(o.addFeatureResults),updatedFeatures:u(o.updateFeatureResults),deletedFeatures:u(o.deleteFeatureResults),addedAttachments:u(o.addAttachmentResults),updatedAttachments:u(o.updateAttachmentResults),deletedAttachments:u(o.deleteAttachmentResults),exceededTransferLimit:!1};return o.editedFeatureResults?.length&&(f.editedFeatures=o.editedFeatureResults),l.resolve(f),o}catch(e){throw l.reject(e),e}}function y(e,t,a){if(a){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function m(e,t){const{feature:a,attachment:r}=e;if(!a||"attributes"in a&&!a.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in a)&&!a.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!r.data&&!r.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(r.data instanceof File&&r.data.name||r.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&r.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof r.data){const e=(0,l.sJ)(r.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function g(e){const t=e.addFeatures??[],a=e.updateFeatures??[],r=t.concat(a).map((e=>e.geometry)),s=await(0,d.aX)(r),n=t.length,i=a.length;return s.slice(0,n).forEach(((e,a)=>t[a].geometry=e)),s.slice(n,n+i).forEach(((e,t)=>a[t].geometry=e)),e}function b(e){const t=new r.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function F(e){return"mesh"===e?.geometry?.type}function w(e,t,a,r){if(!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(a,r)}},66361:(e,t,a)=>{a.d(t,{jF:()=>d,lQ:()=>c,o1:()=>h});var r=a(43697),s=a(32448),n=a(22974),i=a(95330),o=(a(92604),a(75215),a(20102),a(80442),a(52011));const l=new s.Z.EventEmitter;function d(e,t,a=!1){const r=(0,i.hh)();return a=null==t||a,l.emit("apply-edits",{serviceUrl:e,layerId:t,mayReceiveServiceEdits:a,result:r.promise}),r}const u="esri.layers.mixins.EditBusLayer",p=Symbol(u);function c(e){return null!=e&&"object"==typeof e&&p in e}const h=e=>{var t;let a=class extends e{constructor(...e){super(...e),this[t]=!0,this.when().then((()=>{this.own([l.on("apply-edits",(e=>{const{serviceUrl:t,layerId:a,mayReceiveServiceEdits:r,result:s}=e,i=t===this.url,o=null!=a&&null!=this.layerId&&a===this.layerId;if(!i||!o&&!r)return;const l=s.then((e=>{if(o&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:a,updates:r,deletes:s}=t.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:a?a.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1};return this.emit("edits",i),i}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1}}));this.emit("apply-edits",{result:l})}))])}),(()=>{}))}};return t=p,a=(0,r._)([(0,o.j)(u)],a),a}},2981:(e,t,a)=>{a.d(t,{Es:()=>l,PM:()=>o,rm:()=>d});const r=[["binary","application/octet-stream","bin",""]];function s(e,t){return[...r,...t].find((t=>t[0]===e))}function n(e,t){return[...r,...t].find((t=>t[1]===e))}function i(e,t){const a=e.toLowerCase();return[...r,...t].find((e=>e[2].split(",").some((e=>a.endsWith(e)))))}function o(e,t){const a=n(e,t);return a?.[0]}function l(e,t){const a=i(e,t);return a?.[0]}function d(e,t){const a=s(e,t);return a?.[1]}},11282:(e,t,a)=>{a.d(t,{cv:()=>o,en:()=>i,lA:()=>n}),a(68773),a(40330);var r=a(22974),s=a(17452);function n(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,s.mN)(e):(0,r.d9)(e)}function o(e,t,a){const r={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){r[s]=[];for(let e=0;e<n.length;e++)r[s][e]=o(n[e])}else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(a&&a[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?n:JSON.stringify(n);else r[s]=n}return r}a(71058)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7628,3172,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),s=(r(3172),r(20102)),o=r(92604),i=r(17452);const a=o.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.Z.assetsPath,e)}},88764:(e,t,r)=>{r.d(t,{q:()=>l});var n,s,o,i={},a={get exports(){return i},set exports(e){i=e}};n=a,s=function(){function e(r,n,s,o,i){for(;o>s;){if(o-s>600){var a=o-s+1,l=n-s+1,c=Math.log(a),h=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*h*(a-h)/a)*(l-a/2<0?-1:1);e(r,n,Math.max(s,Math.floor(n-l*h/a+u)),Math.min(o,Math.floor(n+(a-l)*h/a+u)),i)}var d=r[n],m=s,f=o;for(t(r,s,n),i(r[o],d)>0&&t(r,s,o);m<f;){for(t(r,m,f),m++,f--;i(r[m],d)<0;)m++;for(;i(r[f],d)>0;)f--}0===i(r[s],d)?t(r,s,f):t(r,++f,o),f<=n&&(s=f+1),n<=f&&(o=f-1)}}function t(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function r(e,t){return e<t?-1:e>t?1:0}return function(t,n,s,o,i){e(t,n,s||0,o||t.length-1,i||r)}},void 0!==(o=s())&&(n.exports=o);const l=i},10661:(e,t,r)=>{r.d(t,{s:()=>s});var n=r(42100);class s extends n.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},24133:(e,t,r)=>{r.d(t,{Q:()=>a});var n=r(67676),s=r(70586),o=r(44553),i=r(88764);class a{constructor(e=9,t){this._compareMinX=u,this._compareMinY=d,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),y.prune(),b.prune(),v.prune(),M.prune()}all(e){this._all(this._data,e)}search(e,t){let r=this._data;const n=this._toBBox;if(w(e,r))for(y.clear();r;){for(let s=0,o=r.children.length;s<o;s++){const o=r.children[s],i=r.leaf?n(o):o;w(e,i)&&(r.leaf?t(o):x(e,i)?this._all(o,t):y.push(o))}r=y.pop()}}collides(e){let t=this._data;const r=this._toBBox;if(!w(e,t))return!1;for(y.clear();t;){for(let n=0,s=t.children.length;n<s;n++){const s=t.children[n],o=t.leaf?r(s):s;if(w(e,o)){if(t.leaf||x(e,o))return!0;y.push(s)}}t=y.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new O([]),this}remove(e){if(!e)return this;let t,r=this._data,o=null,i=0,a=!1;const l=this._toBBox(e);for(v.clear(),M.clear();r||v.length>0;){if(r||(r=(0,s.j0)(v.pop()),o=v.data[v.length-1],i=M.pop()??0,a=!0),r.leaf&&(t=(0,n.cq)(r.children,e,r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),v.push(r),this._condense(v),this;a||r.leaf||!x(r,l)?o?(i++,r=o.children[i],a=!1):r=null:(v.push(r),M.push(i),i=0,o=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let r=e;for(b.clear();r;){if(!0===r.leaf)for(const e of r.children)t(e);else b.pushArray(r.children);r=b.pop()??null}}_build(e,t,r,n){const s=r-t+1;let o=this._maxEntries;if(s<=o){const n=new O(e.slice(t,r+1));return l(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/o**(n-1)));const i=new k([]);i.height=n;const a=Math.ceil(s/o),c=a*Math.ceil(Math.sqrt(o));_(e,t,r,c,this._compareMinX);for(let s=t;s<=r;s+=c){const t=Math.min(s+c-1,r);_(e,s,t,a,this._compareMinY);for(let r=s;r<=t;r+=a){const s=Math.min(r+a-1,t);i.children.push(this._build(e,r,s,n-1))}}return l(i,this._toBBox),i}_chooseSubtree(e,t,r,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let o=0,i=t.children.length;o<i;o++){const i=t.children[o],a=m(i),l=p(e,i)-a;l<s?(s=l,n=a<n?a:n,r=i):l===s&&a<n&&(n=a,r=i)}t=r||t.children[0]}return t}_insert(e,t,r){const n=this._toBBox,s=r?e:n(e);v.clear();const o=this._chooseSubtree(s,this._data,t,v);for(o.children.push(e),h(o,s);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;this._adjustParentBBoxes(s,v,t)}_split(e,t){const r=e.data[t],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);const o=this._chooseSplitIndex(r,s,n);if(!o)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const i=r.children.splice(o,r.children.length-o),a=r.leaf?new O(i):new k(i);a.height=r.height,l(r,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(r,a)}_splitRoot(e,t){this._data=new k([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let n,s,o;n=s=1/0;for(let i=t;i<=r-t;i++){const t=c(e,0,i,this._toBBox),a=c(e,i,r,this._toBBox),l=g(t,a),h=m(t)+m(a);l<n?(n=l,o=i,s=h<s?h:s):l===n&&h<s&&(s=h,o=i)}return o}_chooseSplitAxis(e,t,r){const n=e.leaf?this._compareMinX:u,s=e.leaf?this._compareMinY:d;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,s)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);const s=this._toBBox,o=c(e,0,t,s),i=c(e,r-t,r,s);let a=f(o)+f(i);for(let n=t;n<r-t;n++){const t=e.children[n];h(o,e.leaf?s(t):t),a+=f(o)}for(let n=r-t-1;n>=t;n--){const t=e.children[n];h(i,e.leaf?s(t):t),a+=f(i)}return a}_adjustParentBBoxes(e,t,r){for(let n=r;n>=0;n--)h(t.data[n],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const r=e.data[t];if(0===r.children.length)if(t>0){const s=e.data[t-1],o=s.children;o.splice((0,n.cq)(o,r,o.length,s.indexHint),1)}else this.clear();else l(r,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){c(e,0,e.children.length,t,e)}function c(e,t,r,n,s){s||(s=new O([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let o,i=t;i<r;i++)o=e.children[i],h(s,e.leaf?n(o):o);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,s-r)*Math.max(0,o-n)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,r,n,o){const a=[t,r];for(;a.length;){const t=(0,s.j0)(a.pop()),r=(0,s.j0)(a.pop());if(t-r<=n)continue;const l=r+Math.ceil((t-r)/n/2)*n;(0,i.q)(e,l,r,t,o),a.push(r,l,l,t)}}const y=new o.Z,b=new o.Z,v=new o.Z,M=new o.Z({deallocator:void 0});class q{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class T extends q{constructor(){super(...arguments),this.height=1,this.indexHint=new n.SO}}class O extends T{constructor(e){super(),this.children=e,this.leaf=!0}}class k extends T{constructor(e){super(),this.children=e,this.leaf=!1}}},61787:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r(80442),s=r(24133),o=r(66459);class i{async createIndex(e,t){const r=new Array;if(!e.vertexAttributes||!e.vertexAttributes.position)return new s.Q;const n=this._createMeshData(e),o=null!=t?await t.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(o)}createIndexThread(e){const t=new Float64Array(e.position),r=this._createPooledRBush();return e.components?this._createIndexComponentsThread(r,t,e.components.map((e=>new Uint32Array(e)))):this._createIndexAllThread(r,t)}_createIndexAllThread(e,t){const r=new Array(t.length/9);let n=0;for(let e=0;e<t.length;e+=9)r[n++]=a(t,e,e+3,e+6);return e.load(r),{result:e.toJSON()}}_createIndexComponentsThread(e,t,r){let n=0;for(const e of r)n+=e.length/3;const s=new Array(n);let o=0;for(const e of r)for(let r=0;r<e.length;r+=3)s[o++]=a(t,3*e[r],3*e[r+1],3*e[r+2]);return e.load(s),{result:e.toJSON()}}_createMeshData(e){const t=(e.transform?(0,o.I5)({position:e.vertexAttributes.position,normal:null,tangent:null},e.transform,e.spatialReference).position:e.vertexAttributes.position).buffer;return!e.components||e.components.some((e=>!e.faces))?{position:t}:{position:t,components:e.components.map((e=>e.faces))}}_createPooledRBush(){return new s.Q(9,(0,n.Z)("esri-csp-restrictions")?e=>e:[".minX",".minY",".maxX",".maxY"])}}function a(e,t,r,n){return{minX:Math.min(e[t],e[r],e[n]),maxX:Math.max(e[t],e[r],e[n]),minY:Math.min(e[t+1],e[r+1],e[n+1]),maxY:Math.max(e[t+1],e[r+1],e[n+1]),p0:[e[t],e[t+1],e[t+2]],p1:[e[r],e[r+1],e[r+2]],p2:[e[n],e[n+1],e[n+2]]}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var n=r(68773),s=r(40330),o=r(20102),i=r(80442),a=r(22974),l=r(95330),c=r(17452),h=r(19745),u=r(71058),d=r(85958);async function m(e,t){const a=(0,c.HK)(e),h=(0,c.jc)(e);h||a||(e=(0,c.Fv)(e));const x={url:e,requestOptions:{...t}};let w=(0,c.oh)(e);if(w){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=M("request:interceptor",e,t)}if((n instanceof Error||n instanceof o.Z)&&(r=M("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(w,x);if(null!=e)return{data:e,getHeader:y,httpStatus:200,requestOptions:x.requestOptions,url:x.url};w.after||w.error||(w=null)}if(e=x.url,"image"===(t=x.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw M("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),x)}else if(a)throw M("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),x);if("head"===t.method){if(t.body)throw M("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),x);if(a||h)throw M("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),x)}if(await async function(){(0,i.Z)("host-webworker")?f||(f=await r.e(9884).then(r.bind(r,29884))):m._abortableFetch||(m._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const _=new AbortController;(0,l.fu)(t,(()=>_.abort()));const b={controller:_,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,params:x,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},v=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,o=e.controller.signal,i=r.body;let a=null,c=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:r.cacheBust&&!m._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:o},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&n.Z.apiKey&&(0,u.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!T(t)&&!(0,l.Hc)(o)){let n;"immediate"===r.authMode?(await q(),n=await s.id.getCredential(t,{signal:o}),e.credential=n):"no-prompt"===r.authMode?(await q(),n=await s.id.getCredential(t,{prompt:!1,signal:o}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await O(e)}while(!await S(e,t,r))}catch(r){const n=M("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const o=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(o)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,c.kl)(o)){const e=(0,c.P$)(o,!0);e&&p.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&s.id){const e=s.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,i.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):y,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(b);return w?.after?.(v),v}let f;const p=n.Z.request,g="FormData"in globalThis,x=[499,498,403,401],w=["COM_0056","COM_0057","SB_0008"],_=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],y=()=>null,b=Symbol();function v(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||m._corsServers.includes(t)||(0,c.kl)(t)}function M(e,t,r,n){let s="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:y,ssl:!1};if(t instanceof o.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,o=t.message;o&&(s=o),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=b in t?t[b]:t}return(0,l.D_)(t)?(0,l.zE)():new o.Z(e,s,i)}async function q(){s.id||await Promise.all([r.e(6261),r.e(1400),r.e(450)]).then(r.bind(r,73660))}function T(e){return _.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},o=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",u=o?0:null!=r.timeout?r.timeout:p.timeout;let f=!1;if(!o){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let o={...r.query};e.credentialToken&&(o.token=e.credentialToken);let a=(0,c.B7)(o);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;f="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>p.maxUrlLength;const m=r.useProxy||!!(0,c.ed)(t);if(m){const e=(0,c.b7)(t);u=e.path,!f&&u.length+1+l>p.maxUrlLength&&(f=!0),e.query&&(o={...e.query,...o})}if("HEAD"===n.method&&(f||m)){if(f){if(l>p.maxUrlLength)throw M("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw M("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(m)throw M("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,o):(n.body=(0,c.B7)(o),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,o),m&&(e.useProxy=!0,t=`${u}?${t}`),o.token&&g&&n.body instanceof FormData&&!(0,h.P)(t)&&n.body.set("token",o.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,d.jH)(t)&&await(0,d.jz)(f?(0,c.fl)(t,o):t))}let x,w,_=0,y=!1;u>0&&(_=setTimeout((()=>{y=!0,e.controller.abort()}),u));try{if("native-request-init"===r.responseType)w=n,w.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!o&&!e.useProxy&&p.proxyUrl&&!v(t)){if(x=await m._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!m._corsServers.includes(t)&&m._corsServers.push(t)}(t),"native"===r.responseType)w=x;else if("HEAD"!==n.method)if(x.ok){switch(a){case"array-buffer":w=await x.arrayBuffer();break;case"blob":case"image":w=await x.blob();break;default:w=await x.text()}if(_&&(clearTimeout(_),_=0),"json"===a||"xml"===a||"document"===a)if(w)switch(a){case"json":w=JSON.parse(w);break;case"xml":w=k(w,"application/xml");break;case"document":w=k(w,"text/html")}else w=null;if(w){if("array-buffer"===a||"blob"===a){const e=x.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&w["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===a&&w instanceof Blob&&(w=await B(URL.createObjectURL(w),e,!0))}}else w=await x.text()}else w=await B(t,e)}catch(n){if("AbortError"===n.name){if(y)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!x&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||v(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{_&&clearTimeout(_)}return[x,w]}function k(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function S(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let o,i;if(!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[b]=r,o;r&&(r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[b]=r,o.details=r.messages));let a,l=null;o&&(i=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,a=o.messageCode,a=a&&a.toUpperCase());const c=n.authMode;if(403===i&&(4===l||o.message&&o.message.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&void 0!==i&&x.includes(i)&&!T(e.params.url)&&(403!==i||a&&!w.includes(a)&&(null==l||2===l&&e.credentialToken))){await q();try{const t=await s.id.getCredential(e.params.url,{error:M("request:server",o,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=void 0,e.credentialToken=void 0,!1;o=t}}if(o)throw o;return!0}function B(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.fetchPriority=p.priority,s.src=e,(0,d.fY)(s,e,r,n)}m._abortableFetch=null,m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function o(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>c,fY:()=>a,jH:()=>h,jz:()=>u});var n=r(68773),s=r(80442),o=r(95330),i=r(17452);function a(e,t,r=!1,n){return new Promise(((i,a)=>{if((0,o.Hc)(n))return void a(l());let c=()=>{d(),a(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),i(t)},u=()=>{if(!e)return;const t=e;d(),t.src="",a(l())};const d=()=>{(0,s.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,null!=n&&n.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t)};null!=n&&n.addEventListener("abort",u),(0,s.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){n.Z.request.crossOriginNoCorsDomains||(n.Z.request.crossOriginNoCorsDomains={});const t=n.Z.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function h(e){const t=n.Z.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function u(e){const t=n.Z.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const s=(0,i.mN)(e);e=s.path,"json"===s.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9880],{99880:(s,e,t)=>{t.d(e,{V:()=>h});var n=t(68773),a=(t(3172),t(20102)),o=t(92604),i=t(17452);const r=o.Z.getLogger("esri.assets");function h(s){if(!n.Z.assetsPath)throw r.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new a.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.Z.assetsPath,s)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1074],{59153:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>s});var a=e(27535),r=e(61363),i=e(24240),u=e(41534);async function c(n,t,e,a,c,s){if(1===a.length){if((0,r.m)(a[0]))return(0,i.t)(n,a[0],(0,r.A)(a[1],-1));if((0,r.x)(a[0]))return(0,i.t)(n,a[0].toArray(),(0,r.A)(a[1],-1))}else if(2===a.length){if((0,r.m)(a[0]))return(0,i.t)(n,a[0],(0,r.A)(a[1],-1));if((0,r.x)(a[0]))return(0,i.t)(n,a[0].toArray(),(0,r.A)(a[1],-1));if((0,r.T)(a[0])){const e=await a[0].load(),i=await o(u.WhereClause.create(a[1],e.getFieldsIndex()),s,c);return a[0].calculateStatistic(n,i,(0,r.A)(a[2],1e3),t.abortSignal)}}else if(3===a.length&&(0,r.T)(a[0])){const e=await a[0].load(),i=await o(u.WhereClause.create(a[1],e.getFieldsIndex()),s,c);return a[0].calculateStatistic(n,i,(0,r.A)(a[2],1e3),t.abortSignal)}return(0,i.t)(n,a,-1)}async function o(n,t,e){const a=n.getVariables();if(a.length>0){const r=[];for(let n=0;n<a.length;n++){const i={name:a[n]};r.push(await t.evaluateIdentifier(e,i))}const i={};for(let n=0;n<a.length;n++)i[a[n]]=r[n];return n.parameters=i,n}return n}function s(n){"async"===n.mode&&(n.functions.stdev=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("stdev",e,0,r,t,n)))},n.functions.variance=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("variance",e,0,r,t,n)))},n.functions.average=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("mean",e,0,r,t,n)))},n.functions.mean=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("mean",e,0,r,t,n)))},n.functions.sum=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("sum",e,0,r,t,n)))},n.functions.min=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("min",e,0,r,t,n)))},n.functions.max=function(t,e){return n.standardFunctionAsync(t,e,((e,a,r)=>c("max",e,0,r,t,n)))},n.functions.count=function(t,e){return n.standardFunctionAsync(t,e,((n,i,u)=>{if((0,r.y)(u,1,1,t,e),(0,r.T)(u[0]))return u[0].count(n.abortSignal);if((0,r.m)(u[0])||(0,r.c)(u[0]))return u[0].length;if((0,r.x)(u[0]))return u[0].length();throw new a.aV(t,a.rH.InvalidParameter,e)}))})}},5732:(n,t,e)=>{e.d(t,{c:()=>a});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1534],{59987:(e,t,r)=>{r.d(t,{EN:()=>c,H9:()=>i,eS:()=>o,f:()=>n});var n,a,s=r(27535);(a=n||(n={})).InvalidFunctionParameters="InvalidFunctionParameters",a.UnsupportedSqlFunction="UnsupportedSqlFunction",a.UnsupportedOperator="UnsupportedOperator",a.UnsupportedSyntax="UnsupportedSyntax",a.UnsupportedIsRhs="UnsupportedIsRhs",a.UnsupportedIsLhs="UnsupportedIsLhs",a.InvalidDataType="InvalidDataType",a.CannotCastValue="CannotCastValue",a.MissingStatisticParameters="MissingStatisticParameters";const u={[n.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[n.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[n.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[n.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[n.UnsupportedOperator]:"Unsupported operator - {operator}",[n.UnsupportedSyntax]:"Unsupported syntax - {node}",[n.UnsupportedSqlFunction]:"Sql function not found = {function}",[n.InvalidDataType]:"Invalid sql data type",[n.CannotCastValue]:"Cannot cast value to the required data type"};class o extends Error{constructor(e,t){super((0,s.Hy)(u[e],t)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}var i;!function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"}(i||(i={}));const l={[i.Cancelled]:"Cancelled",[i.InvalidStatResponse]:"Invalid statistics response from service",[i.InvalidRequest]:"Invalid request",[i.RequestFailed]:"Request failed - {reason}",[i.MissingFeatures]:"Missing features",[i.AggregationFieldNotFound]:"Aggregation field not found",[i.DataElementsNotFound]:"Data elements not found on service",[i.NeverReach]:"Encountered unreachable logic",[i.NotImplemented]:"Not implemented"};class c extends Error{constructor(e,t){super((0,s.Hy)(l[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}},41534:(e,t,r)=>{r.r(t),r.d(t,{WhereClause:()=>P,defaultAttributeAdapter:()=>j});var n=r(80442);function a(e,t){const r=s[e.toLowerCase()];return null!=r&&t>=r.minParams&&t<=r.maxParams}const s={min:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.min.apply(Math,e[0])},max:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.max.apply(Math,e[0])},avg:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:u(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sqrt(o(e[0]))},count:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:o(e[0])}};function u(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function o(e){const t=u(e),r=e.length;let n=0;for(const r of e)n+=(r-t)**2;return r>1?n/(r-1):0}var i=r(59987),l=r(19153),c=r(17126);class f{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static _fixDefaults(e){if(null!==e.precision||null!==e.secondary)throw new Error("Primary and Secondary SqlInterval qualifiers not supported")}static _parseSecondsComponent(e,t){if(t.includes(".")){const r=t.split(".");e.second=parseFloat(r[0]),e.millis=parseInt(r[1],10)}else e.second=parseFloat(t)}static createFromMilliseconds(e){const t=new f;return t.second=e/1e3,t}static createFromValueAndQualifer(e,t,r){let n=null;const a=new f;if(a.op="-"===r?"-":"+","interval-period"===t.type){f._fixDefaults(t);const r=new RegExp("^[0-9]{1,}$");if("year"===t.period||"month"===t.period)throw new Error("Year-Month Intervals not supported");if("second"===t.period){if(!/^[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$/.test(e))throw new Error("Illegal Interval");f._parseSecondsComponent(a,e)}else{if(!r.test(e))throw new Error("Illegal Interval");a[t.period]=parseFloat(e)}}else{if(f._fixDefaults(t.start),f._fixDefaults(t.end),"year"===t.start.period||"month"===t.start.period)throw new Error("Year-Month Intervals not supported");if("year"===t.end.period||"month"===t.end.period)throw new Error("Year-Month Intervals not supported");switch(t.start.period){case"day":switch(t.end.period){case"hour":if(n=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");a[t.start.period]=parseFloat(e.split(" ")[0]),a[t.end.period]=parseFloat(e.split(" ")[1]);break;case"minute":if(n=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const r=e.split(" ")[1].split(":");a.hour=parseFloat(r[0]),a.minute=parseFloat(r[1])}break;case"second":if(n=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const r=e.split(" ")[1].split(":");a.hour=parseFloat(r[0]),a.minute=parseFloat(r[1]),f._parseSecondsComponent(a,r[2])}break;default:throw new Error("Invalid Interval.")}break;case"hour":switch(t.end.period){case"minute":if(n=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");a.hour=parseFloat(e.split(":")[0]),a.minute=parseFloat(e.split(":")[1]);break;case"second":if(n=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{const t=e.split(":");a.hour=parseFloat(t[0]),a.minute=parseFloat(t[1]),f._parseSecondsComponent(a,t[2])}break;default:throw new Error("Invalid Interval.")}break;case"minute":if("second"!==t.end.period)throw new Error("Invalid Interval.");if(n=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{const t=e.split(":");a.minute=parseFloat(t[0]),f._parseSecondsComponent(a,t[1])}break;default:throw new Error("Invalid Interval.")}}return a}valueInMilliseconds(){return("-"===this.op?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}function p(e,t){const r=h[e.toLowerCase()];if(null==r)throw new Error("Function Not Recognised");if(t.length<r.minParams||t.length>r.maxParams)throw new Error(`Invalid Parameter count for call to ${e.toUpperCase()}`);return r.evaluate(t)}function d(e){const t=new Date(e.getTime());return t.setHours(0,0,0,0),t}function v(e,t){if(e instanceof Date)return t?d(e):e;if("string"==typeof(r=e)||r instanceof String){const r=c.ou.fromSQL(e);if(r.isValid)return t?d(r.toJSDate()):r.toJSDate()}var r;throw new i.eS(i.f.CannotCastValue)}const h={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(null==t)return null;if(t instanceof Date)switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear()}throw new Error("Invalid Parameter for call to EXTRACT")}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(2===e.length){const[t,r]=e;return null==t||null==r?null:t.toString().substring(r-1)}if(3===e.length){const[t,r,n]=e;return null==t||null==r||null==n?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>null==e||null==t?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{const t=3===e.length,r=t?e[1]:" ",n=t?e[2]:e[1];if(null==r||null==n)return null;const a=`(${(0,l.Qs)(r)})`;switch(e[0]){case"BOTH":return n.replace(new RegExp(`^${a}*|${a}*$`,"g"),"");case"LEADING":return n.replace(new RegExp(`^${a}*`,"g"),"");case"TRAILING":return n.replace(new RegExp(`${a}*$`,"g"),"")}throw new Error("Invalid Parameter for call to TRIM")}},abs:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0]>0?1:e[1]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{const t=e[0],r=2===e.length?10**e[1]:1;return null==t?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>null==e[0]?null:1===e.length?parseInt(e[0].toFixed(0),10):parseFloat(e[0].toFixed(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>"string"==typeof e[0]||e[0]instanceof String?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(null==e[r])return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(const t of e)if(null!==t)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:e=>{const t=e[0],r=e[1];return(t instanceof Date?t.valueOf():t)===(r instanceof Date?r.valueOf():r)?null:t}},cast:{minParams:2,maxParams:2,evaluate:e=>{const t=e[0],r=e[1];if(null===t)return null;switch(r.type){case"integer":{const e=parseInt(t,10);if(isNaN(e))throw new i.eS(i.f.CannotCastValue);return e}case"smallint":{const e=parseInt(t,10);if(isNaN(e))throw new i.eS(i.f.CannotCastValue);if(e>32767||e<-32767)throw new i.eS(i.f.CannotCastValue);return e}case"float":case"real":{const e=parseFloat(t);if(isNaN(e))throw new i.eS(i.f.CannotCastValue);return e}case"date":return v(t,!0);case"timestamp":return v(t,!1);case"varchar":{const e=t.toString();if(e.length>r.size)throw new i.eS(i.f.CannotCastValue);return e}default:throw new i.eS(i.f.InvalidDataType)}}}};r(5732);var m,g,y={};g=function(){function e(t,r,n,a){var s=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(s,e.prototype),s.expected=r,s.found=n,s.location=a,s.name="SyntaxError",s}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,a=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){a=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,u=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,o=this.location.source+":"+u.line+":"+u.column;if(a){var i=this.location.end,l=t("",u.line.toString().length," "),c=a[s.line-1],f=(s.line===i.line?i.column:c.length+1)-s.column||1;r+="\n --\x3e "+o+"\n"+l+" |\n"+u.line+" | "+c+"\n"+l+" | "+t("",s.column-1," ")+t("",f,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+a(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function a(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function s(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function u(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(u);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+a(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,a={},s=(r=void 0!==r?r:{}).grammarSource,u={start:Ia},o=Ia,i="!",l="=",c=">=",f=">",p="<=",d="<>",v="<",h="!=",m="+",g="-",y="||",w="*",N="/",I="@",b="'",T="N'",S="''",x=".",A="null",E="true",C="false",P="in",_="is",F="like",L="escape",M="not",R="and",D="or",O="between",J="from",U="for",k="substring",$="extract",q="trim",V="position",H="timestamp",B="date",j="leading",z="trailing",G="both",Y="cast",W="as",Z="integer",Q="smallint",K="float",X="real",ee="varchar",te="to",re="interval",ne="year",ae="month",se="day",ue="hour",oe="minute",ie="second",le="case",ce="end",fe="when",pe="then",de="else",ve=",",he="(",me=")",ge="`",ye=/^[A-Za-z_\x80-\uFFFF]/,we=/^[A-Za-z0-9_]/,Ne=/^[A-Za-z0-9_.\x80-\uFFFF]/,Ie=/^[^']/,be=/^[0-9]/,Te=/^[eE]/,Se=/^[+\-]/,xe=/^[ \t\n\r]/,Ae=/^[^`]/,Ee=ma("!",!1),Ce=ma("=",!1),Pe=ma(">=",!1),_e=ma(">",!1),Fe=ma("<=",!1),Le=ma("<>",!1),Me=ma("<",!1),Re=ma("!=",!1),De=ma("+",!1),Oe=ma("-",!1),Je=ma("||",!1),Ue=ma("*",!1),ke=ma("/",!1),$e=ga([["A","Z"],["a","z"],"_",["",""]],!1,!1),qe=ga([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),Ve=ga([["A","Z"],["a","z"],["0","9"],"_",".",["",""]],!1,!1),He=ma("@",!1),Be=ma("'",!1),je=ma("N'",!1),ze=ma("''",!1),Ge=ga(["'"],!0,!1),Ye=ma(".",!1),We=ga([["0","9"]],!1,!1),Ze=ga(["e","E"],!1,!1),Qe=ga(["+","-"],!1,!1),Ke=ma("NULL",!0),Xe=ma("TRUE",!0),et=ma("FALSE",!0),tt=ma("IN",!0),rt=ma("IS",!0),nt=ma("LIKE",!0),at=ma("ESCAPE",!0),st=ma("NOT",!0),ut=ma("AND",!0),ot=ma("OR",!0),it=ma("BETWEEN",!0),lt=ma("FROM",!0),ct=ma("FOR",!0),ft=ma("SUBSTRING",!0),pt=ma("EXTRACT",!0),dt=ma("TRIM",!0),vt=ma("POSITION",!0),ht=ma("TIMESTAMP",!0),mt=ma("DATE",!0),gt=ma("LEADING",!0),yt=ma("TRAILING",!0),wt=ma("BOTH",!0),Nt=ma("CAST",!0),It=ma("AS",!0),bt=ma("INTEGER",!0),Tt=ma("SMALLINT",!0),St=ma("FLOAT",!0),xt=ma("REAL",!0),At=ma("VARCHAR",!0),Et=ma("TO",!0),Ct=ma("INTERVAL",!0),Pt=ma("YEAR",!0),_t=ma("MONTH",!0),Ft=ma("DAY",!0),Lt=ma("HOUR",!0),Mt=ma("MINUTE",!0),Rt=ma("SECOND",!0),Dt=ma("CASE",!0),Ot=ma("END",!0),Jt=ma("WHEN",!0),Ut=ma("THEN",!0),kt=ma("ELSE",!0),$t=ma(",",!1),qt=ma("(",!1),Vt=ma(")",!1),Ht=ga([" ","\t","\n","\r"],!1,!1),Bt=ma("`",!1),jt=ga(["`"],!0,!1),zt=function(e){return e},Gt=function(e,t){var r={type:"expression-list"},n=function(e,t,r){return function(e,t){for(var r=[e],n=0;n<t.length;n++)r.push(t[n][3]);return r}(e,t)}(e,t);return r.value=n,r},Yt=function(e,t){return Qs(e,t)},Wt=function(e,t){return Qs(e,t)},Zt=function(e){return function(e,t){return{type:"unary-expression",operator:"NOT",expr:t}}(0,e)},Qt=function(e,t){return""==t||null==t||null==t?e:"arithmetic"==t.type?Qs(e,t.tail):Zs(t.op,e,t.right,t.escape)},Kt=function(e){return{type:"arithmetic",tail:e}},Xt=function(e,t){return{op:e+"NOT",right:t}},er=function(e,t){return{op:e,right:t}},tr=function(e,t,r){return{op:"NOT"+e,right:{type:"expression-list",value:[t,r]}}},rr=function(e,t,r){return{op:e,right:{type:"expression-list",value:[t,r]}}},nr=function(e){return e[0]+" "+e[2]},ar=function(e){return e[0]+" "+e[2]},sr=function(e,t,r){return{op:e,right:t,escape:r.value}},ur=function(e,t){return{op:e,right:t,escape:""}},or=function(e,t){return{op:e,right:t}},ir=function(e){return{op:e,right:{type:"expression-list",value:[]}}},lr=function(e,t){return{op:e,right:t}},cr=function(e,t){return Qs(e,t)},fr=function(e,t){return Qs(e,t)},pr=function(e){return e.paren=!0,e},dr=function(e){return/^CURRENT_DATE$/i.test(e)?{type:"current-time",mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(e)?{type:"current-time",mode:"timestamp"}:{type:"column-reference",table:"",column:e}},vr=function(e){return e},hr=function(e,t){return e+t.join("")},mr=function(e,t){return e+t.join("")},gr=function(e){return{type:"parameter",value:e[1]}},yr=function(e,t){return{type:"function",name:"extract",args:{type:"expression-list",value:[{type:"string",value:e},t]}}},wr=function(e,t,r){return{type:"function",name:"substring",args:{type:"expression-list",value:r?[e,t,r[2]]:[e,t]}}},Nr=function(e,t){return{type:"function",name:"cast",args:{type:"expression-list",value:[e,t]}}},Ir=function(){return{type:"data-type",value:{type:"integer"}}},br=function(){return{type:"data-type",value:{type:"smallint"}}},Tr=function(){return{type:"data-type",value:{type:"float"}}},Sr=function(){return{type:"data-type",value:{type:"real"}}},xr=function(){return{type:"data-type",value:{type:"date"}}},Ar=function(){return{type:"data-type",value:{type:"timestamp"}}},Er=function(e){return{type:"data-type",value:{type:"varchar",size:parseInt(e)}}},Cr=function(e,t,r){return{type:"function",name:"trim",args:{type:"expression-list",value:[{type:"string",value:e??"BOTH"},t,r]}}},Pr=function(e,t){return{type:"function",name:"trim",args:{type:"expression-list",value:[{type:"string",value:e??"BOTH"},t]}}},_r=function(e,t){return{type:"function",name:"position",args:{type:"expression-list",value:[e,t]}}},Fr=function(e,t){return{type:"function",name:e,args:t||{type:"expression-list",value:[]}}},Lr=function(e){return{type:"timestamp",value:e.value}},Mr=function(e,t,r){return{type:"interval",value:t,qualifier:r,op:e}},Rr=function(e,t){return{type:"interval",value:e,qualifier:t,op:""}},Dr=function(e,t){return{type:"interval-qualifier",start:e,end:t}},Or=function(e,t){return{type:"interval-period",period:e.value,precision:t,secondary:null}},Jr=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}},Ur=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}},kr=function(e,t){return{type:"interval-period",period:"second",precision:e,secondary:t}},$r=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}},qr=function(){return{type:"interval-period",period:"second",precision:null,secondary:null}},Vr=function(e,t){return{type:"interval-period",period:e.value,precision:t,secondary:null}},Hr=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}},Br=function(e,t){return{type:"interval-period",period:"second",precision:e,secondary:t}},jr=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}},zr=function(){return{type:"interval-period",period:"second",precision:null,secondary:null}},Gr=function(){return{type:"string",value:"day"}},Yr=function(){return{type:"string",value:"hour"}},Wr=function(){return{type:"string",value:"minute"}},Zr=function(){return{type:"string",value:"month"}},Qr=function(){return{type:"string",value:"year"}},Kr=function(e){return parseFloat(e)},Xr=function(e){return parseFloat(e)},en=function(e){return{type:"date",value:e.value}},tn=function(){return{type:"null",value:null}},rn=function(){return{type:"boolean",value:!0}},nn=function(){return{type:"boolean",value:!1}},an=function(){return"'"},sn=function(e){return{type:"string",value:e.join("")}},un=function(e,t){return{type:"case-expression",format:"simple",operand:e,clauses:t,else:null}},on=function(e,t,r){return{type:"case-expression",format:"simple",operand:e,clauses:t,else:r.value}},ln=function(e){return{type:"case-expression",format:"searched",clauses:e,else:null}},cn=function(e,t){return{type:"case-expression",format:"searched",clauses:e,else:t.value}},fn=function(e,t){return{type:"when-clause",operand:e,value:t}},pn=function(e,t){return{type:"when-clause",operand:e,value:t}},dn=function(e){return{type:"else-clause",value:e}},vn=function(e){return{type:"number",value:e}},hn=function(e,t,r){return parseFloat(e+t+r)},mn=function(e,t){return parseFloat(e+t)},gn=function(e,t){return parseFloat(e+t)},yn=function(e){return parseFloat(e)},wn=function(e,t){return e[0]+t},Nn=function(e){return"."+(null!=e?e:"")},In=function(e,t){return e+t},bn=function(e){return e.join("")},Tn=function(e,t){return"e"+(null===t?"":t)},Sn=function(){return"IN"},xn=function(){return"IS"},An=function(){return"LIKE"},En=function(){return"ESCAPE"},Cn=function(){return"NOT"},Pn=function(){return"AND"},_n=function(){return"OR"},Fn=function(){return"BETWEEN"},Ln=function(){return"FROM"},Mn=function(){return"FOR"},Rn=function(){return"SUBSTRING"},Dn=function(){return"EXTRACT"},On=function(){return"TRIM"},Jn=function(){return"POSITION"},Un=function(){return"TIMESTAMP"},kn=function(){return"DATE"},$n=function(){return"LEADING"},qn=function(){return"TRAILING"},Vn=function(){return"BOTH"},Hn=function(){return"CAST"},Bn=function(){return"AS"},jn=function(){return"INTEGER"},zn=function(){return"SMALLINT"},Gn=function(){return"FLOAT"},Yn=function(){return"REAL"},Wn=function(){return"VARCHAR"},Zn=function(){return"TO"},Qn=function(){return"INTERVAL"},Kn=function(){return"YEAR"},Xn=function(){return"MONTH"},ea=function(){return"DAY"},ta=function(){return"HOUR"},ra=function(){return"MINUTE"},na=function(){return"SECOND"},aa=function(){return"CASE"},sa=function(){return"END"},ua=function(){return"WHEN"},oa=function(){return"THEN"},ia=function(){return"ELSE"},la=function(e){return e},ca=function(e){return e.join("")},fa=0,pa=[{line:1,column:1}],da=0,va=[],ha=0;if("startRule"in r){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');o=u[r.startRule]}function ma(e,t){return{type:"literal",text:e,ignoreCase:t}}function ga(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ya(e){var r,n=pa[e];if(n)return n;for(r=e-1;!pa[r];)r--;for(n={line:(n=pa[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return pa[e]=n,n}function wa(e,t,r){var n=ya(e),a=ya(t),u={source:s,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:a.line,column:a.column}};return r&&s&&"function"==typeof s.offset&&(u.start=s.offset(u.start),u.end=s.offset(u.end)),u}function Na(e){fa<da||(fa>da&&(da=fa,va=[]),va.push(e))}function Ia(){var e,t;return e=fa,Gs(),(t=Ta())!==a?(Gs(),e=zt(t)):(fa=e,e=a),e}function ba(){var e,t,r,n,s,u,o,i;if(e=fa,(t=Ta())!==a){for(r=[],n=fa,s=Gs(),(u=Bs())!==a?(o=Gs(),(i=Ta())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);n!==a;)r.push(n),n=fa,s=Gs(),(u=Bs())!==a?(o=Gs(),(i=Ta())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);e=Gt(t,r)}else fa=e,e=a;return e}function Ta(){var e,t,r,n,s,u,o,i;if(e=fa,(t=Sa())!==a){for(r=[],n=fa,s=Gs(),(u=fs())!==a?(o=Gs(),(i=Sa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);n!==a;)r.push(n),n=fa,s=Gs(),(u=fs())!==a?(o=Gs(),(i=Sa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);e=Yt(t,r)}else fa=e,e=a;return e}function Sa(){var e,t,r,n,s,u,o,i;if(e=fa,(t=xa())!==a){for(r=[],n=fa,s=Gs(),(u=cs())!==a?(o=Gs(),(i=xa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);n!==a;)r.push(n),n=fa,s=Gs(),(u=cs())!==a?(o=Gs(),(i=xa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);e=Wt(t,r)}else fa=e,e=a;return e}function xa(){var e,r,n,s,u;return e=fa,(r=ls())===a&&(r=fa,33===t.charCodeAt(fa)?(n=i,fa++):(n=a,0===ha&&Na(Ee)),n!==a?(s=fa,ha++,61===t.charCodeAt(fa)?(u=l,fa++):(u=a,0===ha&&Na(Ce)),ha--,u===a?s=void 0:(fa=s,s=a),s!==a?r=n=[n,s]:(fa=r,r=a)):(fa=r,r=a)),r!==a?(n=Gs(),(s=xa())!==a?e=Zt(s):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=function(){var e,t,r;return e=fa,(t=Pa())!==a?(Gs(),(r=function(){var e;return(e=function(){var e,t,r,n,s,u;if(e=[],t=fa,r=Gs(),(n=Aa())!==a?(s=Gs(),(u=Pa())!==a?t=r=[r,n,s,u]:(fa=t,t=a)):(fa=t,t=a),t!==a)for(;t!==a;)e.push(t),t=fa,r=Gs(),(n=Aa())!==a?(s=Gs(),(u=Pa())!==a?t=r=[r,n,s,u]:(fa=t,t=a)):(fa=t,t=a);else e=a;return e!==a&&(e=Kt(e)),e}())===a&&(e=function(){var e,t,r,n;return e=fa,(t=Ca())!==a?(Gs(),(r=js())!==a?(Gs(),(n=ba())!==a?(Gs(),zs()!==a?e=or(t,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Ca())!==a?(Gs(),(r=js())!==a?(Gs(),(n=zs())!==a?e=ir(t):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Ca())!==a?(Gs(),(r=Ua())!==a?e=lr(t,r):(fa=e,e=a)):(fa=e,e=a))),e}())===a&&(e=function(){var e,t,r,n,s,u;return e=fa,(t=ls())!==a?(Gs(),(r=ps())!==a?(Gs(),(n=Pa())!==a?(Gs(),(s=cs())!==a?(Gs(),(u=Pa())!==a?e=tr(r,n,u):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=ps())!==a?(Gs(),(r=Pa())!==a?(Gs(),(n=cs())!==a?(Gs(),(s=Pa())!==a?e=rr(t,r,s):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)),e}())===a&&(e=function(){var e,t,r,n;return e=fa,(t=us())!==a?(Gs(),(r=ls())!==a?(Gs(),(n=Pa())!==a?e=Xt(t,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=us())!==a?(Gs(),(r=Pa())!==a?e=er(t,r):(fa=e,e=a)):(fa=e,e=a)),e}())===a&&(e=function(){var e,t,r,n;return e=fa,(t=Ea())!==a?(Gs(),(r=ja())!==a?(Gs(),is()!==a?(Gs(),(n=za())!==a?e=sr(t,r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Ea())!==a?(Gs(),(r=ja())!==a?e=ur(t,r):(fa=e,e=a)):(fa=e,e=a)),e}()),e}())===a&&(r=null),e=Qt(t,r)):(fa=e,e=a),e}()),e}function Aa(){var e;return t.substr(fa,2)===c?(e=c,fa+=2):(e=a,0===ha&&Na(Pe)),e===a&&(62===t.charCodeAt(fa)?(e=f,fa++):(e=a,0===ha&&Na(_e)),e===a&&(t.substr(fa,2)===p?(e=p,fa+=2):(e=a,0===ha&&Na(Fe)),e===a&&(t.substr(fa,2)===d?(e=d,fa+=2):(e=a,0===ha&&Na(Le)),e===a&&(60===t.charCodeAt(fa)?(e=v,fa++):(e=a,0===ha&&Na(Me)),e===a&&(61===t.charCodeAt(fa)?(e=l,fa++):(e=a,0===ha&&Na(Ce)),e===a&&(t.substr(fa,2)===h?(e=h,fa+=2):(e=a,0===ha&&Na(Re)))))))),e}function Ea(){var e,t,r,n,s;return e=fa,t=fa,(r=ls())!==a?(n=Gs(),(s=os())!==a?t=r=[r,n,s]:(fa=t,t=a)):(fa=t,t=a),t!==a&&(t=nr(t)),(e=t)===a&&(e=os()),e}function Ca(){var e,t,r,n,s;return e=fa,t=fa,(r=ls())!==a?(n=Gs(),(s=ss())!==a?t=r=[r,n,s]:(fa=t,t=a)):(fa=t,t=a),t!==a&&(t=ar(t)),(e=t)===a&&(e=ss()),e}function Pa(){var e,t,r,n,s,u,o,i;if(e=fa,(t=Fa())!==a){for(r=[],n=fa,s=Gs(),(u=_a())!==a?(o=Gs(),(i=Fa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);n!==a;)r.push(n),n=fa,s=Gs(),(u=_a())!==a?(o=Gs(),(i=Fa())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);e=cr(t,r)}else fa=e,e=a;return e}function _a(){var e;return 43===t.charCodeAt(fa)?(e=m,fa++):(e=a,0===ha&&Na(De)),e===a&&(45===t.charCodeAt(fa)?(e=g,fa++):(e=a,0===ha&&Na(Oe)),e===a&&(t.substr(fa,2)===y?(e=y,fa+=2):(e=a,0===ha&&Na(Je)))),e}function Fa(){var e,t,r,n,s,u,o,i;if(e=fa,(t=Ma())!==a){for(r=[],n=fa,s=Gs(),(u=La())!==a?(o=Gs(),(i=Ma())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);n!==a;)r.push(n),n=fa,s=Gs(),(u=La())!==a?(o=Gs(),(i=Ma())!==a?n=s=[s,u,o,i]:(fa=n,n=a)):(fa=n,n=a);e=fr(t,r)}else fa=e,e=a;return e}function La(){var e;return 42===t.charCodeAt(fa)?(e=w,fa++):(e=a,0===ha&&Na(Ue)),e===a&&(47===t.charCodeAt(fa)?(e=N,fa++):(e=a,0===ha&&Na(ke))),e}function Ma(){var e,t;return(e=function(){var e;return(e=za())===a&&(e=function(){var e,t,r,n;return e=fa,(t=function(){var e,t,r,n;return e=fa,(t=Za())!==a&&(r=Qa())!==a&&(n=Ka())!==a?e=hn(t,r,n):(fa=e,e=a),e===a&&(e=fa,(t=Za())!==a&&(r=Qa())!==a?e=mn(t,r):(fa=e,e=a),e===a&&(e=fa,(t=Za())!==a&&(r=Ka())!==a?e=gn(t,r):(fa=e,e=a),e===a&&(e=fa,(t=Za())!==a&&(t=yn(t)),e=t))),e}())!==a?(r=fa,ha++,n=Da(),ha--,n===a?r=void 0:(fa=r,r=a),r!==a?e=vn(t):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t;return e=fa,(t=ns())!==a&&(t=rn()),(e=t)===a&&(e=fa,(t=as())!==a&&(t=nn()),e=t),e}())===a&&(e=function(){var e;return(e=rs())!==a&&(e=tn()),e}())===a&&(e=function(){var e,t;return e=fa,Ns()!==a?(Gs(),(t=ja())!==a?e=en(t):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t;return e=fa,ws()!==a?(Gs(),(t=ja())!==a?e=Lr(t):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=$a()),e}())===a&&(e=function(){var e,t,r;return e=fa,ms()!==a?(Gs(),js()!==a?(Gs(),(t=function(){var e;return(e=Ms())===a&&(e=Rs())===a&&(e=Ds())===a&&(e=Os())===a&&(e=Js())===a&&(e=Us()),e}())!==a?(Gs(),ds()!==a?(Gs(),(r=Ta())!==a?(Gs(),zs()!==a?e=yr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t,r,n,s,u,o;return e=fa,hs()!==a?(Gs(),js()!==a?(Gs(),(t=Ta())!==a?(Gs(),ds()!==a?(Gs(),(r=Ta())!==a?(Gs(),n=fa,(s=vs())!==a?(u=Gs(),(o=Ta())!==a?n=s=[s,u,o,Gs()]:(fa=n,n=a)):(fa=n,n=a),n===a&&(n=null),(s=zs())!==a?e=wr(t,r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t,r,n;return e=fa,gs()!==a?(Gs(),js()!==a?(Gs(),(t=ka())===a&&(t=null),Gs(),(r=Ta())!==a?(Gs(),ds()!==a?(Gs(),(n=Ta())!==a?(Gs(),zs()!==a?e=Cr(t,r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,gs()!==a?(Gs(),js()!==a?(Gs(),(t=ka())===a&&(t=null),Gs(),(r=Ta())!==a?(Gs(),zs()!==a?e=Pr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)),e}())===a&&(e=function(){var e,t,r;return e=fa,ys()!==a?(Gs(),js()!==a?(Gs(),(t=Ta())!==a?(Gs(),ss()!==a?(Gs(),(r=Ta())!==a?(Gs(),zs()!==a?e=_r(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t,r;return e=fa,Ss()!==a?(Gs(),js()!==a?(Gs(),(t=Ta())!==a?(Gs(),xs()!==a?(Gs(),(r=function(){var e,t,r;return e=fa,(t=As())!==a&&(t=Ir()),(e=t)===a&&(e=fa,(t=Es())!==a&&(t=br()),(e=t)===a&&(e=fa,(t=Cs())!==a&&(t=Tr()),(e=t)===a&&(e=fa,(t=Ps())!==a&&(t=Sr()),(e=t)===a&&(e=fa,(t=Ns())!==a&&(t=xr()),(e=t)===a&&(e=fa,(t=ws())!==a&&(t=Ar()),(e=t)===a&&(e=fa,(t=_s())!==a?(Gs(),js()!==a?(Gs(),(r=Xa())!==a?(Gs(),zs()!==a?e=Er(r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a))))))),e}())!==a?(Gs(),zs()!==a?e=Nr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e,t,r;return e=fa,(t=Ws())!==a?(Gs(),js()!==a?(Gs(),(r=ba())===a&&(r=null),Gs(),zs()!==a?e=Fr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}())===a&&(e=function(){var e;return(e=function(){var e,t,r,n,s;if(e=fa,ks()!==a)if(Gs(),(t=Ta())!==a){for(Gs(),r=[],n=Ya();n!==a;)r.push(n),n=Ya();n=Gs(),(s=$s())!==a?e=un(t,r):(fa=e,e=a)}else fa=e,e=a;else fa=e,e=a;if(e===a)if(e=fa,ks()!==a)if(Gs(),(t=Ta())!==a){for(Gs(),r=[],n=Ya();n!==a;)r.push(n),n=Ya();n=Gs(),(s=Wa())!==a?(Gs(),$s()!==a?e=on(t,r,s):(fa=e,e=a)):(fa=e,e=a)}else fa=e,e=a;else fa=e,e=a;return e}())===a&&(e=function(){var e,t,r,n;if(e=fa,ks()!==a){for(Gs(),t=[],r=Ga();r!==a;)t.push(r),r=Ga();r=Gs(),(n=$s())!==a?e=ln(t):(fa=e,e=a)}else fa=e,e=a;if(e===a)if(e=fa,ks()!==a){for(Gs(),t=[],r=Ga();r!==a;)t.push(r),r=Ga();r=Gs(),(n=Wa())!==a?(Gs(),$s()!==a?e=cn(t,n):(fa=e,e=a)):(fa=e,e=a)}else fa=e,e=a;return e}()),e}())===a&&(e=function(){var e;return(e=function(){var e;return(e=function(){var e,t,r,n;if(e=fa,(t=Da())!==a){for(r=[],n=Ja();n!==a;)r.push(n),n=Ja();e=hr(t,r)}else fa=e,e=a;return e}())!==a&&(e=vr(e)),e}())!==a&&(e=dr(e)),e}())===a&&(e=Ua())===a&&(e=fa,js()!==a?(Gs(),(t=Ta())!==a?(Gs(),zs()!==a?e=pr(t):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)),e}function Ra(){var e,t,r,n;if(e=fa,(t=Da())!==a){for(r=[],n=Oa();n!==a;)r.push(n),n=Oa();e=mr(t,r)}else fa=e,e=a;return e}function Da(){var e;return ye.test(t.charAt(fa))?(e=t.charAt(fa),fa++):(e=a,0===ha&&Na($e)),e}function Oa(){var e;return we.test(t.charAt(fa))?(e=t.charAt(fa),fa++):(e=a,0===ha&&Na(qe)),e}function Ja(){var e;return Ne.test(t.charAt(fa))?(e=t.charAt(fa),fa++):(e=a,0===ha&&Na(Ve)),e}function Ua(){var e,r,n;return e=fa,64===t.charCodeAt(fa)?(r=I,fa++):(r=a,0===ha&&Na(He)),r!==a&&(n=Ra())!==a?e=r=[r,n]:(fa=e,e=a),e!==a&&(e=gr(e)),e}function ka(){var e;return(e=Is())===a&&(e=bs())===a&&(e=Ts()),e}function $a(){var e,r,n,s;return e=fa,Ls()!==a?(Gs(),45===t.charCodeAt(fa)?(r=g,fa++):(r=a,0===ha&&Na(Oe)),r===a&&(43===t.charCodeAt(fa)?(r=m,fa++):(r=a,0===ha&&Na(De))),r!==a?(Gs(),(n=ja())!==a?(Gs(),(s=qa())!==a?e=Mr(r,n,s):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,Ls()!==a?(Gs(),(r=ja())!==a?(Gs(),(n=qa())!==a?e=Rr(r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)),e}function qa(){var e,t,r;return e=fa,(t=function(){var e,t,r;return e=fa,(t=Va())!==a?(Gs(),js()!==a?(Gs(),(r=Ba())!==a?(Gs(),zs()!==a?e=Or(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Va())!==a&&(t=Jr(t)),e=t),e}())!==a?(Gs(),Fs()!==a?(Gs(),(r=function(){var e,t,r,n;return e=fa,(t=Va())!==a&&(t=Ur(t)),(e=t)===a&&(e=fa,(t=Us())!==a?(Gs(),js()!==a?(Gs(),(r=Ba())!==a?(Gs(),Bs()!==a?(Gs(),(n=Ha())!==a?(Gs(),zs()!==a?e=kr(r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Us())!==a?(Gs(),js()!==a?(Gs(),(r=Ba())!==a?(Gs(),zs()!==a?e=$r(r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Us())!==a&&(t=qr()),e=t))),e}())!==a?e=Dr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=function(){var e,t,r,n;return e=fa,(t=Va())!==a?(Gs(),js()!==a?(Gs(),(r=Ha())!==a?(Gs(),zs()!==a?e=Vr(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Va())!==a&&(t=Hr(t)),(e=t)===a&&(e=fa,(t=Us())!==a?(Gs(),js()!==a?(Gs(),(r=Ba())!==a?(Gs(),Bs()!==a?(Gs(),(n=Ha())!==a?(Gs(),zs()!==a?e=Br(r,n):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Us())!==a?(Gs(),js()!==a?(Gs(),(r=Ha())!==a?(Gs(),zs()!==a?e=jr(r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e===a&&(e=fa,(t=Us())!==a&&(t=zr()),e=t)))),e}()),e}function Va(){var e,t;return e=fa,(t=Ds())!==a&&(t=Gr()),(e=t)===a&&(e=fa,(t=Os())!==a&&(t=Yr()),(e=t)===a&&(e=fa,(t=Js())!==a&&(t=Wr()),(e=t)===a&&(e=fa,(t=Rs())!==a&&(t=Zr()),(e=t)===a&&(e=fa,(t=Ms())!==a&&(t=Qr()),e=t)))),e}function Ha(){var e;return(e=Xa())!==a&&(e=Kr(e)),e}function Ba(){var e;return(e=Xa())!==a&&(e=Xr(e)),e}function ja(){var e;return(e=za())===a&&(e=Ua()),e}function za(){var e,r,n,s,u;if(e=fa,39===t.charCodeAt(fa)?(r=b,fa++):(r=a,0===ha&&Na(Be)),r===a&&(t.substr(fa,2)===T?(r=T,fa+=2):(r=a,0===ha&&Na(je))),r!==a){for(n=[],s=fa,t.substr(fa,2)===S?(u=S,fa+=2):(u=a,0===ha&&Na(ze)),u!==a&&(u=an()),(s=u)===a&&(Ie.test(t.charAt(fa))?(s=t.charAt(fa),fa++):(s=a,0===ha&&Na(Ge)));s!==a;)n.push(s),s=fa,t.substr(fa,2)===S?(u=S,fa+=2):(u=a,0===ha&&Na(ze)),u!==a&&(u=an()),(s=u)===a&&(Ie.test(t.charAt(fa))?(s=t.charAt(fa),fa++):(s=a,0===ha&&Na(Ge)));39===t.charCodeAt(fa)?(s=b,fa++):(s=a,0===ha&&Na(Be)),s!==a?e=sn(n):(fa=e,e=a)}else fa=e,e=a;return e}function Ga(){var e,t,r;return e=fa,qs()!==a?(Gs(),(t=Ta())!==a?(Gs(),Vs()!==a?(Gs(),(r=Ta())!==a?e=fn(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}function Ya(){var e,t,r;return e=fa,qs()!==a?(Gs(),(t=Ta())!==a?(Gs(),Vs()!==a?(Gs(),(r=Ta())!==a?e=pn(t,r):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a)):(fa=e,e=a),e}function Wa(){var e,t;return e=fa,Hs()!==a?(Gs(),(t=Ta())!==a?e=dn(t):(fa=e,e=a)):(fa=e,e=a),e}function Za(){var e,r,n;return(e=Xa())===a&&(e=fa,45===t.charCodeAt(fa)?(r=g,fa++):(r=a,0===ha&&Na(Oe)),r===a&&(43===t.charCodeAt(fa)?(r=m,fa++):(r=a,0===ha&&Na(De))),r!==a&&(n=Xa())!==a?e=wn(r,n):(fa=e,e=a)),e}function Qa(){var e,r,n;return e=fa,46===t.charCodeAt(fa)?(r=x,fa++):(r=a,0===ha&&Na(Ye)),r!==a?((n=Xa())===a&&(n=null),e=Nn(n)):(fa=e,e=a),e}function Ka(){var e,t,r;return e=fa,(t=ts())!==a&&(r=Xa())!==a?e=In(t,r):(fa=e,e=a),e}function Xa(){var e,t;if(e=[],(t=es())!==a)for(;t!==a;)e.push(t),t=es();else e=a;return e!==a&&(e=bn(e)),e}function es(){var e;return be.test(t.charAt(fa))?(e=t.charAt(fa),fa++):(e=a,0===ha&&Na(We)),e}function ts(){var e,r,n;return e=fa,Te.test(t.charAt(fa))?(r=t.charAt(fa),fa++):(r=a,0===ha&&Na(Ze)),r!==a?(Se.test(t.charAt(fa))?(n=t.charAt(fa),fa++):(n=a,0===ha&&Na(Qe)),n===a&&(n=null),e=Tn(r,n)):(fa=e,e=a),e}function rs(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===A?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Ke)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=r=[r,n]:(fa=e,e=a)):(fa=e,e=a),e}function ns(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===E?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Xe)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=r=[r,n]:(fa=e,e=a)):(fa=e,e=a),e}function as(){var e,r,n,s;return e=fa,t.substr(fa,5).toLowerCase()===C?(r=t.substr(fa,5),fa+=5):(r=a,0===ha&&Na(et)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=r=[r,n]:(fa=e,e=a)):(fa=e,e=a),e}function ss(){var e,r,n,s;return e=fa,t.substr(fa,2).toLowerCase()===P?(r=t.substr(fa,2),fa+=2):(r=a,0===ha&&Na(tt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Sn():(fa=e,e=a)):(fa=e,e=a),e}function us(){var e,r,n,s;return e=fa,t.substr(fa,2).toLowerCase()===_?(r=t.substr(fa,2),fa+=2):(r=a,0===ha&&Na(rt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=xn():(fa=e,e=a)):(fa=e,e=a),e}function os(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===F?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(nt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=An():(fa=e,e=a)):(fa=e,e=a),e}function is(){var e,r,n,s;return e=fa,t.substr(fa,6).toLowerCase()===L?(r=t.substr(fa,6),fa+=6):(r=a,0===ha&&Na(at)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=En():(fa=e,e=a)):(fa=e,e=a),e}function ls(){var e,r,n,s;return e=fa,t.substr(fa,3).toLowerCase()===M?(r=t.substr(fa,3),fa+=3):(r=a,0===ha&&Na(st)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Cn():(fa=e,e=a)):(fa=e,e=a),e}function cs(){var e,r,n,s;return e=fa,t.substr(fa,3).toLowerCase()===R?(r=t.substr(fa,3),fa+=3):(r=a,0===ha&&Na(ut)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Pn():(fa=e,e=a)):(fa=e,e=a),e}function fs(){var e,r,n,s;return e=fa,t.substr(fa,2).toLowerCase()===D?(r=t.substr(fa,2),fa+=2):(r=a,0===ha&&Na(ot)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=_n():(fa=e,e=a)):(fa=e,e=a),e}function ps(){var e,r,n,s;return e=fa,t.substr(fa,7).toLowerCase()===O?(r=t.substr(fa,7),fa+=7):(r=a,0===ha&&Na(it)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Fn():(fa=e,e=a)):(fa=e,e=a),e}function ds(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===J?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(lt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Ln():(fa=e,e=a)):(fa=e,e=a),e}function vs(){var e,r,n,s;return e=fa,t.substr(fa,3).toLowerCase()===U?(r=t.substr(fa,3),fa+=3):(r=a,0===ha&&Na(ct)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Mn():(fa=e,e=a)):(fa=e,e=a),e}function hs(){var e,r,n,s;return e=fa,t.substr(fa,9).toLowerCase()===k?(r=t.substr(fa,9),fa+=9):(r=a,0===ha&&Na(ft)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Rn():(fa=e,e=a)):(fa=e,e=a),e}function ms(){var e,r,n,s;return e=fa,t.substr(fa,7).toLowerCase()===$?(r=t.substr(fa,7),fa+=7):(r=a,0===ha&&Na(pt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Dn():(fa=e,e=a)):(fa=e,e=a),e}function gs(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===q?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(dt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=On():(fa=e,e=a)):(fa=e,e=a),e}function ys(){var e,r,n,s;return e=fa,t.substr(fa,8).toLowerCase()===V?(r=t.substr(fa,8),fa+=8):(r=a,0===ha&&Na(vt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Jn():(fa=e,e=a)):(fa=e,e=a),e}function ws(){var e,r,n,s;return e=fa,t.substr(fa,9).toLowerCase()===H?(r=t.substr(fa,9),fa+=9):(r=a,0===ha&&Na(ht)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Un():(fa=e,e=a)):(fa=e,e=a),e}function Ns(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===B?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(mt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=kn():(fa=e,e=a)):(fa=e,e=a),e}function Is(){var e,r,n,s;return e=fa,t.substr(fa,7).toLowerCase()===j?(r=t.substr(fa,7),fa+=7):(r=a,0===ha&&Na(gt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=$n():(fa=e,e=a)):(fa=e,e=a),e}function bs(){var e,r,n,s;return e=fa,t.substr(fa,8).toLowerCase()===z?(r=t.substr(fa,8),fa+=8):(r=a,0===ha&&Na(yt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=qn():(fa=e,e=a)):(fa=e,e=a),e}function Ts(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===G?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(wt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Vn():(fa=e,e=a)):(fa=e,e=a),e}function Ss(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===Y?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Nt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Hn():(fa=e,e=a)):(fa=e,e=a),e}function xs(){var e,r,n,s;return e=fa,t.substr(fa,2).toLowerCase()===W?(r=t.substr(fa,2),fa+=2):(r=a,0===ha&&Na(It)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Bn():(fa=e,e=a)):(fa=e,e=a),e}function As(){var e,r,n,s;return e=fa,t.substr(fa,7).toLowerCase()===Z?(r=t.substr(fa,7),fa+=7):(r=a,0===ha&&Na(bt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=jn():(fa=e,e=a)):(fa=e,e=a),e}function Es(){var e,r,n,s;return e=fa,t.substr(fa,8).toLowerCase()===Q?(r=t.substr(fa,8),fa+=8):(r=a,0===ha&&Na(Tt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=zn():(fa=e,e=a)):(fa=e,e=a),e}function Cs(){var e,r,n,s;return e=fa,t.substr(fa,5).toLowerCase()===K?(r=t.substr(fa,5),fa+=5):(r=a,0===ha&&Na(St)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Gn():(fa=e,e=a)):(fa=e,e=a),e}function Ps(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===X?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(xt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Yn():(fa=e,e=a)):(fa=e,e=a),e}function _s(){var e,r,n,s;return e=fa,t.substr(fa,7).toLowerCase()===ee?(r=t.substr(fa,7),fa+=7):(r=a,0===ha&&Na(At)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Wn():(fa=e,e=a)):(fa=e,e=a),e}function Fs(){var e,r,n,s;return e=fa,t.substr(fa,2).toLowerCase()===te?(r=t.substr(fa,2),fa+=2):(r=a,0===ha&&Na(Et)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Zn():(fa=e,e=a)):(fa=e,e=a),e}function Ls(){var e,r,n,s;return e=fa,t.substr(fa,8).toLowerCase()===re?(r=t.substr(fa,8),fa+=8):(r=a,0===ha&&Na(Ct)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Qn():(fa=e,e=a)):(fa=e,e=a),e}function Ms(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===ne?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Pt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Kn():(fa=e,e=a)):(fa=e,e=a),e}function Rs(){var e,r,n,s;return e=fa,t.substr(fa,5).toLowerCase()===ae?(r=t.substr(fa,5),fa+=5):(r=a,0===ha&&Na(_t)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=Xn():(fa=e,e=a)):(fa=e,e=a),e}function Ds(){var e,r,n,s;return e=fa,t.substr(fa,3).toLowerCase()===se?(r=t.substr(fa,3),fa+=3):(r=a,0===ha&&Na(Ft)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=ea():(fa=e,e=a)):(fa=e,e=a),e}function Os(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===ue?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Lt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=ta():(fa=e,e=a)):(fa=e,e=a),e}function Js(){var e,r,n,s;return e=fa,t.substr(fa,6).toLowerCase()===oe?(r=t.substr(fa,6),fa+=6):(r=a,0===ha&&Na(Mt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=ra():(fa=e,e=a)):(fa=e,e=a),e}function Us(){var e,r,n,s;return e=fa,t.substr(fa,6).toLowerCase()===ie?(r=t.substr(fa,6),fa+=6):(r=a,0===ha&&Na(Rt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=na():(fa=e,e=a)):(fa=e,e=a),e}function ks(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===le?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Dt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=aa():(fa=e,e=a)):(fa=e,e=a),e}function $s(){var e,r,n,s;return e=fa,t.substr(fa,3).toLowerCase()===ce?(r=t.substr(fa,3),fa+=3):(r=a,0===ha&&Na(Ot)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=sa():(fa=e,e=a)):(fa=e,e=a),e}function qs(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===fe?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Jt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=ua():(fa=e,e=a)):(fa=e,e=a),e}function Vs(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===pe?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(Ut)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=oa():(fa=e,e=a)):(fa=e,e=a),e}function Hs(){var e,r,n,s;return e=fa,t.substr(fa,4).toLowerCase()===de?(r=t.substr(fa,4),fa+=4):(r=a,0===ha&&Na(kt)),r!==a?(n=fa,ha++,s=Oa(),ha--,s===a?n=void 0:(fa=n,n=a),n!==a?e=ia():(fa=e,e=a)):(fa=e,e=a),e}function Bs(){var e;return 44===t.charCodeAt(fa)?(e=ve,fa++):(e=a,0===ha&&Na($t)),e}function js(){var e;return 40===t.charCodeAt(fa)?(e=he,fa++):(e=a,0===ha&&Na(qt)),e}function zs(){var e;return 41===t.charCodeAt(fa)?(e=me,fa++):(e=a,0===ha&&Na(Vt)),e}function Gs(){var e,t;for(e=[],t=Ys();t!==a;)e.push(t),t=Ys();return e}function Ys(){var e;return xe.test(t.charAt(fa))?(e=t.charAt(fa),fa++):(e=a,0===ha&&Na(Ht)),e}function Ws(){var e,r,n,s;if(e=fa,(r=Ra())!==a&&(r=la(r)),(e=r)===a)if(e=fa,96===t.charCodeAt(fa)?(r=ge,fa++):(r=a,0===ha&&Na(Bt)),r!==a){if(n=[],Ae.test(t.charAt(fa))?(s=t.charAt(fa),fa++):(s=a,0===ha&&Na(jt)),s!==a)for(;s!==a;)n.push(s),Ae.test(t.charAt(fa))?(s=t.charAt(fa),fa++):(s=a,0===ha&&Na(jt));else n=a;n!==a?(96===t.charCodeAt(fa)?(s=ge,fa++):(s=a,0===ha&&Na(Bt)),s!==a?e=ca(n):(fa=e,e=a)):(fa=e,e=a)}else fa=e,e=a;return e}function Zs(e,t,r,n){var a={type:"binary-expression",operator:e,left:t,right:r};return void 0!==n&&(a.escape=n),a}function Qs(e,t){for(var r=e,n=0;n<t.length;n++)r=Zs(t[n][1],r,t[n][3]);return r}if((n=o())!==a&&fa===t.length)return n;throw n!==a&&fa<t.length&&Na({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(va,da<t.length?t.charAt(da):null,da<t.length?wa(da,da+1):wa(da,da))}}},(m={get exports(){return y},set exports(e){y=e}}).exports&&(m.exports=g());class w{static parse(e){return y.parse(e)}}const N=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,I=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}(\.[0-9]+)?)$/,b=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}(\.[0-9]+)?)(\+|\-)(\d{1,2}):(\d{1,2})$/,T=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})(\+|\-)(\d{1,2}):(\d{1,2})$/,S=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/,x=new Set(["current_timestamp","current_date","current_time"]);function A(e,t){return(e+="").length>=t?e:new Array(t-e.length+1).join("0")+e}function E(e,t,r="0",n="0",a="0",s="0",u="",o="0",i="0"){if("+"===u||"-"===u){const l=`${A(parseInt(e,10),4)}-${A(parseInt(t,10),2)}-${A(parseInt(r,10),2)}`;let c="";parseFloat(s)<10&&(c="0");const f=`${A(parseInt(n,10),2)}:${A(parseInt(a,10),2)}:${c+parseFloat(s).toString()}`,p=`${u}${A(parseInt(o,10),2)}:${A(parseInt(i,10),2)}`;return new Date(l+"T"+f+p)}return new Date(parseInt(e,10),parseInt(t,10)-1,parseInt(r,10),parseInt(n,10),parseInt(a,10),parseFloat(s))}class C{static makeBool(e){return L(e)}static featureValue(e,t,r,n){return B(e,t,r,n)}static equalsNull(e){return null===e}static applyLike(e,t,r){return $(e,t,r)}static ensureArray(e){return M(e)}static applyIn(e,t){return J(e,t)}static currentDate(){const e=new Date;return e.setHours(0,0,0,0),e}static makeSqlInterval(e,t,r){return f.createFromValueAndQualifer(e,t,r)}static convertInterval(e){return e instanceof f?e.valueInMilliseconds():e}static currentTimestamp(){return new Date}static compare(e,t,r){return V(e,t,r)}static calculate(e,t,r){return H(e,t,r)}static makeComparable(e){return q(e)}static evaluateFunction(e,t){return p(e,t)}static lookup(e,t){const r=t[e];return void 0===r?null:r}static between(e,t){return null==e||null==t[0]||null==t[1]?null:e>=t[0]&&e<=t[1]}static notbetween(e,t){return null==e||null==t[0]||null==t[1]?null:e<t[0]||e>t[1]}static ternaryNot(e){return R(e)}static ternaryAnd(e,t){return D(e,t)}static ternaryOr(e,t){return O(e,t)}}class P{constructor(e,t){this.fieldsIndex=t,this._datefields={},this.parameters={},this._hasDateFunctions=void 0,this.parseTree=w.parse(e);const{isStandardized:r,isAggregate:n,referencedFieldNames:a}=this._extractExpressionInfo(t);this._referencedFieldNames=a,this.isStandardized=r,this.isAggregate=n}static create(e,t){return new P(e,t)}get fieldNames(){return this._referencedFieldNames}testSet(e,t=j){const r={};for(const n of this.fieldNames)r[n]=e.map((e=>t.getAttribute(e,n)));return!!this._evaluateNode(this.parseTree,{attributes:r},j)}calculateValue(e,t=j){const r=this._evaluateNode(this.parseTree,e,t);return r instanceof f?r.valueInMilliseconds()/864e5:r}calculateValueCompiled(e,t=j){return null!=this.parseTree._compiledVersion?this.parseTree._compiledVersion(e,this.parameters,t,this._datefields):(0,n.Z)("esri-csp-restrictions")?this.calculateValue(e,t):(this._compileMe(),this.parseTree._compiledVersion(e,this.parameters,t,this._datefields))}testFeature(e,t=j){return!!this._evaluateNode(this.parseTree,e,t)}testFeatureCompiled(e,t=j){return null!=this.parseTree._compiledVersion?!!this.parseTree._compiledVersion(e,this.parameters,t,this._datefields):(0,n.Z)("esri-csp-restrictions")?this.testFeature(e,t):(this._compileMe(),!!this.parseTree._compiledVersion(e,this.parameters,t,this._datefields))}get hasDateFunctions(){return null!=this._hasDateFunctions||(this._hasDateFunctions=!1,this._visitAll(this.parseTree,(e=>{"current-time"===e.type?this._hasDateFunctions=!0:"function"===e.type&&(this._hasDateFunctions=this._hasDateFunctions||x.has(e.name.toLowerCase()))}))),this._hasDateFunctions}getFunctions(){const e=new Set;return this._visitAll(this.parseTree,(t=>{"function"===t.type&&e.add(t.name.toLowerCase())})),Array.from(e)}getExpressions(){const e=new Map;return this._visitAll(this.parseTree,(t=>{if("function"===t.type){const r=t.name.toLowerCase(),n=t.args.value[0];if("column-reference"===n.type){const t=n.column,a=`${r}-${t}`;e.has(a)||e.set(a,{aggregateType:r,field:t})}}})),[...e.values()]}getVariables(){const e=new Set;return this._visitAll(this.parseTree,(t=>{"parameter"===t.type&&e.add(t.value.toLowerCase())})),Array.from(e)}_compileMe(){const e="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","datefields",e).bind(C)}_extractExpressionInfo(e){const t=[],r=new Set;let n=!0,s=!0;return this._visitAll(this.parseTree,(u=>{switch(u.type){case"column-reference":{const n=e?.get(u.column);let a,s;n?a=s=n.name??"":(s=u.column,a=s.toLowerCase()),n&&n.name&&("date"===n.type||"esriFieldTypeDate"===n.type)&&(this._datefields[n.name]=1),r.has(a)||(r.add(a),t.push(s)),u.column=s;break}case"function":{const{name:e,args:t}=u,r=t.value.length;n&&(n=function(e,t){const r=h[e.toLowerCase()];return null!=r&&t>=r.minParams&&t<=r.maxParams}(e,r)),s&&(s=a(e,r));break}}})),{referencedFieldNames:Array.from(t),isStandardized:n,isAggregate:s}}_visitAll(e,t){if(null!=e)switch(t(e),e.type){case"when-clause":this._visitAll(e.operand,t),this._visitAll(e.value,t);break;case"case-expression":for(const r of e.clauses)this._visitAll(r,t);"simple"===e.format&&this._visitAll(e.operand,t),null!==e.else&&this._visitAll(e.else,t);break;case"expression-list":for(const r of e.value)this._visitAll(r,t);break;case"unary-expression":this._visitAll(e.expr,t);break;case"binary-expression":this._visitAll(e.left,t),this._visitAll(e.right,t);break;case"function":this._visitAll(e.args,t)}}evaluateNodeToJavaScript(e){switch(e.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(e.value)+", "+JSON.stringify(e.qualifier)+","+JSON.stringify(e.op)+")";case"case-expression":{let t="";if("simple"===e.format){const r="this.makeComparable("+this.evaluateNodeToJavaScript(e.operand)+")";t="( ";for(let n=0;n<e.clauses.length;n++)t+=" ("+r+" === this.makeComparable("+this.evaluateNodeToJavaScript(e.clauses[n].operand)+")) ? ("+this.evaluateNodeToJavaScript(e.clauses[n].value)+") : ";null!==e.else?t+=this.evaluateNodeToJavaScript(e.else):t+="null",t+=" )"}else{t="( ";for(let r=0;r<e.clauses.length;r++)t+=" this.makeBool("+this.evaluateNodeToJavaScript(e.clauses[r].operand)+")===true ? ("+this.evaluateNodeToJavaScript(e.clauses[r].value)+") : ";null!==e.else?t+=this.evaluateNodeToJavaScript(e.else):t+="null",t+=" )"}return t}case"parameter":return"this.lookup("+JSON.stringify(e.value.toLowerCase())+",lookups)";case"expression-list":{let t="[";for(const r of e.value)"["!==t&&(t+=","),t+=this.evaluateNodeToJavaScript(r);return t+="]",t}case"unary-expression":return"this.ternaryNot("+this.evaluateNodeToJavaScript(e.expr)+")";case"binary-expression":switch(e.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+" )";case"IS":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return"this.equalsNull("+this.evaluateNodeToJavaScript(e.left)+")";case"ISNOT":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(e.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(e.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(e.right)+"))";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(e.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(e.right)+")))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+","+JSON.stringify(e.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+","+JSON.stringify(e.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(e.operator)+","+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"*":case"-":case"+":case"/":case"||":return"this.calculate("+JSON.stringify(e.operator)+","+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")"}throw new Error("Not Supported Operator "+e.operator);case"null":case"boolean":case"string":case"number":return JSON.stringify(e.value);case"date":return"(new Date("+F(e.value).getTime().toString()+"))";case"timestamp":return"(new Date("+_(e.value).getTime().toString()+"))";case"current-time":return"date"===e.mode?"this.currentDate()":"this.currentTimestamp()";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(e.column)+",datefields,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(e.name)+","+this.evaluateNodeToJavaScript(e.args)+")"}throw new Error("Unsupported sql syntax "+e.type)}_evaluateNode(e,t,r){switch(e.type){case"interval":{const n=this._evaluateNode(e.value,t,r);return f.createFromValueAndQualifer(n,e.qualifier,e.op)}case"case-expression":if("simple"===e.format){const n=q(this._evaluateNode(e.operand,t,r));for(let a=0;a<e.clauses.length;a++)if(n===q(this._evaluateNode(e.clauses[a].operand,t,r)))return this._evaluateNode(e.clauses[a].value,t,r);if(null!==e.else)return this._evaluateNode(e.else,t,r)}else{for(let n=0;n<e.clauses.length;n++)if(L(this._evaluateNode(e.clauses[n].operand,t,r)))return this._evaluateNode(e.clauses[n].value,t,r);if(null!==e.else)return this._evaluateNode(e.else,t,r)}return null;case"parameter":return this.parameters[e.value.toLowerCase()];case"expression-list":{const n=[];for(const a of e.value)n.push(this._evaluateNode(a,t,r));return n}case"unary-expression":return R(this._evaluateNode(e.expr,t,r));case"binary-expression":switch(e.operator){case"AND":return D(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"OR":return O(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"IS":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return null===this._evaluateNode(e.left,t,r);case"ISNOT":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return null!==this._evaluateNode(e.left,t,r);case"IN":{const n=M(this._evaluateNode(e.right,t,r));return J(this._evaluateNode(e.left,t,r),n)}case"NOT IN":{const n=M(this._evaluateNode(e.right,t,r));return R(J(this._evaluateNode(e.left,t,r),n))}case"BETWEEN":{const n=this._evaluateNode(e.left,t,r),a=this._evaluateNode(e.right,t,r);return null==n||null==a[0]||null==a[1]?null:n>=q(a[0])&&n<=q(a[1])}case"NOTBETWEEN":{const n=this._evaluateNode(e.left,t,r),a=this._evaluateNode(e.right,t,r);return null==n||null==a[0]||null==a[1]?null:n<q(a[0])||n>q(a[1])}case"LIKE":return $(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r),e.escape);case"NOT LIKE":return R($(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return V(e.operator,this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"-":case"+":case"*":case"/":case"||":return H(e.operator,this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r))}case"null":case"boolean":case"string":case"number":return e.value;case"date":return F(e.value);case"timestamp":return _(e.value);case"current-time":{const t=new Date;return"date"===e.mode&&t.setHours(0,0,0,0),t}case"column-reference":return B(t,e.column,this._datefields,r);case"data-type":return e.value;case"function":{const n=this._evaluateNode(e.args,t,r);return this.isAggregate?function(e,t){const r=s[e.toLowerCase()];if(null==r)throw new Error("Function Not Recognised");if(t.length<r.minParams||t.length>r.maxParams)throw new Error(`Invalid Parameter count for call to ${e.toUpperCase()}`);return r.evaluate(t)}(e.name,n):p(e.name,n)}}throw new Error("Unsupported sql syntax "+e.type)}}function _(e){let t=I.exec(e);if(null!==t){const[,e,r,n,a,s,u]=t;return E(e,r,n,a,s,u)}if(t=b.exec(e),null!==t){const[,e,r,n,a,s,u,o,i,l]=t;return E(e,r,n,a,s,u,o,i,l)}if(t=T.exec(e),null!==t){const[,e,r,n,a,s,u,o,i]=t;return E(e,r,n,a,s,"0",u,o,i)}if(t=S.exec(e),null!==t){const[,e,r,n,a,s]=t;return E(e,r,n,a,s)}if(t=N.exec(e),null!==t){const[,e,r,n]=t;return E(e,r,n)}throw new Error("SQL Invalid Timestamp")}function F(e){const t=N.exec(e);if(null===t)try{return _(e)}catch{throw new Error("SQL Invalid Date")}const[,r,n,a]=t;return new Date(parseInt(r,10),parseInt(n,10)-1,parseInt(a,10))}function L(e){return!0===e}function M(e){return Array.isArray(e)?e:[e]}function R(e){return null!==e?!0!==e:null}function D(e,t){return null!=e&&null!=t?!0===e&&!0===t:!1!==e&&!1!==t&&null}function O(e,t){return null!=e&&null!=t?!0===e||!0===t:!0===e||!0===t||null}function J(e,t){if(null==e)return null;let r=!1;for(const n of t)if(null==n)r=null;else if(e===n){r=!0;break}return r}const U="-[]/{}()*+?.\\^$|";var k;function $(e,t,r){return null==e?null:function(e,t){const r=t;let n="",a=k.Normal;for(let t=0;t<e.length;t++){const s=e.charAt(t);switch(a){case k.Normal:s===r?a=k.Escaped:U.includes(s)?n+="\\"+s:n+="%"===s?".*":"_"===s?".":s;break;case k.Escaped:U.includes(s)?n+="\\"+s:n+=s,a=k.Normal}}return new RegExp("^"+n+"$","m")}(t,r).test(e)}function q(e){return e instanceof Date?e.valueOf():e}function V(e,t,r){if(null==t||null==r)return null;const n=q(t),a=q(r);switch(e){case"<>":return n!==a;case"=":return n===a;case">":return n>a;case"<":return n<a;case">=":return n>=a;case"<=":return n<=a}}function H(e,t,r){if("||"===e)return p("concat",[t,r]);if(t instanceof f)if(r instanceof Date)switch(e){case"+":return new Date(t.valueInMilliseconds()+r.getTime());case"-":return t.valueInMilliseconds()-r.getTime();case"*":return t.valueInMilliseconds()*r.getTime();case"/":return t.valueInMilliseconds()/r.getTime()}else if(r instanceof f)switch(e){case"+":return f.createFromMilliseconds(t.valueInMilliseconds()+r.valueInMilliseconds());case"-":return f.createFromMilliseconds(t.valueInMilliseconds()-r.valueInMilliseconds());case"*":return t.valueInMilliseconds()*r.valueInMilliseconds();case"/":return t.valueInMilliseconds()/r.valueInMilliseconds()}else t=t.valueInMilliseconds();else if(r instanceof f)if(t instanceof Date)switch(e){case"+":return new Date(r.valueInMilliseconds()+t.getTime());case"-":return new Date(t.getTime()-r.valueInMilliseconds());case"*":return t.getTime()*r.valueInMilliseconds();case"/":return t.getTime()/r.valueInMilliseconds()}else r=r.valueInMilliseconds();else if(t instanceof Date&&"number"==typeof r)switch(r=24*r*60*60*1e3,t=t.getTime(),e){case"+":return new Date(t+r);case"-":return new Date(t-r);case"*":return new Date(t*r);case"/":return new Date(t/r)}else if(r instanceof Date&&"number"==typeof t)switch(t=24*t*60*60*1e3,r=r.getTime(),e){case"+":return new Date(t+r);case"-":return new Date(t-r);case"*":return new Date(t*r);case"/":return new Date(t/r)}switch(e){case"+":return t+r;case"-":return t-r;case"*":return t*r;case"/":return t/r}}function B(e,t,r,n){const a=n.getAttribute(e,t);return null!=a&&1===r[t]?new Date(a):a}!function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"}(k||(k={}));const j={getAttribute:(e,t)=>(function(e){return e&&"object"==typeof e.attributes}(e)?e.attributes:e)[t]}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8227],{20178:(e,n,t)=>{t.d(n,{A:()=>D,B:()=>T,C:()=>b,D:()=>A,E:()=>C,F:()=>L,G:()=>I,H:()=>V,I:()=>j,J:()=>k,K:()=>H,L:()=>O,M:()=>_,N:()=>q,a:()=>c,b:()=>u,c:()=>s,d:()=>a,e:()=>o,f:()=>f,g:()=>B,h:()=>l,i:()=>h,j:()=>d,k:()=>N,l:()=>v,m:()=>M,n:()=>y,o:()=>m,p:()=>w,q:()=>P,r:()=>g,s:()=>x,t:()=>p,u:()=>R,v:()=>Z,w:()=>G,x:()=>z,y:()=>E,z:()=>S});var r=t(45837),i=t(37455);function o(e){return r.G.extendedSpatialReferenceInfo(e)}function s(e,n,t){return r.G.clip(i.N,e,n,t)}function c(e,n,t){return r.G.cut(i.N,e,n,t)}function u(e,n,t){return r.G.contains(i.N,e,n,t)}function a(e,n,t){return r.G.crosses(i.N,e,n,t)}function f(e,n,t,o){return r.G.distance(i.N,e,n,t,o)}function l(e,n,t){return r.G.equals(i.N,e,n,t)}function h(e,n,t){return r.G.intersects(i.N,e,n,t)}function p(e,n,t){return r.G.touches(i.N,e,n,t)}function G(e,n,t){return r.G.within(i.N,e,n,t)}function d(e,n,t){return r.G.disjoint(i.N,e,n,t)}function m(e,n,t){return r.G.overlaps(i.N,e,n,t)}function g(e,n,t,o){return r.G.relate(i.N,e,n,t,o)}function N(e,n){return r.G.isSimple(i.N,e,n)}function x(e,n){return r.G.simplify(i.N,e,n)}function v(e,n,t=!1){return r.G.convexHull(i.N,e,n,t)}function M(e,n,t){return r.G.difference(i.N,e,n,t)}function y(e,n,t){return r.G.symmetricDifference(i.N,e,n,t)}function w(e,n,t){return r.G.intersect(i.N,e,n,t)}function R(e,n,t=null){return r.G.union(i.N,e,n,t)}function P(e,n,t,o,s,c,u){return r.G.offset(i.N,e,n,t,o,s,c,u)}function Z(e,n,t,o,s=!1){return r.G.buffer(i.N,e,n,t,o,s)}function z(e,n,t,o,s,c,u){return r.G.geodesicBuffer(i.N,e,n,t,o,s,c,u)}function E(e,n,t,o=!0){return r.G.nearestCoordinate(i.N,e,n,t,o)}function S(e,n,t){return r.G.nearestVertex(i.N,e,n,t)}function D(e,n,t,o,s){return r.G.nearestVertices(i.N,e,n,t,o,s)}function T(e,n,t,i){if(null==n||null==i)throw new Error("Illegal Argument Exception");const o=r.G.rotate(n,t,i);return o.spatialReference=e,o}function b(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipHorizontal(n,t);return i.spatialReference=e,i}function A(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipVertical(n,t);return i.spatialReference=e,i}function C(e,n,t,o,s){return r.G.generalize(i.N,e,n,t,o,s)}function L(e,n,t,o){return r.G.densify(i.N,e,n,t,o)}function I(e,n,t,o,s=0){return r.G.geodesicDensify(i.N,e,n,t,o,s)}function V(e,n,t){return r.G.planarArea(i.N,e,n,t)}function j(e,n,t){return r.G.planarLength(i.N,e,n,t)}function k(e,n,t,o){return r.G.geodesicArea(i.N,e,n,t,o)}function H(e,n,t,o){return r.G.geodesicLength(i.N,e,n,t,o)}function O(e,n,t){return null==n||null==t?[]:r.G.intersectLinesToPoints(i.N,e,n,t)}function _(e,n){r.G.changeDefaultSpatialReferenceTolerance(e,n)}function q(e){r.G.clearDefaultSpatialReferenceTolerance(e)}const B=Object.freeze(Object.defineProperty({__proto__:null,buffer:Z,changeDefaultSpatialReferenceTolerance:_,clearDefaultSpatialReferenceTolerance:q,clip:s,contains:u,convexHull:v,crosses:a,cut:c,densify:L,difference:M,disjoint:d,distance:f,equals:l,extendedSpatialReferenceInfo:o,flipHorizontal:b,flipVertical:A,generalize:C,geodesicArea:k,geodesicBuffer:z,geodesicDensify:I,geodesicLength:H,intersect:w,intersectLinesToPoints:O,intersects:h,isSimple:N,nearestCoordinate:E,nearestVertex:S,nearestVertices:D,offset:P,overlaps:m,planarArea:V,planarLength:j,relate:g,rotate:T,simplify:x,symmetricDifference:y,touches:p,union:R,within:G},Symbol.toStringTag,{value:"Module"}))},37455:(e,n,t)=>{t.d(n,{N:()=>r});const r={convertToGEGeometry:function(e,n){return null==n?null:e.convertJSONToGeometry(n)},exportPoint:function(e,n,t){const r=new i(e.getPointX(n),e.getPointY(n),t),o=e.hasZ(n),s=e.hasM(n);return o&&(r.z=e.getPointZ(n)),s&&(r.m=e.getPointM(n)),r},exportPolygon:function(e,n,t){return new o(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportPolyline:function(e,n,t){return new s(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportMultipoint:function(e,n,t){return new c(e.exportPoints(n),t,e.hasZ(n),e.hasM(n))},exportExtent:function(e,n,t){const r=e.hasZ(n),i=e.hasM(n),o=new u(e.getXMin(n),e.getYMin(n),e.getXMax(n),e.getYMax(n),t);if(r){const t=e.getZExtent(n);o.zmin=t.vmin,o.zmax=t.vmax}if(i){const t=e.getMExtent(n);o.mmin=t.vmin,o.mmax=t.vmax}return o}};class i{constructor(e,n,t){this.x=e,this.y=n,this.spatialReference=t,this.z=void 0,this.m=void 0}}class o{constructor(e,n,t,r){this.rings=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class s{constructor(e,n,t,r){this.paths=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class c{constructor(e,n,t,r){this.points=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class u{constructor(e,n,t,r,i){this.xmin=e,this.ymin=n,this.xmax=t,this.ymax=r,this.spatialReference=i,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},48227:(e,n,t)=>{t.r(n),t.d(n,{executeGEOperation:()=>i});var r=t(20178);function i(e){return(0,r.g[e.operation])(...e.parameters)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9971],{92835:(e,t,s)=>{s.d(t,{Z:()=>m});var r,i=s(43697),l=s(96674),n=s(70586),o=s(35463),a=s(5600),h=(s(75215),s(67676),s(80442),s(71715)),u=s(52011),c=s(30556);let p=r=class extends l.wq{static get allTime(){return d}static get empty(){return f}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=null!=this.start?this.start.getTime():this.start,s=null!=this.end?this.end.getTime():this.end,r=null!=e.start?e.start.getTime():e.start,i=null!=e.end?e.end.getTime():e.end;return t===r&&s===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,n.yw)(this.start,(t=>(0,o.JE)(t,e))),s=(0,n.yw)(this.end,(t=>{const s=(0,o.JE)(t,e);return t.getTime()===s.getTime()?s:(0,o.Nm)(s,1,e)}));return new r({start:t,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let n,o;if(i>=t&&i<=s?n=i:t>=i&&t<=l&&(n=t),s>=i&&s<=l?o=s:l>=t&&l<=s&&(o=l),null!=n&&null!=o&&!isNaN(n)&&!isNaN(o)){const e=new r;return e.start=n===-1/0?null:new Date(n),e.end=o===1/0?null:new Date(o),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:i,end:l}=this;return null!=i&&(s.start=(0,o.Nm)(i,e,t)),null!=l&&(s.end=(0,o.Nm)(l,e,t)),s}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,h.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,c.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,h.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,c.c)("start")],p.prototype,"writeStart",null),p=r=(0,i._)([(0,u.j)("esri.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0}),m=p},5732:(e,t,s)=>{s.d(t,{c:()=>r});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},46791:(e,t,s)=>{s.d(t,{Z:()=>x});var r,i=s(43697),l=s(3894),n=s(32448),o=s(22974),a=s(70586),h=s(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var u,c=s(1654),p=s(75215),d=s(58971),f=s(5600),m=s(52421),g=s(52011),v=s(10661);const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function b(e){return e?e instanceof Z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function C(e,t,s,r){const i=Math.min(e.length-s,t.length-r);let l=0;for(;l<i&&e[s+l]===t[r+l];)l++;return l}function E(e,t,s,r){t&&t.forEach(((t,i,l)=>{e.push(t),E(e,s.call(r,t,i,l),s,r)}))}const T=new Set,D=new Set,I=new Set,M=new Map;let O=0,Z=u=class extends n.Z.EventedAccessor{static isCollection(e){return null!=e&&e instanceof u}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new v.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof u?{items:e}:e:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,d.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,b(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,s.removed=!0,e.splice(e.indexOf(s),1)}}}return this._emitter.on(e,t)}once(e,t){const s=this.on(e,t);return{remove(){s.remove()}}}add(e,t){if((0,d.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,d.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,b(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,d.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(r.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...e){(0,d.it)(this._observable);const t=e.map(b);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const s=(0,a.j0)(this._splice(0,this.length)),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,d.it)(this._observable),this._items.every(e,t)}filter(e,t){let s;return(0,d.it)(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return(0,d.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,d.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,d.it)(this._observable);const s=[];return E(s,this,e,t),new u(s)}forEach(e,t){return(0,d.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,d.it)(this._observable),this._items[e]}getNextIndex(e){(0,d.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,d.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,d.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,d.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,d.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,d.it)(this._observable);const s=this._items.map(e,t);return new u({items:s})}reorder(e,t=this.length-1){(0,d.it)(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,d.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return(0,d.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,d.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,d.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof u?e.toArray():e,s=this._items,i=[],l=t.length;for(let e=0;e<l;e++){const r=t[e],l=s.indexOf(r);if(l>-1){const r=1+C(t,s,e+1,l+1),n=this._splice(l,r);n&&n.length>0&&i.push.apply(i,n),e+=r-1}}return this._emitAfterChanges(r.REMOVE),i}reverse(){if((0,d.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,d.it)(this._observable),this._items.some(e,t)}sort(e){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,a.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...s){(0,d.it)(this._observable);const i=(t?r.REMOVE:0)|(s.length?r.ADD:0);if(this._emitBeforeChanges(i))return[];const l=this._splice(e,t,s)||[];return this._emitAfterChanges(i),l}toArray(){return(0,d.it)(this._observable),this._items.slice()}toJSON(){return(0,d.it)(this._observable),this.toArray()}toLocaleString(){return(0,d.it)(this._observable),this._items.toLocaleString()}toString(){return(0,d.it)(this._observable),this._items.toString()}unshift(...e){return(0,d.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const r=this._items,i=this.itemType;let l,n;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,c.Os)((()=>this._dispatchChange()))),t){if(n=r.splice(e,t),this.hasEventListener("before-remove")){const t=y.acquire();t.target=this,t.cancellable=!0;for(let s=0,i=n.length;s<i;s++)l=n[s],t.reset(l),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(s,1),r.splice(e,0,l),e+=1,s-=1,i-=1);y.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=y.acquire();e.target=this,e.cancellable=!1;const t=n.length;for(let s=0;s<t;s++)e.reset(n[s]),this.emit("after-remove",e);y.release(e)}}if(s&&s.length){if(i){const e=[];for(const t of s){const s=i.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),l=this.hasEventListener("after-add"),n=e===this.length;if(t||l){const i=y.acquire();i.target=this,i.cancellable=!0;const o=y.acquire();o.target=this,o.cancellable=!1;for(const a of s)t?(i.reset(a),this.emit("before-add",i),i.defaultPrevented||(n?r.push(a):r.splice(e++,0,a),this._set("length",r.length),l&&(o.reset(a),this.emit("after-add",o)))):(n?r.push(a):r.splice(e++,0,a),this._set("length",r.length),o.reset(a),this.emit("after-add",o));y.release(o),y.release(i)}else{if(n)for(const e of s)r.push(e);else r.splice(e,0,...s);this._set("length",r.length)}}return(s&&s.length||n&&n.length)&&this._notifyChangeEvent(s,n),n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=y.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,y.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=y.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),y.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;T.clear(),D.clear(),I.clear();for(const{added:t,removed:s}of e){if(t)if(0===I.size&&0===D.size)for(const e of t)T.add(e);else for(const e of t)D.has(e)?(I.add(e),D.delete(e)):I.has(e)||T.add(e);if(s)if(0===I.size&&0===T.size)for(const e of s)D.add(e);else for(const e of s)T.has(e)?T.delete(e):(I.delete(e),D.add(e))}const s=l.Z.acquire();T.forEach((e=>{s.push(e)}));const r=l.Z.acquire();D.forEach((e=>{r.push(e)}));const i=this._items,n=t.items,o=l.Z.acquire();if(I.forEach((e=>{n.indexOf(e)!==i.indexOf(e)&&o.push(e)})),t.listeners&&(s.length||r.length||o.length)){const e={target:this,added:s,removed:r,moved:o},i=t.listeners.length;for(let s=0;s<i;s++){const r=t.listeners[s];r.removed||r.callback.call(this,e)}}l.Z.release(s),l.Z.release(r),l.Z.release(o)}T.clear(),D.clear(),I.clear()}};Z.ofType=e=>{if(!e)return u;if(M.has(e))return M.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const s in e.typeMap){const r=e.typeMap[s].prototype.declaredClass;t?t+=` | ${r}`:t=r}let s=class extends u{};return(0,i._)([(0,m.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],s.prototype,"itemType",void 0),s=(0,i._)([(0,g.j)(`esri.core.Collection<${t}>`)],s),M.set(e,s),s},(0,i._)([(0,f.Cb)()],Z.prototype,"length",void 0),(0,i._)([(0,f.Cb)()],Z.prototype,"items",null),Z=u=(0,i._)([(0,g.j)("esri.core.Collection")],Z);const x=Z},52421:(e,t,s)=>{function r(e){return(t,s)=>{t[s]=e}}s.d(t,{c:()=>r})},35463:(e,t,s)=>{s.d(t,{JE:()=>n,Nm:()=>l,rJ:()=>o}),s(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function l(e,t,s){const r=new Date(e.getTime());if(t&&s){const e=i[s],{getter:l,setter:n,multiplier:o}=e;if("months"===s){const e=function(e,t){const s=new Date(e,t+1,1);return s.setDate(0),s.getDate()}(r.getFullYear(),r.getMonth()+t);r.getDate()>e&&r.setDate(e)}r[n](r[l]()+t*o)}return r}function n(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,s){return 0===e?0:e*r[t]/r[s]}},16199:(e,t,s)=>{s.r(t),s.d(t,{default:()=>O});var r,i=s(43697),l=(s(66577),s(3172)),n=s(20102),o=s(16453),a=s(19153),h=s(17452),u=s(5600),c=(s(75215),s(67676),s(80442),s(71715)),p=s(52011),d=s(30556),f=s(87085),m=s(71612),g=s(38009),v=s(16859),y=s(34760),_=s(72965),b=s(90082),w=s(39450),C=s(11145),E=s(5833),T=s(6570),D=s(82971),I=s(94139);let M=r=class extends((0,m.h)((0,y.Q)((0,_.M)((0,g.q)((0,v.I)((0,o.R)(f.Z))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new T.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,D.Z.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=D.Z.WebMercator,this.subDomains=null,this.tileInfo=new C.Z({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new I.Z({x:-20037508.342787,y:20037508.342787,spatialReference:D.Z.WebMercator}),spatialReference:D.Z.WebMercator,lods:[new w.Z({level:0,scale:591657527.591555,resolution:156543.033928}),new w.Z({level:1,scale:295828763.795777,resolution:78271.5169639999}),new w.Z({level:2,scale:147914381.897889,resolution:39135.7584820001}),new w.Z({level:3,scale:73957190.948944,resolution:19567.8792409999}),new w.Z({level:4,scale:36978595.474472,resolution:9783.93962049996}),new w.Z({level:5,scale:18489297.737236,resolution:4891.96981024998}),new w.Z({level:6,scale:9244648.868618,resolution:2445.98490512499}),new w.Z({level:7,scale:4622324.434309,resolution:1222.99245256249}),new w.Z({level:8,scale:2311162.217155,resolution:611.49622628138}),new w.Z({level:9,scale:1155581.108577,resolution:305.748113140558}),new w.Z({level:10,scale:577790.554289,resolution:152.874056570411}),new w.Z({level:11,scale:288895.277144,resolution:76.4370282850732}),new w.Z({level:12,scale:144447.638572,resolution:38.2185141425366}),new w.Z({level:13,scale:72223.819286,resolution:19.1092570712683}),new w.Z({level:14,scale:36111.909643,resolution:9.55462853563415}),new w.Z({level:15,scale:18055.954822,resolution:4.77731426794937}),new w.Z({level:16,scale:9027.977411,resolution:2.38865713397468}),new w.Z({level:17,scale:4513.988705,resolution:1.19432856685505}),new w.Z({level:18,scale:2256.994353,resolution:.597164283559817}),new w.Z({level:19,scale:1128.497176,resolution:.298582141647617}),new w.Z({level:20,scale:564.248588,resolution:.14929107082380833}),new w.Z({level:21,scale:282.124294,resolution:.07464553541190416}),new w.Z({level:22,scale:141.062147,resolution:.03732276770595208}),new w.Z({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new h.R9(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new n.Z("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&D.Z.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:s}=this,r=new h.R9(t),i=r.scheme?r.scheme+"://":"//",l=i+r.authority+"/",n=r.authority;if(n?.includes("{subDomain}")){if(s&&s.length>0&&n.split(".").length>1)for(const t of s)e.push(i+n.replace(/\{subDomain\}/gi,t)+"/")}else e.push(l);return e.map((e=>("/"!==e.charAt(e.length-1)&&(e+="/"),e)))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new h.R9(e),s=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(s.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&(0,h.oC)(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=(0,h.Fv)(e)),t.templateUrl=e}fetchTile(e,t,s,r={}){const{signal:i}=r,n=this.getTileUrl(e,t,s),o={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,l.default)(n,o).then((e=>e.data))}async fetchImageBitmapTile(e,t,s,i={}){const{signal:n}=i;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,s,i);return(0,b.V)(r,e,t,s,n)}const o=this.getTileUrl(e,t,s),a={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:h}=await(0,l.default)(o,a);return(0,b.V)(h,e,t,s,n)}getTileUrl(e,t,s){const{levelValues:r,tileServers:i,urlPath:l}=this;if(!r||!i||!l)return"";const n=r[e];return i[t%i.length]+(0,a.gx)(l,{level:n,z:n,col:s,x:s,row:t,y:t})}};(0,i._)([(0,u.Cb)({type:String,value:"",json:{write:!0}})],M.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({type:T.Z,json:{write:!0},nonNullable:!0})],M.prototype,"fullExtent",void 0),(0,i._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1}})],M.prototype,"legendEnabled",void 0),(0,i._)([(0,u.Cb)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({json:{read:!0,write:!0}})],M.prototype,"blendMode",void 0),(0,i._)([(0,u.Cb)()],M.prototype,"levelValues",null),(0,i._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],M.prototype,"isReference",void 0),(0,i._)([(0,u.Cb)({type:["WebTiledLayer"],value:"WebTiledLayer"})],M.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1}})],M.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)({type:D.Z})],M.prototype,"spatialReference",void 0),(0,i._)([(0,c.r)("spatialReference",["spatialReference","fullExtent.spatialReference"])],M.prototype,"readSpatialReference",null),(0,i._)([(0,u.Cb)({type:[String],json:{write:!0}})],M.prototype,"subDomains",void 0),(0,i._)([(0,u.Cb)({type:C.Z,json:{write:!0}})],M.prototype,"tileInfo",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],M.prototype,"tileServers",null),(0,i._)([(0,u.Cb)({json:{read:!1}})],M.prototype,"type",void 0),(0,i._)([(0,u.Cb)()],M.prototype,"urlPath",null),(0,i._)([(0,u.Cb)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],M.prototype,"urlTemplate",void 0),(0,i._)([(0,c.r)("urlTemplate",["urlTemplate","templateUrl"])],M.prototype,"readUrlTemplate",null),(0,i._)([(0,d.c)("urlTemplate",{templateUrl:{type:String}})],M.prototype,"writeUrlTemplate",null),(0,i._)([(0,u.Cb)({type:E.B,json:{write:!0}})],M.prototype,"wmtsInfo",void 0),M=r=(0,i._)([(0,p.j)("esri.layers.WebTileLayer")],M);const O=M},16859:(e,t,s)=>{s.d(t,{I:()=>C});var r=s(43697),i=s(68773),l=s(40330),n=s(3172),o=s(66643),a=s(20102),h=s(92604),u=s(70586),c=s(95330),p=s(17452),d=s(5600),f=(s(75215),s(67676),s(80442),s(71715)),m=s(52011),g=s(30556),v=s(84230),y=s(65587),_=s(15235),b=s(86082),w=s(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,s){if(t.itemId)return new _.default({id:t.itemId,portal:s&&s.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await s.e(8062).then(s.bind(s,18062));return(0,c.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||h.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!i.Z.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:s,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",s),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let s=this.portalItem;if(!e||!s||!s.loaded||s.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===s.id;if(r&&s.portal.user)return(0,w.Ss)(s);let i,n;if(r)i=s.portal.url;else try{i=await(0,v.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!i||!(0,p.Zo)(i,s.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(l.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!n)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await s.reload():(s=new _.default({id:e,portal:{url:i}}),await s.load(t)),s.portal.user)return(0,w.Ss)(s)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?l.id?.findCredential(this.url):null;if(!t)return!0;const s=E.credential===t?E.user:await this._fetchEditingUser(e);return E.credential=t,E.user=s,null==s||null==s.privileges||s.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const s=l.id.findServerInfo(this.url??"");if(!s?.owningSystemUrl)return null;const r=`${s.owningSystemUrl}/sharing/rest`,i=y.Z.getDefault();if(i&&i.loaded&&(0,p.Fv)(i.restUrl)===(0,p.Fv)(r))return i.user;const a=`${r}/community/self`,h=null!=e?e.signal:null,u=await(0,o.q6)((0,n.default)(a,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?b.default.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const s=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return s&&r&&!(0,p.tm)(r.restUrl,s.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,d.Cb)({type:_.default})],t.prototype,"portalItem",null),(0,r._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,d.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},E={credential:null,user:null}},34760:(e,t,s)=>{s.d(t,{Q:()=>v});var r=s(43697),i=s(92604),l=s(95330),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(46791),h=(s(20102),s(26258),s(87538));const u=new a.Z,c=new WeakMap;function p(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let f=0,m=0;function g(){const e=Date.now();for(const t of u)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,h.EH)((()=>{const e=Date.now();let t=0;for(const s of u)t=d(Math.round(6e4*s.refreshInterval),t),s.refreshInterval?c.get(s)||c.set(s,e):c.delete(s);if(t!==m){if(m=t,clearInterval(f),0===m)return void(f=0);f=setInterval(g,m)}}));const v=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,l.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){p(e)&&u.push(e)}(this)}),(()=>{}))}destroy(){p(this)&&u.includes(this)&&u.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,l.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,r._)([(0,n.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,n.Cb)()],t.prototype,"refreshParameters",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,s)=>{s.d(t,{Z:()=>u});var r,i=s(43697),l=s(96674),n=s(5600),o=s(75215),a=(s(67676),s(80442),s(52011));let h=r=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,n.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"cols",void 0),(0,i._)([(0,n.Cb)({type:o.z8,json:{write:!0}})],h.prototype,"level",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"levelValue",void 0),(0,i._)([(0,n.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"origin",void 0),(0,i._)([(0,n.Cb)({type:Number,json:{write:!0}})],h.prototype,"resolution",void 0),(0,i._)([(0,n.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"rows",void 0),(0,i._)([(0,n.Cb)({type:Number,json:{write:!0}})],h.prototype,"scale",void 0),h=r=(0,i._)([(0,a.j)("esri.layers.support.LOD")],h);const u=h},11145:(e,t,s)=>{s.d(t,{Z:()=>T});var r,i=s(43697),l=s(35454),n=s(96674),o=s(67900),a=s(5600),h=s(75215),u=(s(67676),s(80442),s(71715)),c=s(52011),p=s(30556),d=s(94139),f=s(82971),m=s(24470),g=s(8744),v=s(40488),y=s(39450),_=s(43077);const b=new l.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=r=class extends n.wq{static create(e={}){const{resolutionFactor:t=1,scales:s,size:i=256,spatialReference:l=f.Z.WebMercator,numLODs:n=24}=e;if(!(0,g.JY)(l)){const e=[];if(s)for(let t=0;t<s.length;t++){const r=s[t];e.push(new y.Z({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let s=n-1;s>=0;s--)e.unshift(new y.Z({level:s,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new d.Z(0,0,l),size:[i,i],spatialReference:l})}const a=(0,g.C5)(l),h=e.origin?new d.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new d.Z(a?{x:a.origin[0],y:a.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),u=1/(39.37*(0,o.c9)(l)*96),c=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],r=t*u;c.push(new y.Z({level:e,scale:t,resolution:r}))}else{let e=(0,g.sT)(l)?512/i*591657527.5917094:256/i*591657527.591555;const s=Math.ceil(n/t);c.push(new y.Z({level:0,scale:e,resolution:e*u}));for(let r=1;r<s;r++){const s=e/2**t,i=s*u;c.push(new y.Z({level:r,scale:s,resolution:i})),e=s}}return new r({dpi:96,lods:c,origin:h,size:[i,i],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,g.C5)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return d.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const r=[],i=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,i[e.level]=e}))),this._set("scales",r),this._set("minScale",t),this._set("maxScale",s),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),r=s+1;return t[s]/(t[s]/t[r])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let r=0;for(;r<s;r++){const s=t[r],i=t[r+1];if(s<=e)return r;if(i===e)return r+1;if(s>e&&i<e)return r+Math.log(s/e)/Math.log(s/i)}return r}snapScale(e,t=.95){const s=this.scaleToZoom(e);return s%Math.floor(s)>=t?this.zoomToScale(Math.ceil(s)):this.zoomToScale(Math.floor(s))}tileAt(e,t,s,r){const i=this.lodAt(e);if(!i)return null;let l,n;if("number"==typeof t)l=t,n=s;else if((0,g.fS)(t.spatialReference,this.spatialReference))l=t.x,n=t.y,r=s;else{const e=(0,v.iV)(t,this.spatialReference);if(null==e)return null;l=e.x,n=e.y,r=s}const o=i.resolution*this.size[0],a=i.resolution*this.size[1];return r||(r=new _.f(null,0,0,0,(0,m.Ue)())),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let s=this.lodAt(e.level);if(!s&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return;const i=e.level-s.level,l=s.resolution*this.size[0]/2**i,n=s.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,m.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+n}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:r}=s,i=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+i,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const s=[],i=this.lods.length;for(let e=0;e<i;e++){const r=this.lods[e],i=r.resolution*t;s.push(new y.Z({level:r.level,scale:r.scale,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const r=e[s];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var C,E;(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,i._)([(0,a.Cb)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],w.prototype,"isWrappable",null),(0,i._)([(0,a.Cb)({type:d.Z,json:{write:!0}})],w.prototype,"origin",void 0),(0,i._)([(0,u.r)("origin")],w.prototype,"readOrigin",null),(0,i._)([(0,a.Cb)({type:[y.Z],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,i._)([(0,a.Cb)({readOnly:!0})],w.prototype,"minScale",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],w.prototype,"maxScale",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],w.prototype,"scales",void 0),(0,i._)([(0,a.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,i._)([(0,u.r)("size",["rows","cols"])],w.prototype,"readSize",null),(0,i._)([(0,p.c)("size",{cols:{type:h.z8},rows:{type:h.z8}})],w.prototype,"writeSize",null),(0,i._)([(0,a.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,i._)([(0,c.j)("esri.layers.support.TileInfo")],w),(E=(C=w||(w={})).ExtrapolateOptions||(C.ExtrapolateOptions={}))[E.NONE=0]="NONE",E[E.POWER_OF_TWO=1]="POWER_OF_TWO";const T=w},43077:(e,t,s)=>{s.d(t,{f:()=>r});class r{constructor(e,t,s,r,i=undefined){this.id=e,this.level=t,this.row=s,this.col=r,this.extent=i}}},5833:(e,t,s)=>{s.d(t,{B:()=>h});var r,i=s(43697),l=s(96674),n=s(22974),o=s(5600),a=(s(75215),s(52011));let h=r=class extends l.wq{constructor(e){super(e)}clone(){return new r({customLayerParameters:(0,n.d9)(this.customLayerParameters),customParameters:(0,n.d9)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,o.Cb)({json:{type:Object,write:!0}})],h.prototype,"customLayerParameters",void 0),(0,i._)([(0,o.Cb)({json:{type:Object,write:!0}})],h.prototype,"customParameters",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"layerIdentifier",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"tileMatrixSet",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"url",void 0),h=r=(0,i._)([(0,a.j)("esri.layer.support.WMTSLayerInfo")],h)},90082:(e,t,s)=>{s.d(t,{V:()=>n,g:()=>l});var r=s(20102),i=s(95330);async function l(e,t,s){let l;try{l=await createImageBitmap(e)}catch(e){throw new r.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.k_)(s),l}async function n(e,t,s,l,n){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.Z("request:server",`Unable to load tile ${t}/${s}/${l}`,{error:e,level:t,row:s,col:l})}return(0,i.k_)(n),o}}}]);
|