@esri/solutions-components 0.8.39 → 0.8.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/solution-spatial-ref/resources.json +3 -3
- package/dist/assets/t9n/solution-spatial-ref/resources_en.json +2 -2
- package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +2 -2
- package/dist/assets/t9n/solution-spatial-ref/resources_he.json +2 -2
- package/dist/cjs/_commonjsHelpers-baf43783.js +20 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -2
- package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -2
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +3 -2
- package/dist/cjs/calcite-alert_4.cjs.entry.js +7 -6
- package/dist/cjs/calcite-block_5.cjs.entry.js +5 -4
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +3 -2
- package/dist/cjs/calcite-flow_6.cjs.entry.js +3 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +9 -8
- package/dist/cjs/card-manager_3.cjs.entry.js +6 -5
- package/dist/cjs/{common-03600219.js → common-7ee7ad73.js} +1 -1
- package/dist/cjs/consent-manager.cjs.entry.js +3 -2
- package/dist/cjs/{core-b459e4f2.js → core-7f0bcc12.js} +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -2
- package/dist/cjs/{downloadUtils-839a1425.js → downloadUtils-2e169425.js} +7 -7
- package/dist/cjs/{esri-loader-fce6a9cb.js → esri-loader-a56cbcbe.js} +2 -13
- package/dist/cjs/feature-list.cjs.entry.js +7 -6
- package/dist/cjs/{helpers-7cee3150.js → helpers-95c28cf3.js} +1 -1
- package/dist/cjs/{html2canvas-ef5cae40.js → html2canvas-29c6b9cc.js} +2 -2
- package/dist/cjs/{index.es-dd4d4842.js → index.es-301b8d18.js} +11 -10
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +6 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-create.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +4 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +4 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -5
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +7 -6
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +7 -6
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -4
- package/dist/cjs/{languageSwitcher-1154d55d.js → languageSwitcher-f0bb94fa.js} +1 -1
- package/dist/cjs/{languageUtil-d23251cd.js → languageUtil-f22ce913.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +3 -2
- package/dist/cjs/{loadModules-4189814e.js → loadModules-36d49819.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-62f4cef2.js → locale-708985a1.js} +2 -2
- package/dist/cjs/{locale-6973733d.js → locale-f6fd03d2.js} +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +6 -5
- package/dist/cjs/{popupUtils-bae7f923.js → popupUtils-36e57a27.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +6 -5
- package/dist/cjs/{purify-4a0e9dfb.js → purify-17c0fc4a.js} +2 -2
- package/dist/cjs/{restHelpersGet-afc74285.js → restHelpersGet-be451f4a.js} +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +10 -350
- package/dist/cjs/solution-contents_3.cjs.entry.js +58 -48
- package/dist/cjs/solution-resource-a09a6fe0.js +145 -0
- package/dist/cjs/{solution-store-c8bada29.js → solution-store-d9f3ea44.js} +8 -10
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +6 -5
- package/dist/cjs/store-manager.cjs.entry.js +17 -13
- package/dist/cjs/templates-f7a3bf48.js +401 -0
- package/dist/cjs/{utils-1de4eaa0.js → utils-31a22d49.js} +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +11 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +83 -47
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +25 -24
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/components/store-manager/store-manager.js +11 -13
- package/dist/collection/demos/data/election-outreach.json +2981 -0
- package/dist/collection/demos/solution-item.html +7 -6
- package/dist/collection/demos/solution-spatial-ref.html +10 -4
- package/dist/collection/demos/solution-template-data.html +5 -5
- package/dist/collection/utils/interfaces.ts +0 -2
- package/dist/collection/utils/solution-store.js +6 -8
- package/dist/collection/utils/solution-store.ts +12 -13
- package/dist/collection/utils/templates.js +113 -26
- package/dist/collection/utils/templates.ts +125 -30
- package/dist/collection/utils/test/templates.e2e.js +2 -2
- package/dist/collection/utils/test/templates.e2e.ts +2 -2
- package/dist/components/_commonjsHelpers.js +16 -0
- package/dist/components/core.js +1 -1
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/esri-loader.js +2 -10
- package/dist/components/html2canvas.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/purify.js +1 -1
- package/dist/components/solution-configuration.js +1 -342
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-resource.js +1 -1
- package/dist/components/solution-spatial-ref2.js +52 -44
- package/dist/components/solution-store.js +6 -8
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref2.js +1 -1
- package/dist/components/store-manager.js +11 -13
- package/dist/components/templates.js +395 -0
- package/dist/esm/_commonjsHelpers-089957fe.js +16 -0
- package/dist/esm/basemap-gallery_7.entry.js +3 -2
- package/dist/esm/buffer-tools_3.entry.js +3 -2
- package/dist/esm/calcite-action-pad_2.entry.js +3 -2
- package/dist/esm/calcite-alert_4.entry.js +7 -6
- package/dist/esm/calcite-block_5.entry.js +5 -4
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-dropdown-group_2.entry.js +3 -2
- package/dist/esm/calcite-flow_6.entry.js +3 -2
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +9 -8
- package/dist/esm/card-manager_3.entry.js +6 -5
- package/dist/esm/{common-8697fccd.js → common-96e3ddb0.js} +1 -1
- package/dist/esm/consent-manager.entry.js +3 -2
- package/dist/esm/{core-4bd4a70f.js → core-6a3c13ac.js} +1 -1
- package/dist/esm/crowdsource-manager.entry.js +3 -2
- package/dist/esm/crowdsource-reporter.entry.js +3 -2
- package/dist/esm/{downloadUtils-97acca92.js → downloadUtils-5fbd8a40.js} +6 -6
- package/dist/esm/{esri-loader-3080dcc0.js → esri-loader-781d738a.js} +2 -10
- package/dist/esm/feature-list.entry.js +7 -6
- package/dist/esm/{helpers-7c88b974.js → helpers-3d53560f.js} +1 -1
- package/dist/esm/{html2canvas-fd387d87.js → html2canvas-6443b68e.js} +1 -1
- package/dist/esm/{index.es-ee5497bc.js → index.es-66571353.js} +6 -5
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +6 -5
- package/dist/esm/instant-apps-control-panel.entry.js +3 -2
- package/dist/esm/instant-apps-create.entry.js +5 -4
- package/dist/esm/instant-apps-export.entry.js +5 -4
- package/dist/esm/instant-apps-header.entry.js +3 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +4 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +4 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +4 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +6 -5
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -4
- package/dist/esm/instant-apps-language-switcher.entry.js +7 -6
- package/dist/esm/instant-apps-language-translator.entry.js +7 -6
- package/dist/esm/instant-apps-measurement.entry.js +5 -4
- package/dist/esm/instant-apps-popover.entry.js +5 -4
- package/dist/esm/instant-apps-scoreboard.entry.js +5 -4
- package/dist/esm/instant-apps-sign-in.entry.js +5 -4
- package/dist/esm/instant-apps-splash.entry.js +5 -4
- package/dist/esm/{languageSwitcher-0f693a04.js → languageSwitcher-b665499d.js} +1 -1
- package/dist/esm/{languageUtil-de206286.js → languageUtil-a3e6adf6.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -2
- package/dist/esm/{loadModules-43119ac8.js → loadModules-9c062d08.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-42369411.js → locale-28d48640.js} +1 -1
- package/dist/esm/{locale-70630b7c.js → locale-b4e7d56f.js} +2 -2
- package/dist/esm/map-select-tools_3.entry.js +6 -5
- package/dist/esm/{popupUtils-98ad70f3.js → popupUtils-4a91aa2a.js} +2 -2
- package/dist/esm/public-notification.entry.js +6 -5
- package/dist/esm/{purify-caded4cd.js → purify-72515357.js} +1 -1
- package/dist/esm/{restHelpersGet-dab84057.js → restHelpersGet-5c822bcd.js} +1 -1
- package/dist/esm/solution-configuration.entry.js +7 -347
- package/dist/esm/solution-contents_3.entry.js +58 -48
- package/dist/esm/{solution-resource-a2fff3bf.js → solution-resource-3108caf7.js} +1 -1
- package/dist/esm/{solution-store-30a19a45.js → solution-store-1c36ce1d.js} +8 -10
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +6 -5
- package/dist/esm/store-manager.entry.js +17 -13
- package/dist/esm/templates-824ea028.js +395 -0
- package/dist/esm/{utils-9bb48951.js → utils-5484fcbf.js} +1 -1
- package/dist/solutions-components/demos/data/election-outreach.json +2981 -0
- package/dist/solutions-components/demos/solution-item.html +7 -6
- package/dist/solutions-components/demos/solution-spatial-ref.html +10 -4
- package/dist/solutions-components/demos/solution-template-data.html +5 -5
- package/dist/solutions-components/{p-3eb49703.js → p-00291b93.js} +3 -3
- package/dist/solutions-components/p-0cd87dca.entry.js +6 -0
- package/dist/solutions-components/p-13404ad7.entry.js +6 -0
- package/dist/solutions-components/{p-bf27cd5f.js → p-1c3c83a5.js} +1 -1
- package/dist/solutions-components/p-1e6c6ec4.entry.js +6 -0
- package/dist/solutions-components/p-219f209e.entry.js +6 -0
- package/dist/solutions-components/{p-b1abf15c.entry.js → p-2467b476.entry.js} +3 -3
- package/dist/solutions-components/p-295f850a.entry.js +6 -0
- package/dist/solutions-components/p-2961c63c.entry.js +6 -0
- package/dist/solutions-components/{p-946ee345.js → p-2afdcdfc.js} +2 -2
- package/dist/solutions-components/p-2d6d44b5.entry.js +6 -0
- package/dist/solutions-components/p-36e199e0.entry.js +6 -0
- package/dist/solutions-components/{p-d27ab863.js → p-3d7cff5e.js} +1 -1
- package/dist/solutions-components/{p-b2f11718.entry.js → p-3e8562b5.entry.js} +1 -1
- package/dist/solutions-components/{p-49250010.js → p-427b4593.js} +1 -1
- package/dist/solutions-components/{p-f1ae51dc.js → p-44fea43a.js} +1 -1
- package/dist/solutions-components/{p-afd2b67b.entry.js → p-4b27da06.entry.js} +1 -1
- package/dist/solutions-components/{p-7fe77355.js → p-5cc6eb18.js} +1 -1
- package/dist/solutions-components/p-61f88049.entry.js +6 -0
- package/dist/solutions-components/{p-d029b513.js → p-65581d83.js} +1 -1
- package/dist/solutions-components/p-6a68306c.js +6 -0
- package/dist/solutions-components/p-6c7a990a.entry.js +6 -0
- package/dist/solutions-components/p-6e6e6d23.entry.js +6 -0
- package/dist/solutions-components/p-7696af8e.entry.js +6 -0
- package/dist/solutions-components/{p-7afca6b4.js → p-7d1af07b.js} +1 -1
- package/dist/solutions-components/{p-6c7e34c1.entry.js → p-881ead62.entry.js} +2 -2
- package/dist/solutions-components/p-90864588.entry.js +6 -0
- package/dist/solutions-components/{p-59f016a1.js → p-91142a26.js} +1 -1
- package/dist/solutions-components/p-932d6f29.entry.js +6 -0
- package/dist/solutions-components/{p-71c212e6.entry.js → p-969828ab.entry.js} +1 -1
- package/dist/solutions-components/p-986ee365.entry.js +6 -0
- package/dist/solutions-components/p-9e3b0220.entry.js +6 -0
- package/dist/solutions-components/{p-7996f123.js → p-a0300d31.js} +1 -1
- package/dist/solutions-components/p-a8d62b7d.entry.js +6 -0
- package/dist/solutions-components/p-ae50581b.entry.js +6 -0
- package/dist/solutions-components/{p-89f6ff72.js → p-af2c8aa9.js} +1 -1
- package/dist/solutions-components/p-b7123452.entry.js +6 -0
- package/dist/solutions-components/p-b92e9047.entry.js +6 -0
- package/dist/solutions-components/p-bb7463ed.entry.js +6 -0
- package/dist/solutions-components/p-bbc7dd5e.entry.js +6 -0
- package/dist/solutions-components/p-bd871071.entry.js +21 -0
- package/dist/solutions-components/p-c6fd40f9.entry.js +6 -0
- package/dist/solutions-components/{p-42ea2581.js → p-c742acd9.js} +1 -1
- package/dist/solutions-components/p-cb4842dd.entry.js +6 -0
- package/dist/solutions-components/{p-bd459df3.entry.js → p-ccd1e256.entry.js} +2 -2
- package/dist/solutions-components/p-ce4b6931.entry.js +6 -0
- package/dist/solutions-components/p-d2de2b2a.entry.js +6 -0
- package/dist/solutions-components/p-d300430b.entry.js +6 -0
- package/dist/solutions-components/p-d4056c1c.js +6 -0
- package/dist/solutions-components/p-d73b90ab.entry.js +6 -0
- package/dist/solutions-components/{p-4e92c1ba.entry.js → p-dae9d5b3.entry.js} +1 -1
- package/dist/solutions-components/p-df56c019.entry.js +6 -0
- package/dist/solutions-components/p-e80751f4.entry.js +6 -0
- package/dist/solutions-components/{p-132b1138.entry.js → p-e8ed3fa6.entry.js} +2 -2
- package/dist/solutions-components/{p-1d369231.js → p-eed41e1a.js} +1 -1
- package/dist/solutions-components/p-fdd93685.js +22 -0
- package/dist/solutions-components/{p-6acf6c8f.js → p-ff87b9de.js} +1 -1
- package/dist/solutions-components/{p-c9b22653.js → p-ffd41e25.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +0 -2
- package/dist/solutions-components/utils/solution-store.ts +12 -13
- package/dist/solutions-components/utils/templates.ts +125 -30
- package/dist/solutions-components/utils/test/templates.e2e.ts +2 -2
- package/dist/solutions-components_commit.txt +8 -0
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +21 -25
- package/dist/types/components/store-manager/store-manager.d.ts +3 -3
- package/dist/types/components.d.ts +10 -2
- package/dist/types/utils/templates.d.ts +35 -5
- package/package.json +5 -4
- package/dist/cjs/solution-resource-ffe3c333.js +0 -145
- package/dist/solutions-components/p-11b4cd1a.entry.js +0 -6
- package/dist/solutions-components/p-123fcb43.entry.js +0 -6
- package/dist/solutions-components/p-12b84e3b.entry.js +0 -36
- package/dist/solutions-components/p-1a8f7075.entry.js +0 -6
- package/dist/solutions-components/p-2a7111ad.entry.js +0 -6
- package/dist/solutions-components/p-36f5dee9.entry.js +0 -6
- package/dist/solutions-components/p-52bcd209.entry.js +0 -6
- package/dist/solutions-components/p-57961ae0.entry.js +0 -6
- package/dist/solutions-components/p-5b2d9899.entry.js +0 -6
- package/dist/solutions-components/p-5bd6a732.entry.js +0 -6
- package/dist/solutions-components/p-5fb4ddc2.entry.js +0 -6
- package/dist/solutions-components/p-622f33ee.entry.js +0 -6
- package/dist/solutions-components/p-652140aa.entry.js +0 -6
- package/dist/solutions-components/p-6d0404a6.entry.js +0 -6
- package/dist/solutions-components/p-789eb1c2.entry.js +0 -6
- package/dist/solutions-components/p-7a2f1801.entry.js +0 -6
- package/dist/solutions-components/p-7dcf6b16.entry.js +0 -6
- package/dist/solutions-components/p-8413a2ae.entry.js +0 -6
- package/dist/solutions-components/p-941e55f0.entry.js +0 -6
- package/dist/solutions-components/p-9b38e6a0.entry.js +0 -6
- package/dist/solutions-components/p-9c1fbf73.entry.js +0 -6
- package/dist/solutions-components/p-9d82f0e3.entry.js +0 -6
- package/dist/solutions-components/p-9fa1855f.entry.js +0 -6
- package/dist/solutions-components/p-a2390bee.entry.js +0 -6
- package/dist/solutions-components/p-a805c11f.entry.js +0 -6
- package/dist/solutions-components/p-af1c9389.entry.js +0 -6
- package/dist/solutions-components/p-b7d060b0.entry.js +0 -6
- package/dist/solutions-components/p-c4160bf7.js +0 -6
- package/dist/solutions-components/p-da75df88.entry.js +0 -6
- package/dist/solutions-components/p-e0277e0b.entry.js +0 -6
- package/dist/solutions-components/p-e11a4728.entry.js +0 -6
- package/dist/solutions-components/p-e89c05d6.entry.js +0 -6
- /package/dist/solutions-components/{p-8ad54f5c.js → p-e3196917.js} +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as t,g as r}from"./p-c4160bf7.js";import{b as i}from"./p-3eb49703.js";import"./p-fa1ceaf9.js";import"./p-c9b22653.js";import"./p-996c1ac5.js";import"./p-c1cf3ebc.js";import"./p-d27ab863.js";import"./p-a230b270.js";import"./p-7996f123.js";var e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,S=k({}.toString),N=k("".slice),j=function(t){return N(S(t),8,-1)},P=a,O=j,E=Object,T=M("".split),C=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?T(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,L=function(t){if(R(t))throw B("Can't call method on "+t);return t},$=C,I=L,D=function(t){return $(I(t))},F="object"==typeof document&&document.all,z={all:F,IS_HTMLDDA:void 0===F&&void 0!==F},_=z.all,Y=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},X=Y,q=z.all,G=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:X(t)||t===q}:function(t){return"object"==typeof t?null!==t:X(t)},U=n,V=Y,H=function(t,r){return arguments.length<2?V(i=U[t])?i:void 0:U[t]&&U[t][r];var i},W=M({}.isPrototypeOf),Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Q,K=n.process,J=n.Deno,tt=K&&K.versions||J&&J.version,rt=tt&&tt.v8;rt&&(y=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Z&&(!(p=Z.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Z.match(/Chrome\/(\d+)/))&&(y=+p[1]);var it=y,et=it,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=H,ot=Y,ht=W,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=Y,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var i=t[r];return mt(i)?void 0:gt(i)},wt=c,xt=Y,Mt=G,kt=TypeError,St={exports:{}},Nt=n,jt=Object.defineProperty,Pt=function(t,r){try{jt(Nt,t,{value:r,configurable:!0,writable:!0})}catch(i){Nt[t]=r}return r},Ot="__core-js_shared__",Et=n[Ot]||Pt(Ot,{}),Tt=Et;(St.exports=function(t,r){return Tt[t]||(Tt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=L,At=Object,Rt=function(t){return At(Ct(t))},Bt=Rt,Lt=M({}.hasOwnProperty),$t=Object.hasOwn||function(t,r){return Lt(Bt(t),r)},It=M,Dt=0,Ft=Math.random(),zt=It(1..toString),_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+Ft,36)},Yt=$t,Xt=_t,qt=nt,Gt=st,Ut=n.Symbol,Vt=(0,St.exports)("wks"),Ht=Gt?Ut.for||Ut:Ut&&Ut.withoutSetter||Xt,Wt=function(t){return Yt(Vt,t)||(Vt[t]=qt&&Yt(Ut,t)?Ut[t]:Ht("Symbol."+t)),Vt[t]},Qt=c,Zt=G,Kt=ct,Jt=bt,tr=TypeError,rr=Wt("toPrimitive"),ir=function(t,r){if(!Zt(t)||Kt(t))return t;var i,e=Jt(t,rr);if(e){if(void 0===r&&(r="default"),i=Qt(e,t,r),!Zt(i)||Kt(i))return i;throw tr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;if(xt(i=t.valueOf)&&!Mt(e=wt(i,t)))return e;if("string"!==r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;throw kt("Can't convert object to primitive value")}(t,r)},er=ct,nr=function(t){var r=ir(t,"string");return er(r)?r:r+""},sr=G,ar=n.document,or=sr(ar)&&sr(ar.createElement),hr=function(t){return or?ar.createElement(t):{}},ur=hr,cr=!o&&!a((function(){return 7!=Object.defineProperty(ur("div"),"a",{get:function(){return 7}}).a})),fr=c,lr=f,vr=g,dr=D,pr=nr,yr=$t,gr=cr,mr=Object.getOwnPropertyDescriptor;s.f=o?mr:function(t,r){if(t=dr(t),r=pr(r),gr)try{return mr(t,r)}catch(t){}if(yr(t,r))return vr(!fr(lr.f,t,r),t[r])};var br={},wr=o&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xr=G,Mr=String,kr=TypeError,Sr=function(t){if(xr(t))return t;throw kr(Mr(t)+" is not an object")},Nr=cr,jr=Sr,Pr=nr,Or=TypeError,Er=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Cr="enumerable",Ar="configurable",Rr="writable";br.f=o?wr?function(t,r,i){if(jr(t),r=Pr(r),jr(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Rr in i&&!i[Rr]){var e=Tr(t,r);e&&e[Rr]&&(t[r]=i.value,i={configurable:Ar in i?i[Ar]:e[Ar],enumerable:Cr in i?i[Cr]:e[Cr],writable:!1})}return Er(t,r,i)}:Er:function(t,r,i){if(jr(t),r=Pr(r),jr(i),Nr)try{return Er(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Or("Accessors not supported");return"value"in i&&(t[r]=i.value),t};var Br=br,Lr=g,$r=o?function(t,r,i){return Br.f(t,r,Lr(1,i))}:function(t,r,i){return t[r]=i,t},Ir={exports:{}},Dr=o,Fr=Function.prototype,zr=Dr&&Object.getOwnPropertyDescriptor,_r=$t(Fr,"name"),Yr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!Dr||Dr&&zr(Fr,"name").configurable)},Xr=Y,qr=Et,Gr=M(Function.toString);Xr(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Ur,Vr,Hr,Wr=qr.inspectSource,Qr=n.WeakMap,Zr=Y(Qr)&&/native code/.test(String(Qr)),Kr=_t,Jr=(0,St.exports)("keys"),ti=function(t){return Jr[t]||(Jr[t]=Kr(t))},ri={},ii=G,ei=$r,ni=$t,si=ti,ai=ri,oi="Object already initialized",hi=n.TypeError;if(Zr||Et.state){var ui=Et.state||(Et.state=new(0,n.WeakMap));ui.get=ui.get,ui.has=ui.has,ui.set=ui.set,Ur=function(t,r){if(ui.has(t))throw hi(oi);return r.facade=t,ui.set(t,r),r},Vr=function(t){return ui.get(t)||{}},Hr=function(t){return ui.has(t)}}else{var ci=si("state");ai[ci]=!0,Ur=function(t,r){if(ni(t,ci))throw hi(oi);return r.facade=t,ei(t,ci,r),r},Vr=function(t){return ni(t,ci)?t[ci]:{}},Hr=function(t){return ni(t,ci)}}var fi={set:Ur,get:Vr,has:Hr,enforce:function(t){return Hr(t)?Vr(t):Ur(t,{})},getterFor:function(t){return function(r){var i;if(!ii(r)||(i=Vr(r)).type!==t)throw hi("Incompatible receiver, "+t+" required");return i}}},li=M,vi=a,di=Y,pi=$t,yi=o,gi=Yr.CONFIGURABLE,mi=Wr,bi=fi.enforce,wi=fi.get,xi=String,Mi=Object.defineProperty,ki=li("".slice),Si=li("".replace),Ni=li([].join),ji=yi&&!vi((function(){return 8!==Mi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Oi=Ir.exports=function(t,r,i){"Symbol("===ki(xi(r),0,7)&&(r="["+Si(xi(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!pi(t,"name")||gi&&t.name!==r)&&(yi?Mi(t,"name",{value:r,configurable:!0}):t.name=r),ji&&i&&pi(i,"arity")&&t.length!==i.arity&&Mi(t,"length",{value:i.arity});try{i&&pi(i,"constructor")&&i.constructor?yi&&Mi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=bi(t);return pi(e,"source")||(e.source=Ni(Pi,"string"==typeof r?r:"")),t};Function.prototype.toString=Oi((function(){return di(this)&&wi(this).source||mi(this)}),"toString");var Ei=Y,Ti=br,Ci=Ir.exports,Ai=Pt,Ri=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(Ei(i)&&Ci(i,s,e),e.global)n?t[r]=i:Ai(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:Ti.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Bi={},Li=Math.ceil,$i=Math.floor,Ii=Math.trunc||function(t){var r=+t;return(r>0?$i:Li)(r)},Di=Ii,Fi=function(t){var r=+t;return r!=r||0===r?0:Di(r)},zi=Fi,_i=Math.max,Yi=Math.min,Xi=function(t,r){var i=zi(t);return i<0?_i(i+r,0):Yi(i,r)},qi=Fi,Gi=Math.min,Ui=function(t){return t>0?Gi(qi(t),9007199254740991):0},Vi=Ui,Hi=function(t){return Vi(t.length)},Wi=D,Qi=Xi,Zi=Hi,Ki=function(t){return function(r,i,e){var n,s=Wi(r),a=Zi(s),o=Qi(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},Ji={includes:Ki(!0),indexOf:Ki(!1)},te=$t,re=D,ie=Ji.indexOf,ee=ri,ne=M([].push),se=function(t,r){var i,e=re(t),n=0,s=[];for(i in e)!te(ee,i)&&te(e,i)&&ne(s,i);for(;r.length>n;)te(e,i=r[n++])&&(~ie(s,i)||ne(s,i));return s},ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oe=se,he=ae.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(t){return oe(t,he)};var ue={};ue.f=Object.getOwnPropertySymbols;var ce=H,fe=Bi,le=ue,ve=Sr,de=M([].concat),pe=ce("Reflect","ownKeys")||function(t){var r=fe.f(ve(t)),i=le.f;return i?de(r,i(t)):r},ye=$t,ge=pe,me=s,be=br,we=a,xe=Y,Me=/#|\.prototype\./,ke=function(t,r){var i=Ne[Se(t)];return i==Pe||i!=je&&(xe(r)?we(r):!!r)},Se=ke.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ne=ke.data={},je=ke.NATIVE="N",Pe=ke.POLYFILL="P",Oe=ke,Ee=n,Te=s.f,Ce=$r,Ae=Ri,Re=Pt,Be=function(t,r,i){for(var e=ge(r),n=be.f,s=me.f,a=0;a<e.length;a++){var o=e[a];ye(t,o)||i&&ye(i,o)||n(t,o,s(r,o))}},Le=Oe,$e=function(t,r){var i,e,n,s,a,o=t.target,h=t.global,u=t.stat;if(i=h?Ee:u?Ee[o]||Re(o,{}):(Ee[o]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Te(i,e))&&a.value:i[e],!Le(h?e:o+(u?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Be(s,n)}(t.sham||n&&n.sham)&&Ce(s,"sham",!0),Ae(i,e,s,t)}},Ie="undefined"!=typeof process&&"process"==j(process),De=Y,Fe=String,ze=TypeError,_e=M,Ye=Sr,Xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Ye(i),function(t){if("object"==typeof t||De(t))return t;throw ze("Can't set "+Fe(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),qe=br.f,Ge=$t,Ue=Wt("toStringTag"),Ve=function(t,r,i){t&&!i&&(t=t.prototype),t&&!Ge(t,Ue)&&qe(t,Ue,{configurable:!0,value:r})},He=H,We=br,Qe=o,Ze=Wt("species"),Ke=W,Je=TypeError,tn={};tn[Wt("toStringTag")]="z";var rn="[object z]"===String(tn),en=Y,nn=j,sn=Wt("toStringTag"),an=Object,on="Arguments"==nn(function(){return arguments}()),hn=rn?nn:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=an(t),sn))?i:on?nn(r):"Object"==(e=nn(r))&&en(r.callee)?"Arguments":e},un=M,cn=a,fn=Y,ln=hn,vn=Wr,dn=function(){},pn=[],yn=H("Reflect","construct"),gn=/^\s*(?:class|function)\b/,mn=un(gn.exec),bn=!gn.exec(dn),wn=function(t){if(!fn(t))return!1;try{return yn(dn,pn,t),!0}catch(t){return!1}},xn=function(t){if(!fn(t))return!1;switch(ln(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!mn(gn,vn(t))}catch(t){return!0}};xn.sham=!0;var Mn,kn,Sn,Nn,jn=!yn||cn((function(){var t;return wn(wn.call)||!wn(Object)||!wn((function(){t=!0}))||t}))?xn:wn,Pn=jn,On=lt,En=TypeError,Tn=Sr,Cn=A,An=Wt("species"),Rn=function(t,r){var i,e=Tn(t).constructor;return void 0===e||Cn(i=Tn(e)[An])?r:function(t){if(Pn(t))return t;throw En(On(t)+" is not a constructor")}(i)},Bn=Function.prototype,Ln=Bn.apply,$n=Bn.call,In="object"==typeof Reflect&&Reflect.apply||(h?$n.bind(Ln):function(){return $n.apply(Ln,arguments)}),Dn=j,Fn=M,zn=function(t){if("Function"===Dn(t))return Fn(t)},_n=yt,Yn=h,Xn=zn(zn.bind),qn=function(t,r){return _n(t),void 0===r?t:Yn?Xn(t,r):function(){return t.apply(r,arguments)}},Gn=H("document","documentElement"),Un=M([].slice),Vn=TypeError,Hn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Q),Wn=n,Qn=In,Zn=qn,Kn=Y,Jn=$t,ts=a,rs=Gn,is=Un,es=hr,ns=Hn,ss=Ie,as=Wn.setImmediate,os=Wn.clearImmediate,hs=Wn.process,us=Wn.Dispatch,cs=Wn.Function,fs=Wn.MessageChannel,ls=Wn.String,vs=0,ds={},ps="onreadystatechange";ts((function(){Mn=Wn.location}));var ys=function(t){if(Jn(ds,t)){var r=ds[t];delete ds[t],r()}},gs=function(t){return function(){ys(t)}},ms=function(t){ys(t.data)},bs=function(t){Wn.postMessage(ls(t),Mn.protocol+"//"+Mn.host)};as&&os||(as=function(t){!function(t,r){if(t<r)throw Vn("Not enough arguments")}(arguments.length,1);var r=Kn(t)?t:cs(t),i=is(arguments,1);return ds[++vs]=function(){Qn(r,void 0,i)},kn(vs),vs},os=function(t){delete ds[t]},ss?kn=function(t){hs.nextTick(gs(t))}:us&&us.now?kn=function(t){us.now(gs(t))}:fs&&!ns?(Nn=(Sn=new fs).port2,Sn.port1.onmessage=ms,kn=Zn(Nn.postMessage,Nn)):Wn.addEventListener&&Kn(Wn.postMessage)&&!Wn.importScripts&&Mn&&"file:"!==Mn.protocol&&!ts(bs)?(kn=bs,Wn.addEventListener("message",ms,!1)):kn=ps in es("script")?function(t){rs.appendChild(es("script"))[ps]=function(){rs.removeChild(this),ys(t)}}:function(t){setTimeout(gs(t),0)});var ws={set:as,clear:os},xs=function(){this.head=null,this.tail=null};xs.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ms,ks,Ss,Ns,js,Ps=xs,Os=/ipad|iphone|ipod/i.test(Q)&&"undefined"!=typeof Pebble,Es=/web0s(?!.*chrome)/i.test(Q),Ts=n,Cs=qn,As=ws.set,Rs=Ps,Bs=Hn,Ls=Os,$s=Es,Is=Ie,Ds=Ts.MutationObserver||Ts.WebKitMutationObserver,Fs=Ts.document,zs=Ts.process,_s=Ts.Promise,Ys=(0,s.f)(Ts,"queueMicrotask"),Xs=Ys&&Ys.value;if(!Xs){var qs=new Rs,Gs=function(){var t,r;for(Is&&(t=zs.domain)&&t.exit();r=qs.get();)try{r()}catch(t){throw qs.head&&Ms(),t}t&&t.enter()};Bs||Is||$s||!Ds||!Fs?!Ls&&_s&&_s.resolve?((Ns=_s.resolve(void 0)).constructor=_s,js=Cs(Ns.then,Ns),Ms=function(){js(Gs)}):Is?Ms=function(){zs.nextTick(Gs)}:(As=Cs(As,Ts),Ms=function(){As(Gs)}):(ks=!0,Ss=Fs.createTextNode(""),new Ds(Gs).observe(Ss,{characterData:!0}),Ms=function(){Ss.data=ks=!ks}),Xs=function(t){qs.head||Ms(),qs.add(t)}}var Us=Xs,Vs=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Hs=n.Promise,Ws="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Qs=!Ws&&!Ie&&"object"==typeof window&&"object"==typeof document,Zs=n,Ks=Hs,Js=Y,ta=Oe,ra=Wr,ia=Qs,ea=Ws,na=it,sa=Wt("species"),aa=!1,oa=Js(Zs.PromiseRejectionEvent),ha=ta("Promise",(function(){var t=ra(Ks),r=t!==String(Ks);if(!r&&66===na)return!0;if(!na||na<51||!/native code/.test(t)){var i=new Ks((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[sa]=e,!(aa=i.then((function(){}))instanceof e))return!0}return!r&&(ia||ea)&&!oa})),ua={CONSTRUCTOR:ha,REJECTION_EVENT:oa,SUBCLASSING:aa},ca={},fa=yt,la=TypeError,va=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw la("Bad Promise constructor");r=t,i=e})),this.resolve=fa(r),this.reject=fa(i)};ca.f=function(t){return new va(t)};var da,pa,ya,ga,ma=$e,ba=Ie,wa=n,xa=c,Ma=Ri,ka=Xe,Sa=Ve,Na=yt,ja=Y,Pa=G,Oa=Rn,Ea=ws.set,Ta=Us,Ca=Vs,Aa=Ps,Ra=fi,Ba=Hs,La=ca,$a="Promise",Ia=ua.CONSTRUCTOR,Da=ua.REJECTION_EVENT,Fa=ua.SUBCLASSING,za=Ra.getterFor($a),_a=Ra.set,Ya=Ba&&Ba.prototype,Xa=Ba,qa=Ya,Ga=wa.TypeError,Ua=wa.document,Va=wa.process,Ha=La.f,Wa=Ha,Qa=!!(Ua&&Ua.createEvent&&wa.dispatchEvent),Za="unhandledrejection",Ka=function(t){var r;return!(!Pa(t)||!ja(r=t.then))&&r},Ja=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&no(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ga("Promise-chain cycle")):(e=Ka(i))?xa(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},to=function(t,r){t.notified||(t.notified=!0,Ta((function(){for(var i,e=t.reactions;i=e.get();)Ja(i,t);t.notified=!1,r&&!t.rejection&&io(t)})))},ro=function(t,r,i){var e,n;Qa?((e=Ua.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),wa.dispatchEvent(e)):e={promise:r,reason:i},!Da&&(n=wa["on"+t])?n(e):t===Za&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},io=function(t){xa(Ea,wa,(function(){var r,i=t.facade,e=t.value;if(eo(t)&&(r=Ca((function(){ba?Va.emit("unhandledRejection",e,i):ro(Za,i,e)})),t.rejection=ba||eo(t)?2:1,r.error))throw r.value}))},eo=function(t){return 1!==t.rejection&&!t.parent},no=function(t){xa(Ea,wa,(function(){var r=t.facade;ba?Va.emit("rejectionHandled",r):ro("rejectionhandled",r,t.value)}))},so=function(t,r,i){return function(e){t(r,e,i)}},ao=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,to(t,!0))},oo=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ga("Promise can't be resolved itself");var e=Ka(r);e?Ta((function(){var i={done:!1};try{xa(e,r,so(oo,i,t),so(ao,i,t))}catch(r){ao(i,r,t)}})):(t.value=r,t.state=1,to(t,!1))}catch(r){ao({done:!1},r,t)}}};if(Ia&&(Xa=function(t){(function(t,r){if(Ke(r,t))return t;throw Je("Incorrect invocation")})(this,qa),Na(t),xa(da,this);var r=za(this);try{t(so(oo,r),so(ao,r))}catch(t){ao(r,t)}},(da=function(){_a(this,{type:$a,done:!1,notified:!1,parent:!1,reactions:new Aa,rejection:!1,state:0,value:void 0})}).prototype=Ma(qa=Xa.prototype,"then",(function(t,r){var i=za(this),e=Ha(Oa(this,Xa));return i.parent=!0,e.ok=!ja(t)||t,e.fail=ja(r)&&r,e.domain=ba?Va.domain:void 0,0==i.state?i.reactions.add(e):Ta((function(){Ja(e,i)})),e.promise})),pa=function(){var t=new da,r=za(t);this.promise=t,this.resolve=so(oo,r),this.reject=so(ao,r)},La.f=Ha=function(t){return t===Xa||void 0===t?new pa(t):Wa(t)},ja(Ba)&&Ya!==Object.prototype)){ya=Ya.then,Fa||Ma(Ya,"then",(function(t,r){var i=this;return new Xa((function(t,r){xa(ya,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ya.constructor}catch(t){}ka&&ka(Ya,qa)}ma({global:!0,constructor:!0,wrap:!0,forced:Ia},{Promise:Xa}),Sa(Xa,$a,!1),ga=He($a),Qe&&ga&&!ga[Ze]&&(0,We.f)(ga,Ze,{configurable:!0,get:function(){return this}});var ho={},uo=ho,co=Wt("iterator"),fo=Array.prototype,lo=hn,vo=bt,po=A,yo=ho,go=Wt("iterator"),mo=function(t){if(!po(t))return vo(t,go)||vo(t,"@@iterator")||yo[lo(t)]},bo=c,wo=yt,xo=Sr,Mo=lt,ko=mo,So=TypeError,No=c,jo=Sr,Po=bt,Oo=qn,Eo=c,To=Sr,Co=lt,Ao=Hi,Ro=W,Bo=mo,Lo=function(t,r,i){var e,n;jo(t);try{if(!(e=Po(t,"return"))){if("throw"===r)throw i;return i}e=No(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return jo(e),i},$o=TypeError,Io=function(t,r){this.stopped=t,this.result=r},Do=Io.prototype,Fo=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),l=!(!i||!i.IS_RECORD),v=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),p=Oo(r,i&&i.that),y=function(t){return e&&Lo(e,"normal",t),new Io(!0,t)},g=function(t){return f?(To(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)e=t.iterator;else if(v)e=t;else{if(!(n=Bo(t)))throw $o(Co(t)+" is not iterable");if(void 0!==(c=n)&&(uo.Array===c||fo[co]===c)){for(s=0,a=Ao(t);a>s;s++)if((o=g(t[s]))&&Ro(Do,o))return o;return new Io(!1)}e=function(t,r){var i=arguments.length<2?ko(t):r;if(wo(i))return xo(bo(i,t));throw So(Mo(t)+" is not iterable")}(t,n)}for(h=l?t.next:e.next;!(u=Eo(h,e)).done;){try{o=g(u.value)}catch(t){Lo(e,"throw",t)}if("object"==typeof o&&o&&Ro(Do,o))return o}return new Io(!1)},zo=Wt("iterator"),_o=!1;try{var Yo=0,Xo={next:function(){return{done:!!Yo++}},return:function(){_o=!0}};Xo[zo]=function(){return this},Array.from(Xo,(function(){throw 2}))}catch(t){}var qo=Hs,Go=ua.CONSTRUCTOR||!function(t,r){if(!r&&!_o)return!1;var i=!1;try{var e={};e[zo]=function(){return{next:function(){return{done:i=!0}}}},t(e)}catch(t){}return i}((function(t){qo.all(t).then(void 0,(function(){}))})),Uo=c,Vo=yt,Ho=ca,Wo=Vs,Qo=Fo;$e({target:"Promise",stat:!0,forced:Go},{all:function(t){var r=this,i=Ho.f(r),e=i.resolve,n=i.reject,s=Wo((function(){var i=Vo(r.resolve),s=[],a=0,o=1;Qo(t,(function(t){var h=a++,u=!1;o++,Uo(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var Zo=Hs,Ko=H,Jo=Y,th=Ri,rh=Zo&&Zo.prototype;if($e({target:"Promise",proto:!0,forced:ua.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),Jo(Zo)){var ih=Ko("Promise").prototype.catch;rh.catch!==ih&&th(rh,"catch",ih,{unsafe:!0})}var eh=c,nh=yt,sh=ca,ah=Vs,oh=Fo;$e({target:"Promise",stat:!0,forced:Go},{race:function(t){var r=this,i=sh.f(r),e=i.reject,n=ah((function(){var n=nh(r.resolve);oh(t,(function(t){eh(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}});var hh=c,uh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{reject:function(t){var r=uh.f(this);return hh(r.reject,void 0,t),r.promise}});var ch=Sr,fh=G,lh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(ch(t),fh(r)&&r.constructor===t)return r;var i=lh.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});var vh={exports:{}};!function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}(vh);const dh=r(vh.exports);var ph=hn,yh=String,gh=function(t){if("Symbol"===ph(t))throw TypeError("Cannot convert a Symbol value to a string");return yh(t)},mh=Sr,bh=function(){var t=mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},wh=a,xh=n.RegExp,Mh=wh((function(){var t=xh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),kh=Mh||wh((function(){return!xh("a","y").sticky})),Sh={BROKEN_CARET:Mh||wh((function(){var t=xh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:kh,UNSUPPORTED_Y:Mh},Nh={},jh=se,Ph=ae,Oh=Object.keys||function(t){return jh(t,Ph)},Eh=br,Th=Sr,Ch=D,Ah=Oh;Nh.f=o&&!wr?Object.defineProperties:function(t,r){Th(t);for(var i,e=Ch(r),n=Ah(r),s=n.length,a=0;s>a;)Eh.f(t,i=n[a++],e[i]);return t};var Rh,Bh=Sr,Lh=Nh,$h=ae,Ih=ri,Dh=Gn,Fh=hr,zh="prototype",_h="script",Yh=ti("IE_PROTO"),Xh=function(){},qh=function(t){return"<"+_h+">"+t+"</"+_h+">"},Gh=function(t){t.write(qh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Uh=function(){try{Rh=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Uh="undefined"!=typeof document?document.domain&&Rh?Gh(Rh):(r=Fh("iframe"),i="java"+_h+":",r.style.display="none",Dh.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(qh("document.F=Object")),t.close(),t.F):Gh(Rh);for(var e=$h.length;e--;)delete Uh[zh][$h[e]];return Uh()};Ih[Yh]=!0;var Vh,Hh,Wh=Object.create||function(t,r){var i;return null!==t?(Xh[zh]=Bh(t),i=new Xh,Xh[zh]=null,i[Yh]=t):i=Uh(),void 0===r?i:Lh.f(i,r)},Qh=n.RegExp,Zh=a((function(){var t=Qh(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Kh=n.RegExp,Jh=a((function(){var t=Kh("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),tu=c,ru=M,iu=gh,eu=bh,nu=Sh,su=Wh,au=fi.get,ou=Zh,hu=Jh,uu=(0,St.exports)("native-string-replace",String.prototype.replace),cu=RegExp.prototype.exec,fu=cu,lu=ru("".charAt),vu=ru("".indexOf),du=ru("".replace),pu=ru("".slice),yu=(Hh=/b*/g,tu(cu,Vh=/a/,"a"),tu(cu,Hh,"a"),0!==Vh.lastIndex||0!==Hh.lastIndex),gu=nu.BROKEN_CARET,mu=void 0!==/()??/.exec("")[1];(yu||mu||gu||ou||hu)&&(fu=function(t){var r,i,e,n,s,a,o,h=this,u=au(h),c=iu(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=tu(fu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=gu&&h.sticky,d=tu(eu,h),p=h.source,y=0,g=c;if(v&&(d=du(d,"y",""),-1===vu(d,"g")&&(d+="g"),g=pu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==lu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),i=new RegExp("^(?:"+p+")",d)),mu&&(i=new RegExp("^"+p+"$(?!\\s)",d)),yu&&(e=h.lastIndex),n=tu(cu,v?i:h,g),v?n?(n.input=pu(n.input,y),n[0]=pu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:yu&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),mu&&n&&n.length>1&&tu(uu,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=su(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var bu=fu;$e({target:"RegExp",proto:!0,forced:/./.exec!==bu},{exec:bu});var wu=zn,xu=Ri,Mu=bu,ku=a,Su=Wt,Nu=$r,ju=Su("species"),Pu=RegExp.prototype,Ou=function(t,r,i,e){var n=Su(t),s=!ku((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!ku((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[ju]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=wu(/./[n]),h=r(n,""[t],(function(t,r,i,e,n){var a=wu(t),h=r.exec;return h===Mu||h===Pu.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));xu(String.prototype,t,h[0]),xu(Pu,n,h[1])}e&&Nu(Pu[n],"sham",!0)},Eu=M,Tu=Fi,Cu=gh,Au=L,Ru=Eu("".charAt),Bu=Eu("".charCodeAt),Lu=Eu("".slice),$u=function(t){return function(r,i){var e,n,s=Cu(Au(r)),a=Tu(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=Bu(s,a))<55296||e>56319||a+1===o||(n=Bu(s,a+1))<56320||n>57343?t?Ru(s,a):e:t?Lu(s,a,a+2):n-56320+(e-55296<<10)+65536}},Iu=($u(!1),$u(!0)),Du=function(t,r,i){return r+(i?Iu(t,r).length:1)},Fu=c,zu=Sr,_u=Y,Yu=j,Xu=bu,qu=TypeError,Gu=function(t,r){var i=t.exec;if(_u(i)){var e=Fu(i,t,r);return null!==e&&zu(e),e}if("RegExp"===Yu(t))return Fu(Xu,t,r);throw qu("RegExp#exec called on incompatible receiver")},Uu=c,Vu=Sr,Hu=A,Wu=Ui,Qu=gh,Zu=L,Ku=bt,Ju=Du,tc=Gu;Ou("match",(function(t,r,i){return[function(r){var i=Zu(this),e=Hu(r)?void 0:Ku(r,t);return e?Uu(e,r,i):new RegExp(r)[t](Qu(i))},function(t){var e=Vu(this),n=Qu(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return tc(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=tc(e,n));){var c=Qu(o[0]);h[u]=c,""===c&&(e.lastIndex=Ju(n,Wu(e.lastIndex),a)),u++}return 0===u?null:h}]}));var rc=M,ic=Rt,ec=Math.floor,nc=rc("".charAt),sc=rc("".replace),ac=rc("".slice),oc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hc=/\$([$&'`]|\d{1,2})/g,uc=In,cc=c,fc=M,lc=Ou,vc=a,dc=Sr,pc=Y,yc=A,gc=Fi,mc=Ui,bc=gh,wc=L,xc=Du,Mc=bt,kc=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=hc;return void 0!==n&&(n=ic(n),h=oc),sc(s,h,(function(s,h){var u;switch(nc(h,0)){case"$":return"$";case"&":return t;case"`":return ac(r,0,i);case"'":return ac(r,a);case"<":u=n[ac(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ec(c/10);return 0===f?s:f<=o?void 0===e[f-1]?nc(h,1):e[f-1]+nc(h,1):s}u=e[c-1]}return void 0===u?"":u}))},Sc=Gu,Nc=Wt("replace"),jc=Math.max,Pc=Math.min,Oc=fc([].concat),Ec=fc([].push),Tc=fc("".indexOf),Cc=fc("".slice),Ac="$0"==="a".replace(/./,"$0"),Rc=!!/./[Nc]&&""===/./[Nc]("a","$0");lc("replace",(function(t,r,i){var e=Rc?"$":"$0";return[function(t,i){var e=wc(this),n=yc(t)?void 0:Mc(t,Nc);return n?cc(n,t,e,i):cc(r,bc(e),t,i)},function(t,n){var s=dc(this),a=bc(t);if("string"==typeof n&&-1===Tc(n,e)&&-1===Tc(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=pc(n);h||(n=bc(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=Sc(s,a);if(null===l)break;if(Ec(f,l),!u)break;""===bc(l[0])&&(s.lastIndex=xc(a,mc(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=bc((l=f[y])[0]),m=jc(Pc(gc(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ec(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Oc([g],b,m,a);void 0!==x&&Ec(M,x);var k=bc(uc(n,void 0,M))}else k=kc(g,a,m,b,x,n);m>=p&&(d+=Cc(a,p,m)+k,p=m+g.length)}return d+Cc(a,p)}]}),!!vc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ac||Rc);var Bc,Lc=G,$c=j,Ic=Wt("match"),Dc=function(t){var r;return Lc(t)&&(void 0!==(r=t[Ic])?!!r:"RegExp"==$c(t))},Fc=Dc,zc=TypeError,_c=function(t){if(Fc(t))throw zc("The method doesn't accept regular expressions");return t},Yc=Wt("match"),Xc=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Yc]=!1,"/./"[t](r)}catch(t){}}return!1},qc=$e,Gc=zn,Uc=s.f,Vc=Ui,Hc=gh,Wc=_c,Qc=L,Zc=Xc,Kc=Gc("".startsWith),Jc=Gc("".slice),tf=Math.min,rf=Zc("startsWith");qc({target:"String",proto:!0,forced:!(!rf&&(Bc=Uc(String.prototype,"startsWith"),Bc&&!Bc.writable)||rf)},{startsWith:function(t){var r=Hc(Qc(this));Wc(t);var i=Vc(tf(arguments.length>1?arguments[1]:void 0,r.length)),e=Hc(t);return Kc?Kc(r,e,i):Jc(r,i,i+e.length)===e}});var ef=Wh,nf=br.f,sf=Wt("unscopables"),af=Array.prototype;null==af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=$t,lf=Y,vf=Rt,df=cf,pf=ti("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var i=r.constructor;return lf(i)&&r instanceof i?i.prototype:r instanceof yf?gf:null},bf=a,wf=Y,xf=G,Mf=mf,kf=Ri,Sf=Wt("iterator"),Nf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Nf=!0);var jf=!xf(of)||bf((function(){var t={};return of[Sf].call(t)!==t}));jf&&(of={}),wf(of[Sf])||kf(of,Sf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Nf},Of=Pf.IteratorPrototype,Ef=Wh,Tf=g,Cf=Ve,Af=ho,Rf=function(){return this},Bf=$e,Lf=c,$f=Y,If=mf,Df=Xe,Ff=Ve,zf=$r,_f=Ri,Yf=ho,Xf=Yr.PROPER,qf=Yr.CONFIGURABLE,Gf=Pf.IteratorPrototype,Uf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Wt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=D,Jf=function(t){af[sf][t]=!0},tl=ho,rl=br.f,il=function(t,r){return{value:t,done:r}},el=o,nl="Array Iterator",sl=fi.set,al=fi.getterFor(nl),ol=function(t,r,i,e,n,s,a){!function(t,r,i,e){var n=r+" Iterator";t.prototype=Ef(Of,{next:Tf(+!e,i)}),Cf(t,n,!1),Af[n]=Rf}(i,r,e);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Uf&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new i(this,t)}}return function(){return new i(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Uf&&d||c(n),y="Array"==r&&v.entries||d;if(y&&(o=If(y.call(new t)))!==Object.prototype&&o.next&&(If(o)!==Gf&&(Df?Df(o,Gf):$f(o[Vf])||_f(o,Vf,Zf)),Ff(o,f,!0)),Xf&&n==Wf&&d&&d.name!==Wf&&(qf?zf(v,"name",Wf):(l=!0,p=function(){return Lf(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Uf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Uf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,il(void 0,!0)):il("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),el&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=hr("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=$r,yl=Wt,gl=yl("iterator"),ml=yl("toStringTag"),bl=dl.values,wl=function(t,r){if(t){if(t[gl]!==bl)try{pl(t,gl,bl)}catch(r){t[gl]=bl}if(t[ml]||pl(t,ml,r),ll[r])for(var i in dl)if(t[i]!==dl[i])try{pl(t,i,dl[i])}catch(r){t[i]=dl[i]}}};for(var xl in ll)wl(fl[xl]&&fl[xl].prototype,xl);wl(vl,"DOMTokenList");var Ml={exports:{}},kl={exports:{}},Sl={exports:{}};!function(t){var r=i.exports.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Sl),function(t){var r=i.exports.default,e=Sl.exports;t.exports=function(t){var i=e(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}(kl),function(t){var r=kl.exports;t.exports=function(t,i,e){return(i=r(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ml);const Nl=r(Ml.exports);var jl=yt,Pl=Rt,Ol=C,El=Hi,Tl=TypeError,Cl=function(t){return function(r,i,e,n){jl(i);var s=Pl(r),a=Ol(s),o=El(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Tl("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Al={left:Cl(!1),right:Cl(!0)},Rl=a,Bl=function(t,r){var i=[][t];return!!i&&Rl((function(){i.call(null,r||function(){return 1},1)}))},Ll=Al.left;$e({target:"Array",proto:!0,forced:!Ie&&it>79&&it<83||!Bl("reduce")},{reduce:function(t){var r=arguments.length;return Ll(this,t,r,r>1?arguments[1]:void 0)}});var $l=$e,Il=zn,Dl=s.f,Fl=Ui,zl=gh,_l=_c,Yl=L,Xl=Xc,ql=Il("".endsWith),Gl=Il("".slice),Ul=Math.min,Vl=Xl("endsWith"),Hl=!Vl&&!!function(){var t=Dl(String.prototype,"endsWith");return t&&!t.writable}();$l({target:"String",proto:!0,forced:!Hl&&!Vl},{endsWith:function(t){var r=zl(Yl(this));_l(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Ul(Fl(i),e),s=zl(t);return ql?ql(r,s,n):Gl(r,n-s.length,n)===s}});var Wl=nr,Ql=br,Zl=g,Kl=Xi,Jl=Hi,tv=Array,rv=Math.max,iv=In,ev=c,nv=M,sv=Ou,av=Sr,ov=A,hv=Dc,uv=L,cv=Rn,fv=Du,lv=Ui,vv=gh,dv=bt,pv=function(t,r,i){for(var e=Jl(t),n=Kl(r,e),s=Kl(void 0===i?e:i,e),a=tv(rv(s-n,0)),o=0;n<s;n++,o++)h=a,u=t[n],c=void 0,(c=Wl(o))in h?Ql.f(h,c,Zl(0,u)):h[c]=u;var h,u,c;return a.length=o,a},yv=Gu,gv=bu,mv=a,bv=Sh.UNSUPPORTED_Y,wv=4294967295,xv=Math.min,Mv=[].push,kv=nv(/./.exec),Sv=nv(Mv),Nv=nv("".slice);sv("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=vv(uv(this)),n=void 0===i?wv:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!hv(t))return ev(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=ev(gv,c,e))&&!((a=c.lastIndex)>u&&(Sv(h,Nv(e,u,s.index)),s.length>1&&s.index<e.length&&iv(Mv,h,pv(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&kv(c,"")||Sv(h,""):Sv(h,Nv(e,u)),h.length>n?pv(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:ev(r,this,t,i)}:r,[function(r,i){var n=uv(this),s=ov(r)?void 0:dv(r,t);return s?ev(s,r,n,i):ev(e,vv(n),r,i)},function(t,n){var s=av(this),a=vv(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=cv(s,RegExp),u=s.unicode,c=new h(bv?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(bv?"g":"y")),f=void 0===n?wv:n>>>0;if(0===f)return[];if(0===a.length)return null===yv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=bv?0:v;var p,y=yv(c,bv?Nv(a,v):a);if(null===y||(p=xv(lv(c.lastIndex+(bv?v:0)),a.length))===l)v=fv(a,v,u);else{if(Sv(d,Nv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Sv(d,y[g]),d.length===f)return d;v=l=p}}return Sv(d,Nv(a,l)),d}]}),!!mv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),bv);var jv={exports:{}},Pv={exports:{}};(function(){var t,r,i,e,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?Pv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Pv.exports=function(){return(t()-n)/1e6},r=process.hrtime,e=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=e-s):Date.now?(Pv.exports=function(){return Date.now()-i},i=Date.now()):(Pv.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t);for(var Ov=Pv.exports,Ev="undefined"==typeof window?t:window,Tv=["moz","webkit"],Cv="AnimationFrame",Av=Ev["request"+Cv],Rv=Ev["cancel"+Cv]||Ev["cancelRequest"+Cv],Bv=0;!Av&&Bv<Tv.length;Bv++)Av=Ev[Tv[Bv]+"Request"+Cv],Rv=Ev[Tv[Bv]+"Cancel"+Cv]||Ev[Tv[Bv]+"CancelRequest"+Cv];if(!Av||!Rv){var Lv=0,$v=0,Iv=[],Dv=1e3/60;Av=function(t){if(0===Iv.length){var r=Ov(),i=Math.max(0,Dv-(r-Lv));Lv=i+r,setTimeout((function(){var t=Iv.slice(0);Iv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(Lv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return Iv.push({handle:++$v,callback:t,cancelled:!1}),$v},Rv=function(t){for(var r=0;r<Iv.length;r++)Iv[r].handle===t&&(Iv[r].cancelled=!0)}}jv.exports=function(t){return Av.call(Ev,t)},jv.exports.cancel=function(){Rv.apply(Ev,arguments)},jv.exports.polyfill=function(t){t||(t=Ev),t.requestAnimationFrame=Av,t.cancelAnimationFrame=Rv};const Fv=jv.exports;var zv,_v="\t\n\v\f\r \u2028\u2029\ufeff",Yv=L,Xv=gh,qv=_v,Gv=M("".replace),Uv="["+qv+"]",Vv=RegExp("^"+Uv+Uv+"*"),Hv=RegExp(Uv+Uv+"*$"),Wv=function(t){return function(r){var i=Xv(Yv(r));return 1&t&&(i=Gv(i,Vv,"")),2&t&&(i=Gv(i,Hv,"")),i}},Qv={start:Wv(1),end:Wv(2),trim:Wv(3)},Zv=Yr.PROPER,Kv=_v,Jv=Qv.trim;$e({target:"String",proto:!0,forced:(zv="trim",a((function(){return!!Kv[zv]()||"
"!=="
"[zv]()||Zv&&Kv[zv].name!==zv})))},{trim:function(){return Jv(this)}});var td=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},rd=$e,id=Ji.indexOf,ed=Bl,nd=zn([].indexOf),sd=!!nd&&1/nd([1],1,-0)<0;rd({target:"Array",proto:!0,forced:sd||!ed("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return sd?nd(this,t,r)||0:id(this,t,r)}});var ad=$e,od=_c,hd=L,ud=gh,cd=Xc,fd=M("".indexOf);ad({target:"String",proto:!0,forced:!cd("includes")},{includes:function(t){return!!~fd(ud(hd(this)),ud(od(t)),arguments.length>1?arguments[1]:void 0)}});var ld=j,vd=$e,dd=Array.isArray||function(t){return"Array"==ld(t)},pd=M([].reverse),yd=[1,2];vd({target:"Array",proto:!0,forced:String(yd)===String(yd.reverse())},{reverse:function(){return dd(this)&&(this.length=this.length),pd(this)}});
|
6
|
+
import{c as t,g as r}from"./p-d4056c1c.js";import{b as i}from"./p-00291b93.js";import"./p-fa1ceaf9.js";import"./p-ffd41e25.js";import"./p-6a68306c.js";import"./p-996c1ac5.js";import"./p-c1cf3ebc.js";import"./p-3d7cff5e.js";import"./p-a230b270.js";import"./p-a0300d31.js";var e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,S=k({}.toString),N=k("".slice),j=function(t){return N(S(t),8,-1)},P=a,O=j,E=Object,T=M("".split),C=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?T(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,L=function(t){if(R(t))throw B("Can't call method on "+t);return t},$=C,I=L,D=function(t){return $(I(t))},F="object"==typeof document&&document.all,z={all:F,IS_HTMLDDA:void 0===F&&void 0!==F},_=z.all,Y=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},X=Y,q=z.all,G=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:X(t)||t===q}:function(t){return"object"==typeof t?null!==t:X(t)},U=n,V=Y,H=function(t,r){return arguments.length<2?V(i=U[t])?i:void 0:U[t]&&U[t][r];var i},W=M({}.isPrototypeOf),Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Q,K=n.process,J=n.Deno,tt=K&&K.versions||J&&J.version,rt=tt&&tt.v8;rt&&(y=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Z&&(!(p=Z.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Z.match(/Chrome\/(\d+)/))&&(y=+p[1]);var it=y,et=it,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=H,ot=Y,ht=W,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=Y,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var i=t[r];return mt(i)?void 0:gt(i)},wt=c,xt=Y,Mt=G,kt=TypeError,St={exports:{}},Nt=n,jt=Object.defineProperty,Pt=function(t,r){try{jt(Nt,t,{value:r,configurable:!0,writable:!0})}catch(i){Nt[t]=r}return r},Ot="__core-js_shared__",Et=n[Ot]||Pt(Ot,{}),Tt=Et;(St.exports=function(t,r){return Tt[t]||(Tt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=L,At=Object,Rt=function(t){return At(Ct(t))},Bt=Rt,Lt=M({}.hasOwnProperty),$t=Object.hasOwn||function(t,r){return Lt(Bt(t),r)},It=M,Dt=0,Ft=Math.random(),zt=It(1..toString),_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+Ft,36)},Yt=$t,Xt=_t,qt=nt,Gt=st,Ut=n.Symbol,Vt=(0,St.exports)("wks"),Ht=Gt?Ut.for||Ut:Ut&&Ut.withoutSetter||Xt,Wt=function(t){return Yt(Vt,t)||(Vt[t]=qt&&Yt(Ut,t)?Ut[t]:Ht("Symbol."+t)),Vt[t]},Qt=c,Zt=G,Kt=ct,Jt=bt,tr=TypeError,rr=Wt("toPrimitive"),ir=function(t,r){if(!Zt(t)||Kt(t))return t;var i,e=Jt(t,rr);if(e){if(void 0===r&&(r="default"),i=Qt(e,t,r),!Zt(i)||Kt(i))return i;throw tr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;if(xt(i=t.valueOf)&&!Mt(e=wt(i,t)))return e;if("string"!==r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;throw kt("Can't convert object to primitive value")}(t,r)},er=ct,nr=function(t){var r=ir(t,"string");return er(r)?r:r+""},sr=G,ar=n.document,or=sr(ar)&&sr(ar.createElement),hr=function(t){return or?ar.createElement(t):{}},ur=hr,cr=!o&&!a((function(){return 7!=Object.defineProperty(ur("div"),"a",{get:function(){return 7}}).a})),fr=c,lr=f,vr=g,dr=D,pr=nr,yr=$t,gr=cr,mr=Object.getOwnPropertyDescriptor;s.f=o?mr:function(t,r){if(t=dr(t),r=pr(r),gr)try{return mr(t,r)}catch(t){}if(yr(t,r))return vr(!fr(lr.f,t,r),t[r])};var br={},wr=o&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xr=G,Mr=String,kr=TypeError,Sr=function(t){if(xr(t))return t;throw kr(Mr(t)+" is not an object")},Nr=cr,jr=Sr,Pr=nr,Or=TypeError,Er=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Cr="enumerable",Ar="configurable",Rr="writable";br.f=o?wr?function(t,r,i){if(jr(t),r=Pr(r),jr(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Rr in i&&!i[Rr]){var e=Tr(t,r);e&&e[Rr]&&(t[r]=i.value,i={configurable:Ar in i?i[Ar]:e[Ar],enumerable:Cr in i?i[Cr]:e[Cr],writable:!1})}return Er(t,r,i)}:Er:function(t,r,i){if(jr(t),r=Pr(r),jr(i),Nr)try{return Er(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Or("Accessors not supported");return"value"in i&&(t[r]=i.value),t};var Br=br,Lr=g,$r=o?function(t,r,i){return Br.f(t,r,Lr(1,i))}:function(t,r,i){return t[r]=i,t},Ir={exports:{}},Dr=o,Fr=Function.prototype,zr=Dr&&Object.getOwnPropertyDescriptor,_r=$t(Fr,"name"),Yr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!Dr||Dr&&zr(Fr,"name").configurable)},Xr=Y,qr=Et,Gr=M(Function.toString);Xr(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Ur,Vr,Hr,Wr=qr.inspectSource,Qr=n.WeakMap,Zr=Y(Qr)&&/native code/.test(String(Qr)),Kr=_t,Jr=(0,St.exports)("keys"),ti=function(t){return Jr[t]||(Jr[t]=Kr(t))},ri={},ii=G,ei=$r,ni=$t,si=ti,ai=ri,oi="Object already initialized",hi=n.TypeError;if(Zr||Et.state){var ui=Et.state||(Et.state=new(0,n.WeakMap));ui.get=ui.get,ui.has=ui.has,ui.set=ui.set,Ur=function(t,r){if(ui.has(t))throw hi(oi);return r.facade=t,ui.set(t,r),r},Vr=function(t){return ui.get(t)||{}},Hr=function(t){return ui.has(t)}}else{var ci=si("state");ai[ci]=!0,Ur=function(t,r){if(ni(t,ci))throw hi(oi);return r.facade=t,ei(t,ci,r),r},Vr=function(t){return ni(t,ci)?t[ci]:{}},Hr=function(t){return ni(t,ci)}}var fi={set:Ur,get:Vr,has:Hr,enforce:function(t){return Hr(t)?Vr(t):Ur(t,{})},getterFor:function(t){return function(r){var i;if(!ii(r)||(i=Vr(r)).type!==t)throw hi("Incompatible receiver, "+t+" required");return i}}},li=M,vi=a,di=Y,pi=$t,yi=o,gi=Yr.CONFIGURABLE,mi=Wr,bi=fi.enforce,wi=fi.get,xi=String,Mi=Object.defineProperty,ki=li("".slice),Si=li("".replace),Ni=li([].join),ji=yi&&!vi((function(){return 8!==Mi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Oi=Ir.exports=function(t,r,i){"Symbol("===ki(xi(r),0,7)&&(r="["+Si(xi(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!pi(t,"name")||gi&&t.name!==r)&&(yi?Mi(t,"name",{value:r,configurable:!0}):t.name=r),ji&&i&&pi(i,"arity")&&t.length!==i.arity&&Mi(t,"length",{value:i.arity});try{i&&pi(i,"constructor")&&i.constructor?yi&&Mi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=bi(t);return pi(e,"source")||(e.source=Ni(Pi,"string"==typeof r?r:"")),t};Function.prototype.toString=Oi((function(){return di(this)&&wi(this).source||mi(this)}),"toString");var Ei=Y,Ti=br,Ci=Ir.exports,Ai=Pt,Ri=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(Ei(i)&&Ci(i,s,e),e.global)n?t[r]=i:Ai(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:Ti.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Bi={},Li=Math.ceil,$i=Math.floor,Ii=Math.trunc||function(t){var r=+t;return(r>0?$i:Li)(r)},Di=Ii,Fi=function(t){var r=+t;return r!=r||0===r?0:Di(r)},zi=Fi,_i=Math.max,Yi=Math.min,Xi=function(t,r){var i=zi(t);return i<0?_i(i+r,0):Yi(i,r)},qi=Fi,Gi=Math.min,Ui=function(t){return t>0?Gi(qi(t),9007199254740991):0},Vi=Ui,Hi=function(t){return Vi(t.length)},Wi=D,Qi=Xi,Zi=Hi,Ki=function(t){return function(r,i,e){var n,s=Wi(r),a=Zi(s),o=Qi(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},Ji={includes:Ki(!0),indexOf:Ki(!1)},te=$t,re=D,ie=Ji.indexOf,ee=ri,ne=M([].push),se=function(t,r){var i,e=re(t),n=0,s=[];for(i in e)!te(ee,i)&&te(e,i)&&ne(s,i);for(;r.length>n;)te(e,i=r[n++])&&(~ie(s,i)||ne(s,i));return s},ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oe=se,he=ae.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(t){return oe(t,he)};var ue={};ue.f=Object.getOwnPropertySymbols;var ce=H,fe=Bi,le=ue,ve=Sr,de=M([].concat),pe=ce("Reflect","ownKeys")||function(t){var r=fe.f(ve(t)),i=le.f;return i?de(r,i(t)):r},ye=$t,ge=pe,me=s,be=br,we=a,xe=Y,Me=/#|\.prototype\./,ke=function(t,r){var i=Ne[Se(t)];return i==Pe||i!=je&&(xe(r)?we(r):!!r)},Se=ke.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ne=ke.data={},je=ke.NATIVE="N",Pe=ke.POLYFILL="P",Oe=ke,Ee=n,Te=s.f,Ce=$r,Ae=Ri,Re=Pt,Be=function(t,r,i){for(var e=ge(r),n=be.f,s=me.f,a=0;a<e.length;a++){var o=e[a];ye(t,o)||i&&ye(i,o)||n(t,o,s(r,o))}},Le=Oe,$e=function(t,r){var i,e,n,s,a,o=t.target,h=t.global,u=t.stat;if(i=h?Ee:u?Ee[o]||Re(o,{}):(Ee[o]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Te(i,e))&&a.value:i[e],!Le(h?e:o+(u?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Be(s,n)}(t.sham||n&&n.sham)&&Ce(s,"sham",!0),Ae(i,e,s,t)}},Ie="undefined"!=typeof process&&"process"==j(process),De=Y,Fe=String,ze=TypeError,_e=M,Ye=Sr,Xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Ye(i),function(t){if("object"==typeof t||De(t))return t;throw ze("Can't set "+Fe(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),qe=br.f,Ge=$t,Ue=Wt("toStringTag"),Ve=function(t,r,i){t&&!i&&(t=t.prototype),t&&!Ge(t,Ue)&&qe(t,Ue,{configurable:!0,value:r})},He=H,We=br,Qe=o,Ze=Wt("species"),Ke=W,Je=TypeError,tn={};tn[Wt("toStringTag")]="z";var rn="[object z]"===String(tn),en=Y,nn=j,sn=Wt("toStringTag"),an=Object,on="Arguments"==nn(function(){return arguments}()),hn=rn?nn:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=an(t),sn))?i:on?nn(r):"Object"==(e=nn(r))&&en(r.callee)?"Arguments":e},un=M,cn=a,fn=Y,ln=hn,vn=Wr,dn=function(){},pn=[],yn=H("Reflect","construct"),gn=/^\s*(?:class|function)\b/,mn=un(gn.exec),bn=!gn.exec(dn),wn=function(t){if(!fn(t))return!1;try{return yn(dn,pn,t),!0}catch(t){return!1}},xn=function(t){if(!fn(t))return!1;switch(ln(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!mn(gn,vn(t))}catch(t){return!0}};xn.sham=!0;var Mn,kn,Sn,Nn,jn=!yn||cn((function(){var t;return wn(wn.call)||!wn(Object)||!wn((function(){t=!0}))||t}))?xn:wn,Pn=jn,On=lt,En=TypeError,Tn=Sr,Cn=A,An=Wt("species"),Rn=function(t,r){var i,e=Tn(t).constructor;return void 0===e||Cn(i=Tn(e)[An])?r:function(t){if(Pn(t))return t;throw En(On(t)+" is not a constructor")}(i)},Bn=Function.prototype,Ln=Bn.apply,$n=Bn.call,In="object"==typeof Reflect&&Reflect.apply||(h?$n.bind(Ln):function(){return $n.apply(Ln,arguments)}),Dn=j,Fn=M,zn=function(t){if("Function"===Dn(t))return Fn(t)},_n=yt,Yn=h,Xn=zn(zn.bind),qn=function(t,r){return _n(t),void 0===r?t:Yn?Xn(t,r):function(){return t.apply(r,arguments)}},Gn=H("document","documentElement"),Un=M([].slice),Vn=TypeError,Hn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Q),Wn=n,Qn=In,Zn=qn,Kn=Y,Jn=$t,ts=a,rs=Gn,is=Un,es=hr,ns=Hn,ss=Ie,as=Wn.setImmediate,os=Wn.clearImmediate,hs=Wn.process,us=Wn.Dispatch,cs=Wn.Function,fs=Wn.MessageChannel,ls=Wn.String,vs=0,ds={},ps="onreadystatechange";ts((function(){Mn=Wn.location}));var ys=function(t){if(Jn(ds,t)){var r=ds[t];delete ds[t],r()}},gs=function(t){return function(){ys(t)}},ms=function(t){ys(t.data)},bs=function(t){Wn.postMessage(ls(t),Mn.protocol+"//"+Mn.host)};as&&os||(as=function(t){!function(t,r){if(t<r)throw Vn("Not enough arguments")}(arguments.length,1);var r=Kn(t)?t:cs(t),i=is(arguments,1);return ds[++vs]=function(){Qn(r,void 0,i)},kn(vs),vs},os=function(t){delete ds[t]},ss?kn=function(t){hs.nextTick(gs(t))}:us&&us.now?kn=function(t){us.now(gs(t))}:fs&&!ns?(Nn=(Sn=new fs).port2,Sn.port1.onmessage=ms,kn=Zn(Nn.postMessage,Nn)):Wn.addEventListener&&Kn(Wn.postMessage)&&!Wn.importScripts&&Mn&&"file:"!==Mn.protocol&&!ts(bs)?(kn=bs,Wn.addEventListener("message",ms,!1)):kn=ps in es("script")?function(t){rs.appendChild(es("script"))[ps]=function(){rs.removeChild(this),ys(t)}}:function(t){setTimeout(gs(t),0)});var ws={set:as,clear:os},xs=function(){this.head=null,this.tail=null};xs.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ms,ks,Ss,Ns,js,Ps=xs,Os=/ipad|iphone|ipod/i.test(Q)&&"undefined"!=typeof Pebble,Es=/web0s(?!.*chrome)/i.test(Q),Ts=n,Cs=qn,As=ws.set,Rs=Ps,Bs=Hn,Ls=Os,$s=Es,Is=Ie,Ds=Ts.MutationObserver||Ts.WebKitMutationObserver,Fs=Ts.document,zs=Ts.process,_s=Ts.Promise,Ys=(0,s.f)(Ts,"queueMicrotask"),Xs=Ys&&Ys.value;if(!Xs){var qs=new Rs,Gs=function(){var t,r;for(Is&&(t=zs.domain)&&t.exit();r=qs.get();)try{r()}catch(t){throw qs.head&&Ms(),t}t&&t.enter()};Bs||Is||$s||!Ds||!Fs?!Ls&&_s&&_s.resolve?((Ns=_s.resolve(void 0)).constructor=_s,js=Cs(Ns.then,Ns),Ms=function(){js(Gs)}):Is?Ms=function(){zs.nextTick(Gs)}:(As=Cs(As,Ts),Ms=function(){As(Gs)}):(ks=!0,Ss=Fs.createTextNode(""),new Ds(Gs).observe(Ss,{characterData:!0}),Ms=function(){Ss.data=ks=!ks}),Xs=function(t){qs.head||Ms(),qs.add(t)}}var Us=Xs,Vs=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Hs=n.Promise,Ws="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Qs=!Ws&&!Ie&&"object"==typeof window&&"object"==typeof document,Zs=n,Ks=Hs,Js=Y,ta=Oe,ra=Wr,ia=Qs,ea=Ws,na=it,sa=Wt("species"),aa=!1,oa=Js(Zs.PromiseRejectionEvent),ha=ta("Promise",(function(){var t=ra(Ks),r=t!==String(Ks);if(!r&&66===na)return!0;if(!na||na<51||!/native code/.test(t)){var i=new Ks((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[sa]=e,!(aa=i.then((function(){}))instanceof e))return!0}return!r&&(ia||ea)&&!oa})),ua={CONSTRUCTOR:ha,REJECTION_EVENT:oa,SUBCLASSING:aa},ca={},fa=yt,la=TypeError,va=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw la("Bad Promise constructor");r=t,i=e})),this.resolve=fa(r),this.reject=fa(i)};ca.f=function(t){return new va(t)};var da,pa,ya,ga,ma=$e,ba=Ie,wa=n,xa=c,Ma=Ri,ka=Xe,Sa=Ve,Na=yt,ja=Y,Pa=G,Oa=Rn,Ea=ws.set,Ta=Us,Ca=Vs,Aa=Ps,Ra=fi,Ba=Hs,La=ca,$a="Promise",Ia=ua.CONSTRUCTOR,Da=ua.REJECTION_EVENT,Fa=ua.SUBCLASSING,za=Ra.getterFor($a),_a=Ra.set,Ya=Ba&&Ba.prototype,Xa=Ba,qa=Ya,Ga=wa.TypeError,Ua=wa.document,Va=wa.process,Ha=La.f,Wa=Ha,Qa=!!(Ua&&Ua.createEvent&&wa.dispatchEvent),Za="unhandledrejection",Ka=function(t){var r;return!(!Pa(t)||!ja(r=t.then))&&r},Ja=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&no(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ga("Promise-chain cycle")):(e=Ka(i))?xa(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},to=function(t,r){t.notified||(t.notified=!0,Ta((function(){for(var i,e=t.reactions;i=e.get();)Ja(i,t);t.notified=!1,r&&!t.rejection&&io(t)})))},ro=function(t,r,i){var e,n;Qa?((e=Ua.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),wa.dispatchEvent(e)):e={promise:r,reason:i},!Da&&(n=wa["on"+t])?n(e):t===Za&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},io=function(t){xa(Ea,wa,(function(){var r,i=t.facade,e=t.value;if(eo(t)&&(r=Ca((function(){ba?Va.emit("unhandledRejection",e,i):ro(Za,i,e)})),t.rejection=ba||eo(t)?2:1,r.error))throw r.value}))},eo=function(t){return 1!==t.rejection&&!t.parent},no=function(t){xa(Ea,wa,(function(){var r=t.facade;ba?Va.emit("rejectionHandled",r):ro("rejectionhandled",r,t.value)}))},so=function(t,r,i){return function(e){t(r,e,i)}},ao=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,to(t,!0))},oo=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ga("Promise can't be resolved itself");var e=Ka(r);e?Ta((function(){var i={done:!1};try{xa(e,r,so(oo,i,t),so(ao,i,t))}catch(r){ao(i,r,t)}})):(t.value=r,t.state=1,to(t,!1))}catch(r){ao({done:!1},r,t)}}};if(Ia&&(Xa=function(t){(function(t,r){if(Ke(r,t))return t;throw Je("Incorrect invocation")})(this,qa),Na(t),xa(da,this);var r=za(this);try{t(so(oo,r),so(ao,r))}catch(t){ao(r,t)}},(da=function(){_a(this,{type:$a,done:!1,notified:!1,parent:!1,reactions:new Aa,rejection:!1,state:0,value:void 0})}).prototype=Ma(qa=Xa.prototype,"then",(function(t,r){var i=za(this),e=Ha(Oa(this,Xa));return i.parent=!0,e.ok=!ja(t)||t,e.fail=ja(r)&&r,e.domain=ba?Va.domain:void 0,0==i.state?i.reactions.add(e):Ta((function(){Ja(e,i)})),e.promise})),pa=function(){var t=new da,r=za(t);this.promise=t,this.resolve=so(oo,r),this.reject=so(ao,r)},La.f=Ha=function(t){return t===Xa||void 0===t?new pa(t):Wa(t)},ja(Ba)&&Ya!==Object.prototype)){ya=Ya.then,Fa||Ma(Ya,"then",(function(t,r){var i=this;return new Xa((function(t,r){xa(ya,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ya.constructor}catch(t){}ka&&ka(Ya,qa)}ma({global:!0,constructor:!0,wrap:!0,forced:Ia},{Promise:Xa}),Sa(Xa,$a,!1),ga=He($a),Qe&&ga&&!ga[Ze]&&(0,We.f)(ga,Ze,{configurable:!0,get:function(){return this}});var ho={},uo=ho,co=Wt("iterator"),fo=Array.prototype,lo=hn,vo=bt,po=A,yo=ho,go=Wt("iterator"),mo=function(t){if(!po(t))return vo(t,go)||vo(t,"@@iterator")||yo[lo(t)]},bo=c,wo=yt,xo=Sr,Mo=lt,ko=mo,So=TypeError,No=c,jo=Sr,Po=bt,Oo=qn,Eo=c,To=Sr,Co=lt,Ao=Hi,Ro=W,Bo=mo,Lo=function(t,r,i){var e,n;jo(t);try{if(!(e=Po(t,"return"))){if("throw"===r)throw i;return i}e=No(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return jo(e),i},$o=TypeError,Io=function(t,r){this.stopped=t,this.result=r},Do=Io.prototype,Fo=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),l=!(!i||!i.IS_RECORD),v=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),p=Oo(r,i&&i.that),y=function(t){return e&&Lo(e,"normal",t),new Io(!0,t)},g=function(t){return f?(To(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)e=t.iterator;else if(v)e=t;else{if(!(n=Bo(t)))throw $o(Co(t)+" is not iterable");if(void 0!==(c=n)&&(uo.Array===c||fo[co]===c)){for(s=0,a=Ao(t);a>s;s++)if((o=g(t[s]))&&Ro(Do,o))return o;return new Io(!1)}e=function(t,r){var i=arguments.length<2?ko(t):r;if(wo(i))return xo(bo(i,t));throw So(Mo(t)+" is not iterable")}(t,n)}for(h=l?t.next:e.next;!(u=Eo(h,e)).done;){try{o=g(u.value)}catch(t){Lo(e,"throw",t)}if("object"==typeof o&&o&&Ro(Do,o))return o}return new Io(!1)},zo=Wt("iterator"),_o=!1;try{var Yo=0,Xo={next:function(){return{done:!!Yo++}},return:function(){_o=!0}};Xo[zo]=function(){return this},Array.from(Xo,(function(){throw 2}))}catch(t){}var qo=Hs,Go=ua.CONSTRUCTOR||!function(t,r){if(!r&&!_o)return!1;var i=!1;try{var e={};e[zo]=function(){return{next:function(){return{done:i=!0}}}},t(e)}catch(t){}return i}((function(t){qo.all(t).then(void 0,(function(){}))})),Uo=c,Vo=yt,Ho=ca,Wo=Vs,Qo=Fo;$e({target:"Promise",stat:!0,forced:Go},{all:function(t){var r=this,i=Ho.f(r),e=i.resolve,n=i.reject,s=Wo((function(){var i=Vo(r.resolve),s=[],a=0,o=1;Qo(t,(function(t){var h=a++,u=!1;o++,Uo(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var Zo=Hs,Ko=H,Jo=Y,th=Ri,rh=Zo&&Zo.prototype;if($e({target:"Promise",proto:!0,forced:ua.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),Jo(Zo)){var ih=Ko("Promise").prototype.catch;rh.catch!==ih&&th(rh,"catch",ih,{unsafe:!0})}var eh=c,nh=yt,sh=ca,ah=Vs,oh=Fo;$e({target:"Promise",stat:!0,forced:Go},{race:function(t){var r=this,i=sh.f(r),e=i.reject,n=ah((function(){var n=nh(r.resolve);oh(t,(function(t){eh(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}});var hh=c,uh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{reject:function(t){var r=uh.f(this);return hh(r.reject,void 0,t),r.promise}});var ch=Sr,fh=G,lh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(ch(t),fh(r)&&r.constructor===t)return r;var i=lh.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});var vh={exports:{}};!function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}(vh);const dh=r(vh.exports);var ph=hn,yh=String,gh=function(t){if("Symbol"===ph(t))throw TypeError("Cannot convert a Symbol value to a string");return yh(t)},mh=Sr,bh=function(){var t=mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},wh=a,xh=n.RegExp,Mh=wh((function(){var t=xh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),kh=Mh||wh((function(){return!xh("a","y").sticky})),Sh={BROKEN_CARET:Mh||wh((function(){var t=xh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:kh,UNSUPPORTED_Y:Mh},Nh={},jh=se,Ph=ae,Oh=Object.keys||function(t){return jh(t,Ph)},Eh=br,Th=Sr,Ch=D,Ah=Oh;Nh.f=o&&!wr?Object.defineProperties:function(t,r){Th(t);for(var i,e=Ch(r),n=Ah(r),s=n.length,a=0;s>a;)Eh.f(t,i=n[a++],e[i]);return t};var Rh,Bh=Sr,Lh=Nh,$h=ae,Ih=ri,Dh=Gn,Fh=hr,zh="prototype",_h="script",Yh=ti("IE_PROTO"),Xh=function(){},qh=function(t){return"<"+_h+">"+t+"</"+_h+">"},Gh=function(t){t.write(qh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Uh=function(){try{Rh=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Uh="undefined"!=typeof document?document.domain&&Rh?Gh(Rh):(r=Fh("iframe"),i="java"+_h+":",r.style.display="none",Dh.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(qh("document.F=Object")),t.close(),t.F):Gh(Rh);for(var e=$h.length;e--;)delete Uh[zh][$h[e]];return Uh()};Ih[Yh]=!0;var Vh,Hh,Wh=Object.create||function(t,r){var i;return null!==t?(Xh[zh]=Bh(t),i=new Xh,Xh[zh]=null,i[Yh]=t):i=Uh(),void 0===r?i:Lh.f(i,r)},Qh=n.RegExp,Zh=a((function(){var t=Qh(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Kh=n.RegExp,Jh=a((function(){var t=Kh("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),tu=c,ru=M,iu=gh,eu=bh,nu=Sh,su=Wh,au=fi.get,ou=Zh,hu=Jh,uu=(0,St.exports)("native-string-replace",String.prototype.replace),cu=RegExp.prototype.exec,fu=cu,lu=ru("".charAt),vu=ru("".indexOf),du=ru("".replace),pu=ru("".slice),yu=(Hh=/b*/g,tu(cu,Vh=/a/,"a"),tu(cu,Hh,"a"),0!==Vh.lastIndex||0!==Hh.lastIndex),gu=nu.BROKEN_CARET,mu=void 0!==/()??/.exec("")[1];(yu||mu||gu||ou||hu)&&(fu=function(t){var r,i,e,n,s,a,o,h=this,u=au(h),c=iu(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=tu(fu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=gu&&h.sticky,d=tu(eu,h),p=h.source,y=0,g=c;if(v&&(d=du(d,"y",""),-1===vu(d,"g")&&(d+="g"),g=pu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==lu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),i=new RegExp("^(?:"+p+")",d)),mu&&(i=new RegExp("^"+p+"$(?!\\s)",d)),yu&&(e=h.lastIndex),n=tu(cu,v?i:h,g),v?n?(n.input=pu(n.input,y),n[0]=pu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:yu&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),mu&&n&&n.length>1&&tu(uu,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=su(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var bu=fu;$e({target:"RegExp",proto:!0,forced:/./.exec!==bu},{exec:bu});var wu=zn,xu=Ri,Mu=bu,ku=a,Su=Wt,Nu=$r,ju=Su("species"),Pu=RegExp.prototype,Ou=function(t,r,i,e){var n=Su(t),s=!ku((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!ku((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[ju]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=wu(/./[n]),h=r(n,""[t],(function(t,r,i,e,n){var a=wu(t),h=r.exec;return h===Mu||h===Pu.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));xu(String.prototype,t,h[0]),xu(Pu,n,h[1])}e&&Nu(Pu[n],"sham",!0)},Eu=M,Tu=Fi,Cu=gh,Au=L,Ru=Eu("".charAt),Bu=Eu("".charCodeAt),Lu=Eu("".slice),$u=function(t){return function(r,i){var e,n,s=Cu(Au(r)),a=Tu(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=Bu(s,a))<55296||e>56319||a+1===o||(n=Bu(s,a+1))<56320||n>57343?t?Ru(s,a):e:t?Lu(s,a,a+2):n-56320+(e-55296<<10)+65536}},Iu=($u(!1),$u(!0)),Du=function(t,r,i){return r+(i?Iu(t,r).length:1)},Fu=c,zu=Sr,_u=Y,Yu=j,Xu=bu,qu=TypeError,Gu=function(t,r){var i=t.exec;if(_u(i)){var e=Fu(i,t,r);return null!==e&&zu(e),e}if("RegExp"===Yu(t))return Fu(Xu,t,r);throw qu("RegExp#exec called on incompatible receiver")},Uu=c,Vu=Sr,Hu=A,Wu=Ui,Qu=gh,Zu=L,Ku=bt,Ju=Du,tc=Gu;Ou("match",(function(t,r,i){return[function(r){var i=Zu(this),e=Hu(r)?void 0:Ku(r,t);return e?Uu(e,r,i):new RegExp(r)[t](Qu(i))},function(t){var e=Vu(this),n=Qu(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return tc(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=tc(e,n));){var c=Qu(o[0]);h[u]=c,""===c&&(e.lastIndex=Ju(n,Wu(e.lastIndex),a)),u++}return 0===u?null:h}]}));var rc=M,ic=Rt,ec=Math.floor,nc=rc("".charAt),sc=rc("".replace),ac=rc("".slice),oc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hc=/\$([$&'`]|\d{1,2})/g,uc=In,cc=c,fc=M,lc=Ou,vc=a,dc=Sr,pc=Y,yc=A,gc=Fi,mc=Ui,bc=gh,wc=L,xc=Du,Mc=bt,kc=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=hc;return void 0!==n&&(n=ic(n),h=oc),sc(s,h,(function(s,h){var u;switch(nc(h,0)){case"$":return"$";case"&":return t;case"`":return ac(r,0,i);case"'":return ac(r,a);case"<":u=n[ac(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ec(c/10);return 0===f?s:f<=o?void 0===e[f-1]?nc(h,1):e[f-1]+nc(h,1):s}u=e[c-1]}return void 0===u?"":u}))},Sc=Gu,Nc=Wt("replace"),jc=Math.max,Pc=Math.min,Oc=fc([].concat),Ec=fc([].push),Tc=fc("".indexOf),Cc=fc("".slice),Ac="$0"==="a".replace(/./,"$0"),Rc=!!/./[Nc]&&""===/./[Nc]("a","$0");lc("replace",(function(t,r,i){var e=Rc?"$":"$0";return[function(t,i){var e=wc(this),n=yc(t)?void 0:Mc(t,Nc);return n?cc(n,t,e,i):cc(r,bc(e),t,i)},function(t,n){var s=dc(this),a=bc(t);if("string"==typeof n&&-1===Tc(n,e)&&-1===Tc(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=pc(n);h||(n=bc(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=Sc(s,a);if(null===l)break;if(Ec(f,l),!u)break;""===bc(l[0])&&(s.lastIndex=xc(a,mc(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=bc((l=f[y])[0]),m=jc(Pc(gc(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ec(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Oc([g],b,m,a);void 0!==x&&Ec(M,x);var k=bc(uc(n,void 0,M))}else k=kc(g,a,m,b,x,n);m>=p&&(d+=Cc(a,p,m)+k,p=m+g.length)}return d+Cc(a,p)}]}),!!vc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ac||Rc);var Bc,Lc=G,$c=j,Ic=Wt("match"),Dc=function(t){var r;return Lc(t)&&(void 0!==(r=t[Ic])?!!r:"RegExp"==$c(t))},Fc=Dc,zc=TypeError,_c=function(t){if(Fc(t))throw zc("The method doesn't accept regular expressions");return t},Yc=Wt("match"),Xc=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Yc]=!1,"/./"[t](r)}catch(t){}}return!1},qc=$e,Gc=zn,Uc=s.f,Vc=Ui,Hc=gh,Wc=_c,Qc=L,Zc=Xc,Kc=Gc("".startsWith),Jc=Gc("".slice),tf=Math.min,rf=Zc("startsWith");qc({target:"String",proto:!0,forced:!(!rf&&(Bc=Uc(String.prototype,"startsWith"),Bc&&!Bc.writable)||rf)},{startsWith:function(t){var r=Hc(Qc(this));Wc(t);var i=Vc(tf(arguments.length>1?arguments[1]:void 0,r.length)),e=Hc(t);return Kc?Kc(r,e,i):Jc(r,i,i+e.length)===e}});var ef=Wh,nf=br.f,sf=Wt("unscopables"),af=Array.prototype;null==af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=$t,lf=Y,vf=Rt,df=cf,pf=ti("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var i=r.constructor;return lf(i)&&r instanceof i?i.prototype:r instanceof yf?gf:null},bf=a,wf=Y,xf=G,Mf=mf,kf=Ri,Sf=Wt("iterator"),Nf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Nf=!0);var jf=!xf(of)||bf((function(){var t={};return of[Sf].call(t)!==t}));jf&&(of={}),wf(of[Sf])||kf(of,Sf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Nf},Of=Pf.IteratorPrototype,Ef=Wh,Tf=g,Cf=Ve,Af=ho,Rf=function(){return this},Bf=$e,Lf=c,$f=Y,If=mf,Df=Xe,Ff=Ve,zf=$r,_f=Ri,Yf=ho,Xf=Yr.PROPER,qf=Yr.CONFIGURABLE,Gf=Pf.IteratorPrototype,Uf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Wt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=D,Jf=function(t){af[sf][t]=!0},tl=ho,rl=br.f,il=function(t,r){return{value:t,done:r}},el=o,nl="Array Iterator",sl=fi.set,al=fi.getterFor(nl),ol=function(t,r,i,e,n,s,a){!function(t,r,i,e){var n=r+" Iterator";t.prototype=Ef(Of,{next:Tf(+!e,i)}),Cf(t,n,!1),Af[n]=Rf}(i,r,e);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Uf&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new i(this,t)}}return function(){return new i(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Uf&&d||c(n),y="Array"==r&&v.entries||d;if(y&&(o=If(y.call(new t)))!==Object.prototype&&o.next&&(If(o)!==Gf&&(Df?Df(o,Gf):$f(o[Vf])||_f(o,Vf,Zf)),Ff(o,f,!0)),Xf&&n==Wf&&d&&d.name!==Wf&&(qf?zf(v,"name",Wf):(l=!0,p=function(){return Lf(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Uf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Uf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,il(void 0,!0)):il("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),el&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=hr("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=$r,yl=Wt,gl=yl("iterator"),ml=yl("toStringTag"),bl=dl.values,wl=function(t,r){if(t){if(t[gl]!==bl)try{pl(t,gl,bl)}catch(r){t[gl]=bl}if(t[ml]||pl(t,ml,r),ll[r])for(var i in dl)if(t[i]!==dl[i])try{pl(t,i,dl[i])}catch(r){t[i]=dl[i]}}};for(var xl in ll)wl(fl[xl]&&fl[xl].prototype,xl);wl(vl,"DOMTokenList");var Ml={exports:{}},kl={exports:{}},Sl={exports:{}};!function(t){var r=i.exports.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Sl),function(t){var r=i.exports.default,e=Sl.exports;t.exports=function(t){var i=e(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}(kl),function(t){var r=kl.exports;t.exports=function(t,i,e){return(i=r(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ml);const Nl=r(Ml.exports);var jl=yt,Pl=Rt,Ol=C,El=Hi,Tl=TypeError,Cl=function(t){return function(r,i,e,n){jl(i);var s=Pl(r),a=Ol(s),o=El(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Tl("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Al={left:Cl(!1),right:Cl(!0)},Rl=a,Bl=function(t,r){var i=[][t];return!!i&&Rl((function(){i.call(null,r||function(){return 1},1)}))},Ll=Al.left;$e({target:"Array",proto:!0,forced:!Ie&&it>79&&it<83||!Bl("reduce")},{reduce:function(t){var r=arguments.length;return Ll(this,t,r,r>1?arguments[1]:void 0)}});var $l=$e,Il=zn,Dl=s.f,Fl=Ui,zl=gh,_l=_c,Yl=L,Xl=Xc,ql=Il("".endsWith),Gl=Il("".slice),Ul=Math.min,Vl=Xl("endsWith"),Hl=!Vl&&!!function(){var t=Dl(String.prototype,"endsWith");return t&&!t.writable}();$l({target:"String",proto:!0,forced:!Hl&&!Vl},{endsWith:function(t){var r=zl(Yl(this));_l(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Ul(Fl(i),e),s=zl(t);return ql?ql(r,s,n):Gl(r,n-s.length,n)===s}});var Wl=nr,Ql=br,Zl=g,Kl=Xi,Jl=Hi,tv=Array,rv=Math.max,iv=In,ev=c,nv=M,sv=Ou,av=Sr,ov=A,hv=Dc,uv=L,cv=Rn,fv=Du,lv=Ui,vv=gh,dv=bt,pv=function(t,r,i){for(var e=Jl(t),n=Kl(r,e),s=Kl(void 0===i?e:i,e),a=tv(rv(s-n,0)),o=0;n<s;n++,o++)h=a,u=t[n],c=void 0,(c=Wl(o))in h?Ql.f(h,c,Zl(0,u)):h[c]=u;var h,u,c;return a.length=o,a},yv=Gu,gv=bu,mv=a,bv=Sh.UNSUPPORTED_Y,wv=4294967295,xv=Math.min,Mv=[].push,kv=nv(/./.exec),Sv=nv(Mv),Nv=nv("".slice);sv("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=vv(uv(this)),n=void 0===i?wv:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!hv(t))return ev(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=ev(gv,c,e))&&!((a=c.lastIndex)>u&&(Sv(h,Nv(e,u,s.index)),s.length>1&&s.index<e.length&&iv(Mv,h,pv(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&kv(c,"")||Sv(h,""):Sv(h,Nv(e,u)),h.length>n?pv(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:ev(r,this,t,i)}:r,[function(r,i){var n=uv(this),s=ov(r)?void 0:dv(r,t);return s?ev(s,r,n,i):ev(e,vv(n),r,i)},function(t,n){var s=av(this),a=vv(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=cv(s,RegExp),u=s.unicode,c=new h(bv?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(bv?"g":"y")),f=void 0===n?wv:n>>>0;if(0===f)return[];if(0===a.length)return null===yv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=bv?0:v;var p,y=yv(c,bv?Nv(a,v):a);if(null===y||(p=xv(lv(c.lastIndex+(bv?v:0)),a.length))===l)v=fv(a,v,u);else{if(Sv(d,Nv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Sv(d,y[g]),d.length===f)return d;v=l=p}}return Sv(d,Nv(a,l)),d}]}),!!mv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),bv);var jv={exports:{}},Pv={exports:{}};(function(){var t,r,i,e,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?Pv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Pv.exports=function(){return(t()-n)/1e6},r=process.hrtime,e=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=e-s):Date.now?(Pv.exports=function(){return Date.now()-i},i=Date.now()):(Pv.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t);for(var Ov=Pv.exports,Ev="undefined"==typeof window?t:window,Tv=["moz","webkit"],Cv="AnimationFrame",Av=Ev["request"+Cv],Rv=Ev["cancel"+Cv]||Ev["cancelRequest"+Cv],Bv=0;!Av&&Bv<Tv.length;Bv++)Av=Ev[Tv[Bv]+"Request"+Cv],Rv=Ev[Tv[Bv]+"Cancel"+Cv]||Ev[Tv[Bv]+"CancelRequest"+Cv];if(!Av||!Rv){var Lv=0,$v=0,Iv=[],Dv=1e3/60;Av=function(t){if(0===Iv.length){var r=Ov(),i=Math.max(0,Dv-(r-Lv));Lv=i+r,setTimeout((function(){var t=Iv.slice(0);Iv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(Lv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return Iv.push({handle:++$v,callback:t,cancelled:!1}),$v},Rv=function(t){for(var r=0;r<Iv.length;r++)Iv[r].handle===t&&(Iv[r].cancelled=!0)}}jv.exports=function(t){return Av.call(Ev,t)},jv.exports.cancel=function(){Rv.apply(Ev,arguments)},jv.exports.polyfill=function(t){t||(t=Ev),t.requestAnimationFrame=Av,t.cancelAnimationFrame=Rv};const Fv=jv.exports;var zv,_v="\t\n\v\f\r \u2028\u2029\ufeff",Yv=L,Xv=gh,qv=_v,Gv=M("".replace),Uv="["+qv+"]",Vv=RegExp("^"+Uv+Uv+"*"),Hv=RegExp(Uv+Uv+"*$"),Wv=function(t){return function(r){var i=Xv(Yv(r));return 1&t&&(i=Gv(i,Vv,"")),2&t&&(i=Gv(i,Hv,"")),i}},Qv={start:Wv(1),end:Wv(2),trim:Wv(3)},Zv=Yr.PROPER,Kv=_v,Jv=Qv.trim;$e({target:"String",proto:!0,forced:(zv="trim",a((function(){return!!Kv[zv]()||"
"!=="
"[zv]()||Zv&&Kv[zv].name!==zv})))},{trim:function(){return Jv(this)}});var td=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},rd=$e,id=Ji.indexOf,ed=Bl,nd=zn([].indexOf),sd=!!nd&&1/nd([1],1,-0)<0;rd({target:"Array",proto:!0,forced:sd||!ed("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return sd?nd(this,t,r)||0:id(this,t,r)}});var ad=$e,od=_c,hd=L,ud=gh,cd=Xc,fd=M("".indexOf);ad({target:"String",proto:!0,forced:!cd("includes")},{includes:function(t){return!!~fd(ud(hd(this)),ud(od(t)),arguments.length>1?arguments[1]:void 0)}});var ld=j,vd=$e,dd=Array.isArray||function(t){return"Array"==ld(t)},pd=M([].reverse),yd=[1,2];vd({target:"Array",proto:!0,forced:String(yd)===String(yd.reverse())},{reverse:function(){return dd(this)&&(this.length=this.length),pd(this)}});
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as s,g as e}from"./p-fa1ceaf9.js";import{l as a,g as h}from"./p-ffd41e25.js";import{P as c}from"./p-44fea43a.js";import{g as n,c as o,h as l}from"./p-996c1ac5.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-00291b93.js";import"./p-3d7cff5e.js";import"./p-a230b270.js";import"./p-a0300d31.js";import"./p-c1cf3ebc.js";const r=class{constructor(s){t(this,s),this.featureSelect=i(this,"featureSelect",7),this.selectedLayerId=void 0,this.mapView=void 0,this.noFeaturesFoundMsg=void 0,this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.sortingInfo=void 0,this.whereClause=void 0,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._translations=void 0}async selectedLayerWatchHandler(){this._selectedLayer=await n(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async refresh(){await this.initializeFeatureItems()}async componentWillLoad(){await this.initModules(),await this._getTranslations(),this._isLoading=this.showInitialLoading,this._popupUtils=new c,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await n(this.mapView,this.selectedLayerId))}async componentDidLoad(){await this.initializeFeatureItems()}render(){return s("calcite-panel",{key:"3d7b707a73bb6c4d566515e50cf2baa155e60816","full-height":!0,"full-width":!0},this._isLoading&&s("calcite-loader",{key:"50294111fb6c1e52e727b03e54ca83fc498ca3b9",label:"",scale:"m"}),this.showErrorWhenNoFeatures&&0===this._featureItems.length&&!this._isLoading&&s("calcite-notice",{key:"8dd48fc33e2a9825a95b0d0d50424baf431fed55",class:"error-msg",icon:"feature-details",kind:"info",open:!0},s("div",{key:"6ff0dc700cdf40fe6929a9777bca8ebc6325f1ed",slot:"message"},this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg)),s("calcite-list",{key:"2412a7b41ab87bfee803460bdea0395ca609d55a","selection-appearance":"border","selection-mode":"none"},!this._isLoading&&this._featureItems.length>0&&this._featureItems),this._featuresCount>this.pageSize&&s("div",{key:"4216b02c264cf88472082f1c6f3cd466bd77d166",class:"width-full",slot:"footer"},s("calcite-pagination",{key:"2bb39768d0fbd0d863b075b0e2e6b750c5f7c2a1",class:"pagination","full-width":!0,onCalcitePaginationChange:this.pageChanged.bind(this),"page-size":this.pageSize,ref:t=>this._pagination=t,"start-item":"1","total-items":this._featuresCount})))}async initModules(){const[t]=await a(["esri/Color"]);this.Color=t}getWhereCondition(){var t;let i="1=1";return this.whereClause&&(i=this.whereClause),(null===(t=this._selectedLayer)||void 0===t?void 0:t.definitionExpression)&&(i=i+" AND "+this._selectedLayer.definitionExpression),i}async initializeFeatureItems(){var t;if(this._selectedLayer){null===(t=this._pagination)||void 0===t||t.goTo("start"),this._isLoading=this.showInitialLoading,this._featureItems=await this.queryPage(0);const i={where:this.getWhereCondition()};this._featuresCount=await this._selectedLayer.queryFeatureCount(i),this._isLoading=!1}}async pageChanged(t){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=null);const i=t.target.startItem-1;this._featureItems=await this.queryPage(i),this._isLoading=!1}async featureClicked(t,i){if(this.clearHighlights(),this.highlightOnMap){const i=Number(t.target.value),s=await o(this.mapView,this.selectedLayerId);this._highlightHandle=await l([i],s,this.mapView,!0)}await this.emitSelectedFeature(i)}async emitSelectedFeature(t){const i=t.layer,s=i.createQuery();s.returnGeometry=!0,s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this.featureSelect.emit(e.features[0])}async onFeatureHover(t){if(this.clearHighlights(),this.highlightOnHover){const i=t.getObjectId(),s=await o(this.mapView,this.selectedLayerId);s.highlightOptions={color:new this.Color("#FFFF00")},this._highlightHandle=s.highlight([i])}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(t){var i,s;const e=this._selectedLayer,a=(null===(i=this.sortingInfo)||void 0===i?void 0:i.field)?this.sortingInfo.field:e.objectIdField,h=(null===(s=this.sortingInfo)||void 0===s?void 0:s.order)?this.sortingInfo.order:"desc",c={start:t,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:this.getWhereCondition(),outSpatialReference:this.mapView.spatialReference.toJSON()};a&&h&&(c.orderByFields=[a.toString()+" "+h]);const n=await e.queryFeatures(c);return await this.createFeatureItem(n)}async createFeatureItem(t){const i=(null==t?void 0:t.features).map((async t=>{const i=await this._popupUtils.getPopupTitle(t,this.mapView.map);return this.getFeatureItem(t,i)}));return Promise.all(i)}getFeatureItem(t,i){const e=t.attributes[this._selectedLayer.objectIdField].toString();return s("calcite-list-item",{onCalciteListItemSelect:i=>{this.featureClicked(i,t)},onMouseLeave:()=>{this.clearHighlights()},onMouseOver:()=>{this.onFeatureHover(t)},value:e},s("div",{class:"small"===this.textSize?"feature-list-popup-title-small":"feature-list-popup-title",slot:"content-start"},i=null!=i?i:e),s("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}get el(){return e(this)}static get watchers(){return{selectedLayerId:["selectedLayerWatchHandler"],sortingInfo:["sortingInfoWatchHandler"],whereClause:["whereClauseHandler"]}}};r.style=":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;padding:10px 12px;white-space:pre-line}.feature-list-popup-title-small{font-size:small;padding:10px 12px;white-space:pre-line}";export{r as feature_list}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as s,H as e,g as a}from"./p-fa1ceaf9.js";import{l as n,g as o}from"./p-
|
6
|
+
import{r as t,c as i,h as s,H as e,g as a}from"./p-fa1ceaf9.js";import{l as n,g as o}from"./p-ffd41e25.js";import{y as c}from"./p-67b26725.js";import{f as h}from"./p-c1cf3ebc.js";import{s as l}from"./p-c4ddb206.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-8c6d9b5a.js";const r=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return s(e,{key:"63b775eca8dd10785df7b58be3a79eaa6cf4c049"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await n(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>s("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{var t;if((null===(t=this.geometries)||void 0===t?void 0:t.length)>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return s("div",{class:"c-container"},s("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),s("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return s("div",null,s("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}get el(){return a(this)}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"]}}};r.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,h as a,H as e,g as i}from"./p-fa1ceaf9.js";import{g as n}from"./p-427b4593.js";import{l as r}from"./p-65581d83.js";import{g as s}from"./p-a9a72626.js";import"./p-af2c8aa9.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";const o={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},c=new Map;function l(t){return c[t]||""}Object.keys(o).forEach((t=>{c[t]=`<svg viewBox="0 0 32 32" width="32" height="32" fill="${o[t].fill}"><path d="${o[t].path}"/></svg>`}));const p="instant-apps-create calcite-mode-light",h=class{constructor(a){t(this,a),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=p,this.messages={},this.CreateOptionsLookup=void 0}contentChanged(){Object.keys(this.CreateOptionsLookup).forEach((t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)}))}componentWillLoad(){return this.baseClass="dark"===s(this.el)?"instant-apps-create calcite-mode-dark":p,this.initializeModules(),n(this).then((()=>{this.initializePredefinedOptions()}))}disconnectedCallback(){var t,a;null===(t=this.handles)||void 0===t||t.removeAll(),null===(a=this.handles)||void 0===a||a.destroy(),this.handles=null}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel();return a(e,{key:"ee6a5076dce36a238288216de4cbd77d16347c15"},a("div",{key:"c22b60a05f5d0b430c76ab8edcf52577f1eecfaa",class:this.baseClass},t))}async initializeModules(){const[t]=await r(["esri/core/Handles"]);return this.handles=new t,Promise.resolve()}initializePredefinedOptions(){const{instantApps:t,instantAppsDesc:a,mapViewer:e,mapViewerDesc:i,arcgisStoryMaps:n,storyMapsDesc:r,experienceBuilder:s,experienceBuilderDesc:o,dashboards:c,dashboardsDesc:p}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:a,img:l("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:e,subtitle:i,img:l("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:n,subtitle:r,img:l("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:s,subtitle:o,img:l("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:c,subtitle:p,img:l("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){var a,e;const i=this.getBaseUrl(this.portal),n=this._getEnvironment(i),r=this.contentHref();switch(t){case"instant-apps":return`${i}/apps/instantgallery/index.html?${r}`;case"dashboards":return`${i}/apps/dashboards/new#id=${null===(e=null===(a=this.content)||void 0===a?void 0:a.portalItem)||void 0===e?void 0:e.id}`;case"map-viewer":return`${i}/apps/mapviewer/index.html?${r}`;case"story-maps":return`https://storymaps${"prod"===n?"":n}.arcgis.com/stories/new?${r}`;case"experience-builder":return`https://experience${"prod"===n?"":n}.arcgis.com/builder/page/template/?${r}`}return""}contentHref(){var t,a,e,i,n;return"Web Map"===(null===(a=null===(t=null==this?void 0:this.content)||void 0===t?void 0:t.portalItem)||void 0===a?void 0:a.type)?`webmap=${this.content.portalItem.id}`:"Web Scene"===(null===(i=null===(e=null==this?void 0:this.content)||void 0===e?void 0:e.portalItem)||void 0===i?void 0:i.type)?`webscene=${this.content.portalItem.id}`:"function"==typeof(null===(n=null==this?void 0:this.content)||void 0===n?void 0:n.fetchMembers)?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";const{customBaseUrl:a,portalHostname:e,urlKey:i}=t,{protocol:n}=location;return`${n}//${i?`${i}.${a}`:e}`}_getEnvironment(t){var a;let e=null;try{e=null===(a=new URL(t))||void 0===a?void 0:a.hostname}catch(t){}return null==e||-1===e.indexOf("arcgis.com")?"dev":(-1!==e.indexOf("devext")?"dev":-1!==e.indexOf("qaext")&&"qa")||"prod"}renderPopover(){var t,e;const i=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t,label:"Create panel"},i),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:null===(t=this.messages)||void 0===t?void 0:t.create,text:null===(e=this.messages)||void 0===e?void 0:e.create})]}renderPanel(){const t=this.showHeader?this.renderHeader():null,e=this.renderOptions();return a("div",{class:"inline"===this.mode?"instant-apps-create__inline-container":"instant-apps-create__popover-container"},t,e)}renderHeader(){const{create:t,createSubheading:e}=this.messages;return a("div",{class:"instant-apps-create__header"},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map((t=>this.renderOption(t))))}renderOption(t){var e;"string"==typeof t&&(t=null===(e=null==this?void 0:this.CreateOptionsLookup)||void 0===e?void 0:e[t]);const{title:i,subtitle:n,img:r,href:s}=t||{};return a("a",{class:"instant-apps-create__option",href:s,target:"_blank"},a("span",{class:"instant-apps-create__option-icon",innerHTML:r}),a("span",{class:"instant-apps-create__option-text"},a("span",{class:"instant-apps-create__option-text-wrapper"},a("h3",{class:"instant-apps-create__option-title"},i),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:"instant-apps-create__option-subtitle"},n)))}get el(){return i(this)}static get watchers(){return{content:["contentChanged"]}}};h.style=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:-moz-fit-content;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}";export{h as instant_apps_create}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as a,h as n,H as s,g as e,F as i}from"./p-fa1ceaf9.js";import{d as r,i as o,e as l,s as c,f as p,E as u,l as g,h as d,c as h}from"./p-5cc6eb18.js";import"./p-427b4593.js";import"./p-65581d83.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-af2c8aa9.js";import"./p-8c6d9b5a.js";const m="instant-apps-components__ckeditor-wrapper",v=class{constructor(n){t(this,n),this.isFocused=a(this,"isFocused",7),this.dataChanged=a(this,"dataChanged",7),this.value=void 0,this.editorInstance=void 0,this.config=void 0}updateValue(){this.value&&this.editorInstance.setData(this.value)}async componentDidLoad(){this.init()}componentDidUpdate(){this.editorInstance.setData(this.value)}render(){return n(s,{key:"a03e92def2da63461424d4487ee8a12cd8e0da81"},n("div",{key:"fee2876736ecbf3a231fd2c2bff3b7b382ba1341"}))}init(){this.applyStyles(),this.initEditor()}applyStyles(){if(document.getElementById(m))return;const t=document.createElement("style");t.id=m,t.innerHTML="\n .ck.ck-reset.ck-editor.ck-rounded-corners {\n margin-top: 10px !important;\n margin-left: 55px !important;\n }\n .ck-editor__editable {\n height: 70px !important;\n font-size: 0.875rem !important;\n line-height: \t1.375 !important;\n color: var(--calcite-color-text-1) !important;\n }\n\n .ck.ck-editor__editable_inline>:first-child,\n .ck.ck-editor__editable_inline>:last-child {\n --ck-spacing-large: 0.5rem !important;\n }\n\n .ck.ck-balloon-panel.ck-powered-by-balloon {\n --ck-z-modal: 700;\n z-index: 700;\n }\n\n .calcite-mode-dark .ck-editor__editable {\n color: var(--calcite-color-text-inverse) !important;\n }\n",document.head.prepend(t)}async initEditor(){const t=await this.createEditor();t&&(this.editorInstance=t,(this.value||""===this.value)&&t.setData(this.value),t.editing.view.document.on("change:isFocused",this.getEditorFocusedCallback(t)))}async createEditor(){try{let t;return t=this.config?await ClassicEditor.create(this.el,this.config):await ClassicEditor.create(this.el),this.editorInstance=t,Promise.resolve(t)}catch(t){return console.error(t),Promise.reject(null)}}getEditorFocusedCallback(t){return(a,n,s)=>{if(s)this.isFocused.emit();else{const a=t.getData();this.value!==a&&(this.value=a,this.dataChanged.emit(a))}}}get el(){return e(this)}static get watchers(){return{value:["updateValue"]}}};v.style=":host{display:block}";const _="instant-apps-language-translator-item",f={section:`${_}__section`,selected:`${_}__section--selected`,collapsed:`${_}__section--collapsed`,topRow:`${_}__top-row`,labelContainer:`${_}__label-container`,label:`${_}__label`,uiLocationPopoverContent:`${_}__ui-location-popover-content`,uiLocationItems:`${_}__ui-location-items`,uiLocationItem:`${_}__ui-location-item`,infoIcon:`${_}__info-icon`,infoButton:`${_}__info-button`,tip:`${_}__tip`,nestedInput:`${_}__nested-input`},b=class{constructor(n){t(this,n),this.translatorItemDataUpdated=a(this,"translatorItemDataUpdated",7),this.userInputs={},this.translatedInputs={},this.fieldName=void 0,this.translatedLanguageLabels=void 0,this.setting=void 0,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0}get isTextEditor(){return this.setting.type===r.TextEditor}get calciteMode(){return o()?l.Dark:l.Light}get hasNestedContent(){var t;return!!(null===(t=this.setting)||void 0===t?void 0:t.content)}get tipID(){return`${this.fieldName}goTo`}componentDidLoad(){this.isTextEditor&&c.onChange("uiData",(()=>this.handleEditorCollapse()))}render(){var t;return"content"in this.setting&&(null===(t=this.setting.content)||void 0===t?void 0:t.every((t=>{var a;return 0===(null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.length)})))?n(i,null):n(s,{class:this.calciteMode},this.renderBase(),this.renderPopover())}renderBase(){return n("div",{class:_},this.renderUserLocaleSection(),this.renderTranslatedLanguageSection())}renderPopover(){const t=this.getTip();return n("calcite-popover",{referenceElement:this.tipID,label:"","auto-close":"true",placement:"trailing",closable:!0},n("span",{class:f.uiLocationPopoverContent},n("span",{class:f.uiLocationItems},this.getUILocation()),t?n("span",{class:f.tip},t):null))}renderUserLocaleSection(){const t=this.getUIDataItem(),a=null==t?void 0:t.userLocaleData,s=null==a?void 0:a.value,e=this.setting.id;return n("div",{class:`${f.section}${(null==t?void 0:t.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.User,null==a?void 0:a.label,e),this.handleInputRender(p.User,s,e))}renderTranslatedLanguageSection(){var t,a;const s=this.getUIDataItem(),e=this.setting.id,i=c.get("currentLanguage"),r=c.get("portalItemResourceT9n"),o=null===(t=this.translatedLanguageLabels)||void 0===t?void 0:t[this.fieldName],l=null===(a=null==r?void 0:r[i])||void 0===a?void 0:a[e];return n("div",{class:`${f.section}${(null==s?void 0:s.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.Translation,o,e),this.handleInputRender(p.Translation,l,e))}handleInputRender(t,a,n){const s=this.getUIDataItem();return(null==s?void 0:s.expanded)?this.hasNestedContent?this.renderNestedInputs(t):this.renderInput(t,a,n):null}renderNestedInputs(t,a){const n=null!=a?a:this.setting,{content:s}=n;return null==s?void 0:s.map((a=>a.hasOwnProperty("content")?this.renderNestedInputs(t,a):this.renderNestedInput(t,a)))}renderNestedInput(t,a){var s;const e=c.get("currentLanguage"),i=c.get("portalItemResourceT9n"),r=null==a?void 0:a.id,o=null==i?void 0:i[e],l=null==o?void 0:o[r],{label:u,value:g,id:d}=a,h=t===p.Translation?null===(s=this.translatedLanguageLabels)||void 0===s?void 0:s[d]:u,m=t===p.User?g:l;return n("div",{class:f.nestedInput},this.renderItemHeader(t,h,r,a),this.renderInput(t,m,r,a))}renderItemHeader(t,a,s,e){const i=!this.hasNestedContent||!!e;return n("div",{class:f.topRow},this.renderItemHeaderLabel(t,a,e),i?this.renderCopyButton(t,s):null)}renderItemHeaderLabel(t,a,s){const e=t===p.User&&!s;return n("div",{class:f.labelContainer},s?null:this.renderExpandCollapseButton(),n("calcite-icon",{icon:this.getIcon(s),scale:"s"}),n("span",{class:f.label},a),e?this.renderInfoButton():null)}renderExpandCollapseButton(){const t=this.getUIDataItem(),a=(null==t?void 0:t.expanded)?u.Expanded:u.Collapsed;return n("calcite-action",{onClick:this.handleExpand.bind(this,t),icon:a,scale:"s",appearance:"transparent",text:""})}renderInfoButton(){return n("button",{id:this.tipID,class:f.infoButton},n("calcite-icon",{class:f.infoIcon,icon:u.Popover,scale:"s"}))}renderCopyButton(t,a){return n("calcite-action",{class:this.calciteMode,onClick:this.copySelection.bind(this,t,a),slot:"action",icon:u.Copy,appearance:"transparent",text:""})}renderInput(t,a,n,s){const e=null!=s?s:this.setting;return"string"===e.type||"textarea"===e.type?t===p.User?this.renderUserLocaleInput(a,n):this.renderTranslatedLanguageInput(a,n):this.renderTextEditor(a,t,n)}renderUserLocaleInput(t,a){return n("calcite-input",{ref:t=>this.userInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleUserInputChange.bind(this)})}renderTranslatedLanguageInput(t,a){return n("calcite-input",{ref:t=>this.translatedInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleTranslatedInputChange.bind(this)})}renderTextEditor(t,a,s){return n("instant-apps-ckeditor-wrapper",{id:s,ref:this.setEditor.bind(this,a),onDataChanged:this.handleTextEditorDataChange.bind(this,a),onIsFocused:this.handleSelection,value:null!=t?t:"","data-field-name":this.fieldName,config:{toolbar:[]}})}getUIDataItem(){if(g.uiData)return g.uiData.get(this.fieldName)}updateT9nStore(t,a){const n=c.get("currentLanguage"),s=d(n,{[t]:a});c.set("portalItemResourceT9n",s)}handleExpand(){const t=this.getUIDataItem();t.expanded=!t.expanded;const a=new Map(g.uiData);a.set(this.fieldName,t),c.set("uiData",a)}handleEditorCollapse(){var t,a;const n=c.get("uiData"),s=null==n?void 0:n.get(this.fieldName);if(!(null==s?void 0:s.expanded)&&(null===(t=this.userEditorWrapper)||void 0===t?void 0:t.editorInstance)&&(null===(a=this.translatedEditorWrapper)||void 0===a?void 0:a.editorInstance)){const{userEditorWrapper:t,translatedEditorWrapper:a}=this,n=t.editorInstance.getData();t.value=n;const s=a.editorInstance.getData();a.value=s,t.editorInstance.destroy(),a.editorInstance.destroy()}}handleSelection(t){const a=new Map(g.uiData),n=h();n.forEach((t=>{(null==a?void 0:a.get(t)).selected=!1})),n.forEach((n=>{const s=null==t?void 0:t.target;n===(null==s?void 0:s.getAttribute("data-field-name"))&&((null==a?void 0:a.get(n)).selected=!0)})),c.set("uiData",a)}getUILocation(){const t=this.getUIDataItem(),{uiLocation:a,userLocaleData:s}=t,{section:e,subsection:i}=a,r=[e.label,i.label,s.label].filter((t=>!!t));return r.map(((t,a)=>n("span",{class:f.uiLocationItem},n("span",null,t),a!==r.length-1?n("calcite-icon",{icon:"chevron-right",scale:"s"}):null)))}getTip(){const t=this.getUIDataItem(),{tip:a}=t;return a}copySelection(t,a){this.setting.type===r.TextEditor?this.copyTextEditorContent(t):this.copyCalciteInputContent(a,t)}copyTextEditorContent(t){var a,n;const s=t===p.User?null===(a=this.userEditorWrapper)||void 0===a?void 0:a.editorInstance:null===(n=this.translatedEditorWrapper)||void 0===n?void 0:n.editorInstance;setTimeout((()=>{this.selectContent(s),setTimeout((()=>this.selectContent(s)),50)}),50),this.copyContent(s)}selectContent(t){t.editing.view.focus();const{model:a}=t,n=a.createRangeIn(a.document.getRoot());a.change((t=>t.setSelection(n)))}copyContent(t){const a=t.getData(),n=document.createElement("div");n.contentEditable="true",n.innerHTML=a,document.body.appendChild(n);const s=document.createRange();s.selectNodeContents(n);const e=window.getSelection();null==e||e.removeAllRanges(),null==e||e.addRange(s),document.execCommand("copy"),document.body.removeChild(n)}copyCalciteInputContent(t,a){const n=a===p.User?this.userInputs[t]:this.translatedInputs[t];n&&(n.selectText(),navigator.clipboard.writeText(n.value))}setEditor(t,a){t===p.User?this.userEditorWrapper=a:this.translatedEditorWrapper=a}async handleUserInputChange(t){c.set("saving",!0);try{const a=t.target,n=a.id,s=a.value;this.getUIDataItem().userLocaleData.value=s,await this.userLocaleInputOnChangeCallback(n,s),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleUserTextEditorChange(t){c.set("saving",!0);try{const a=t.detail;this.getUIDataItem().userLocaleData.value=a,await this.userLocaleInputOnChangeCallback(this.fieldName,a),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleTranslatedInputChange(t){c.set("saving",!0);try{const a=t.composedPath()[0],n=a.id;this.updateT9nStore(n,a.value);const{locale:s,resource:e}=this.getTranslatedLocaleCallbackData(),i=t.target.value;await this.translatedLocaleInputOnChangeCallback(n,i,s,e),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}async handleTranslatedTextEditorChange(t){c.set("saving",!0);try{const a=t.target.id;this.updateT9nStore(a,t.detail);const{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),e=t.detail;await this.translatedLocaleInputOnChangeCallback(a,e,n,s),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}handleTextEditorDataChange(t,a){t===p.User?this.handleUserTextEditorChange(a):this.handleTranslatedTextEditorChange(a)}getTranslatedLocaleCallbackData(){return{locale:c.get("currentLanguage"),resource:c.get("portalItemResource")}}getIcon(t){switch((null!=t?t:this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}};b.style=".sc-instant-apps-language-translator-item-h{display:block}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__top-row.sc-instant-apps-language-translator-item{display:flex;align-items:center;justify-content:space-between}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label-container.sc-instant-apps-language-translator-item{display:flex;align-items:center}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label.sc-instant-apps-language-translator-item{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-top:10px;margin-left:55px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--last-item.sc-instant-apps-language-translator-item{border-bottom:none}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item:first-child{margin-right:1%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-popover-content.sc-instant-apps-language-translator-item{display:inline-block;padding:10px;max-width:400px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-items.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-item.sc-instant-apps-language-translator-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__tip.sc-instant-apps-language-translator-item{display:inline-block;font-size:14px;line-height:22px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-button.sc-instant-apps-language-translator-item{border:0;background-color:transparent;cursor:pointer}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item{margin-left:60px;margin-top:8px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-left:30px}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-action.sc-instant-apps-language-translator-item{--calcite-ui-icon-color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{border-bottom:none}";const x="instant-apps-language-translator-search",k={base:x,input:`${x}__input`,suggestionList:`${x}__suggestion-list`,suggestionListItem:`${x}__suggestion-list-item`},y=class{constructor(n){t(this,n),this.suggestionSelected=a(this,"suggestionSelected",7),this.t9nPlaceholder=void 0,this.results=[]}render(){return n(s,{key:"b614ff54a5c434522e865a457dff001572588b01"},this.renderSearchInput(),this.renderSuggestions())}renderSearchInput(){return n("calcite-input",{ref:t=>this.searchInput=t,class:k.input,onCalciteInputInput:this.handleSearch.bind(this),type:"search",placeholder:this.t9nPlaceholder,icon:"search"})}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n("ul",{class:k.suggestionList},this.results.map((t=>this.renderSuggestionListItem(t))))}renderSuggestionListItem(t){return n("li",{onClick:this.selectSuggestion.bind(this),class:k.suggestionListItem,"data-field-name":t.fieldName},t.userLocaleData.label)}handleSearch(t){var a,n;const s=null===(n=null===(a=t.target.value)||void 0===a?void 0:a.toLowerCase())||void 0===n?void 0:n.trim(),e=c.get("uiData"),i=h(),r=c.get("portalItemResourceT9n"),o=c.get("currentLanguage"),l=r[o],p=this.getSettingDataItems(i).filter(this.matchedResultsCallback(e,l,s,o));this.results=[...p.map((t=>Object.assign({fieldName:t},e.get(t))))]}matchedResultsCallback(t,a,n,s){return e=>{var i;const r=t.get(e),{label:o}=r.userLocaleData,{value:l}=r.userLocaleData,c=t.get("translatedLanguageLabels"),p=null===(i=null==c?void 0:c[s])||void 0===i?void 0:i[e],u=null==a?void 0:a[e],g=this.testUserInput(o,n),d=this.testUserInput(l,n),h=this.testUserInput(p,n),m=this.testUserInput(u,n);return g||d||h||m}}getSettingDataItems(t){return t.filter((t=>"locales"!==t&&"translatedLanguageLabels"!==t))}testUserInput(t,a){var n;return!!(null==t?void 0:t.trim())&&!!(null==a?void 0:a.trim())&&-1!==(null===(n=null==t?void 0:t.toLowerCase())||void 0===n?void 0:n.search(a))}selectSuggestion(t){const a=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(a),this.resetSearchInput()}resetSearchInput(){this.searchInput.value="",this.results=[]}};y.style=".sc-instant-apps-language-translator-search-h{display:block;position:relative}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__input.sc-instant-apps-language-translator-search{width:235.5px}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list.sc-instant-apps-language-translator-search{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:first-child{border:none}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search{margin-top:0;padding:0.8em 1em;border-top:solid 1px rgba(110, 110, 110, 0.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:hover{background-color:var(--calcite-color-foreground-2)}";export{v as instant_apps_ckeditor_wrapper,b as instant_apps_language_translator_item,y as instant_apps_language_translator_search}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import"./p-
|
6
|
+
import"./p-3d7cff5e.js";import"./p-a230b270.js";
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as s,h as i,g as e}from"./p-fa1ceaf9.js";import{S as o}from"./p-a230b270.js";import{g as n}from"./p-427b4593.js";import"./p-65581d83.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-af2c8aa9.js";function l(t){var s;return!!(null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s?void 0:s.getItem(t))}const a=class{constructor(i){var e;t(this,i),this.splashClose=s(this,"splashClose",7),this._sanitizer=null==(e=o)||"function"!=typeof e?null:new e({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0),this.localStorageKey=void 0,this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.secondaryButtonText=void 0,this.secondaryButtonIcon=void 0,this.secondaryButtonCallback=void 0,this.messages=void 0}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}componentWillLoad(){let t;const{localStorageKey:s}=this;t=s?this.open&&!l(this.localStorageKey):this.open,this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}componentDidLoad(){n(this)}render(){return i("calcite-modal",{key:"6d6a46267460646843c9b06ffbb8d319d2368b3b",onCalciteModalClose:this.close.bind(this),open:this.open,closeButtonDisabled:this.closeButtonDisabled,outsideCloseDisabled:this.outsideCloseDisabled},this.renderHeader(),this.renderContent(),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.renderPrimaryButton(),this.secondaryButton?this.renderSecondaryButton():null)}renderHeader(){const{titleText:t}=this;return i("header",{slot:"header"},t)}renderContent(){const{content:t}=this;return i("div",{slot:"content",innerHTML:t},i("slot",{name:"custom-action"}))}renderDontShowThisAgainCheckbox(){const{localStorageKey:t,messages:s}=this,e=!!l(t)||null;return i("div",{class:"instant-apps-splash__back-content",slot:"back"},i("calcite-label",{layout:"inline"},i("calcite-checkbox",{onCalciteCheckboxChange:this.handleDontShowThisAgain.bind(this),checked:null!=e?e:void 0}),null==s?void 0:s.dontShowThisAgain))}renderPrimaryButton(){const{primaryButtonText:t}=this;return i("calcite-button",{onClick:this.close.bind(this),slot:"primary"},t||"Enter")}renderSecondaryButton(){var t;return i("calcite-button",{onClick:null===(t=this.secondaryButtonCallback)||void 0===t?void 0:t.bind(this),slot:"secondary","icon-start":this.secondaryButtonIcon,appearance:"outline"},this.secondaryButtonText)}close(){this.open=!1,this.splashClose.emit()}handleDontShowThisAgain(t){const{localStorageKey:s}=this;if(!s)return;const i=t.target,{checked:e}=i;e?null===window||void 0===window||window.localStorage.setItem(s,"false"):function(t){var s;null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s||s.removeItem(t)}(s)}get el(){return e(this)}static get watchers(){return{content:["sanitizeContent"]}}};a.style=":host{display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}";export{a as instant_apps_splash}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as e,h as i,H as n,g as s}from"./p-fa1ceaf9.js";import{g as o}from"./p-ffd41e25.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";const r={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch(i){e=this.storage[t]}if(e)try{return JSON.parse(e)}catch(t){return}},set(t,e){const i=JSON.stringify(e);try{window.localStorage.setItem(t,i)}catch(i){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch(e){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}},a="esri-telemetry";class c extends Error{}const l=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"];class d{constructor(t){var e,i,n;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=function(t={}){const{disabled:e,portal:i}=t;return!(!e&&!1!==(null==i?void 0:i.eueiEnabled)&&(!i||function(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}(i)||function(t){return t.user&&!t.user.orgId&&"US"===t.ipCntryCode}(i)||function(t){return!t.user&&"US"===t.ipCntryCode}(i)))}(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");const s=(null===(e=t.portal)||void 0===e?void 0:e.user)||t.user;s&&this.setUser(s,null===(n=null===(i=t.portal)||void 0===i?void 0:i.subscriptionInfo)||void 0===n?void 0:n.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map((t=>t.getScriptTags&&t.getScriptTags())).join("")}async init(){const t=this.trackers.map((t=>t.init()));await Promise.all(t)}setUser(t={},e="Public"){let i;if(this.user=t="string"==typeof t?{username:t}:t,this.user.accountType=e,t.email&&t.email.split){const e=t.email.split("@")[1];i=l.filter((t=>e===t)).length>0}(i||["In House","Demo and Marketing"].indexOf(e)>-1)&&(this.user.internalUser=!0)}logPageView(t,e={},i={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;const n=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!n.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;const s=this.preProcess(e,i);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));const o=n.map((e=>e.logPageView(t,s)));return Promise.all(o).then(),!0}logEvent(t,e={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;const i=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!i.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;const n=this.preProcess(t,e);this.debug&&this.logger.info("Tracking event",JSON.stringify(n));const s=i.map((t=>t.logEvent(n)));return Promise.all(s).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,e={}){const i={name:t,start:Date.now(),steps:[],workflowId:Math.floor(17592186044416*(1+Math.random())).toString(16)};this.saveWorkflow(i);const n=Object.assign({name:t,step:"start"},e);return this.logWorkflow(n),i}stepWorkflow(t,e,i={}){const n=Object.assign({name:t,step:e,details:"string"==typeof i?i:i.details},i);this.logWorkflow(n)}endWorkflow(t,e={}){const i=Object.assign({name:t,step:"finish"},e);this.logWorkflow(i)}cancelWorkflow(t,e={}){const i=Object.assign({name:t,step:"cancel"},e);this.logWorkflow(i)}getWorkflow(t){const e=r.get(`TELEMETRY-WORKFLOW:${t}`);if(e){if(Date.now()-e.start<18e5)return e;this.deleteWorkflow(e)}}saveWorkflow(t){r.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){r.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let e=this.getWorkflow(t.name);e||(this.startWorkflow(t.name),e=this.getWorkflow(t.name)),e.steps.push(t.step),e.duration=(Date.now()-e.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(e):this.saveWorkflow(e);const i=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:e.duration,workflowId:e.workflowId});this.logEvent(i)}preProcess(t={},e={}){let i={};return this.user&&(i={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),i)).reduce((n=e.omitComplexData,s=this.logger,function(t,[e,i]){return function(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&"string"==typeof t.valueOf()}(i)?t[e]=i:n||(s.warn(`You are trying to log a non-primitive value, ${e}:${JSON.stringify(i)}. This will get logged as [object Object]`),t[e]=i),t}),{});var n,s}disableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!0,null===(e=i.disable)||void 0===e||e.call(i))}enableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!1,null===(e=i.enable)||void 0===e||e.call(i))}}"function"==typeof SuppressedError&&SuppressedError;class h{constructor(t){var e;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},"undefined"!=typeof window&&!(null===(e=null==t?void 0:t.measurementIds)||void 0===e?void 0:e.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return this._getScripts().map((t=>{const e=[];return["src","id","dataAttribute","type"].forEach((i=>{let n=i;"dataAttribute"===i&&(n="data-esri-telemetry"),t[i]&&e.push(`${n}="${t[i]}"`)})),["async","defer"].forEach((i=>{t[i]&&e.push(`${i}`)})),`<script ${e.join(" ")}>${t.body?t.body:""}<\/script>`})).join("")}async init(){if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map((t=>{return e=t,new Promise(((t,i)=>{e.onload=t,e.onerror=i;const n=function(t){const{body:e,src:i,id:n,dataAttribute:s,section:o="body",type:r="text/javascript",async:l=!1,defer:d=!1,onload:h,onerror:u}=t;if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");if(function(t){const{id:e,dataAttribute:i}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${a}="${i}"]`)}(t))return void console.log(`script (${n||s}) is already present, skipping`);const p=function({id:t,dataAttribute:e,type:i,async:n,defer:s,body:o,src:r,onload:c,onerror:l}){const d=document.createElement("script");return t&&(d.id=t),e&&d.setAttribute(`data-${a}`,e),r&&(d.src=r),o&&(d.innerText=o),d.type=i,d.async=n,d.defer=s,c&&(d.onload=c),l&&(d.onerror=l),d}({id:n,dataAttribute:s,type:r,async:l,defer:d,body:e,src:i,onload:h,onerror:u});return"body"===o?document.body.appendChild(p):document.head.appendChild(p)}(e);n&&!e.body||t()}));var e}))),this.injectConfig()}logPageView(t,e={}){const i=this.buildCustomParams(e),n=Object.assign({page_title:t||window.location.pathname},i);return window.gtag("event","page_view",n),!0}logEvent(t){let{action:e}=t,i=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i}(t,["action"]);const n=e||"other",s=this.buildCustomParams(i);return window.gtag("event",n,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=!0}))}enable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=void 0}))}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);const t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach((e=>{window.gtag("config",e,t)}))}buildCustomParams(t){let e,{category:i,label:n}=t;return e=this.verifyCustomDimensionAndMetrics(t),i&&(e=Object.assign(Object.assign({},e),{event_category:i})),n&&(e=Object.assign(Object.assign({},e),{event_label:n})),e}verifyCustomDimensionAndMetrics(t){const e=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),i=Object.values(e);return Object.keys(t).filter((t=>i.includes(t))).reduce(((e,i)=>Object.assign(e,{[i]:t[i]})),{})}createDimensionsAndMetricsCustomMap(t={},e={}){const i=this.createMetricCustomMap(e),n=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},i),n)}createMetricCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`metric${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}createDimensionCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`dimension${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}}const u=class{constructor(i){t(this,i),this.consentGranted=e(this,"consentGranted",7),this._consentGranted=!1,this._loaded=!1,this.firstUseVar=void 0,this.measurementIds=void 0,this.portal=void 0,this._shouldRender=void 0,this._translations=void 0}async getInstance(){return"true"===localStorage.getItem(this.firstUseVar)?(await this._init(),this._telemetryInstance):void 0}async componentWillLoad(){await this._getTranslations(),this._shouldRender=null===localStorage.getItem(this.firstUseVar)}render(){return this._shouldRender?i(n,null,i("calcite-panel",{class:"consent-panel calcite-mode-dark",id:"cookie-policy"},i("div",{class:"cookie-consent-popup-container"},i("div",{id:"cookie-policy-description-top",tabindex:"-1"},i("p",null,this._translations.dearVisitor),i("p",null,this._translations.useAnalytics)),i("div",{class:"button-container"},i("calcite-button",{appearance:"solid",class:"padding-end-1",kind:"brand",onClick:()=>this._refuse()},this._translations.refuseAnalytics),i("calcite-button",{appearance:"solid",kind:"brand",onClick:()=>this._accept()},this._translations.acceptAnalytics)),i("div",null,i("p",null,this._translations.moreInfo," ",i("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.protectionPolicy),this._translations.our," ",i("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiePolicy," "),this._translations.andOur," ",i("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiesInventory)))))):void 0}async componentDidLoad(){this.consentGranted.emit({granted:"true"===localStorage.getItem(this.firstUseVar)})}async _init(){var t;if(!this._loaded&&(null===(t=this.measurementIds)||void 0===t?void 0:t.length)>0&&this.portal){const t=new h({measurementIds:this.measurementIds});this._telemetryInstance=new d({plugins:[t],portal:this.portal}),await this._telemetryInstance.init(),this._loaded=!0}}_accept(){this._consentGranted=!0,this._handleConsent()}_refuse(){this._consentGranted=!1,this._handleConsent()}_handleConsent(){this._shouldRender=!1,localStorage.setItem(this.firstUseVar,this._consentGranted.toString()),this.consentGranted.emit({granted:this._consentGranted})}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return s(this)}};u.style=":host{display:block}.consent-panel{position:fixed;display:block;z-index:5000;bottom:0;left:0;width:100%;height:auto;text-align:center}.cookie-consent-popup-container{position:relative;display:block;bottom:0;left:0;width:100%;margin:0;padding-top:1rem;padding-bottom:1rem;transition:transform 0.5s ease-out 0s;background-color:rgba(51, 51, 51, 0.95);color:#fff}.button-container{position:static;margin-bottom:1rem;display:flex;justify-content:center;flex-wrap:wrap}.padding-end-1{padding-inline-end:1rem}.link-text{--calcite-ui-text-link:var(--calcite-color-text-inverse);--calcite-ui-brand:var(--calcite-color-text-inverse);--calcite-color-text-link:var(--calcite-color-text-inverse);--calcite-color-brand-underline:var(--calcite-color-text-inverse);--calcite-color-brand:var(--calcite-color-text-inverse)}";export{u as consent_manager}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import"./p-
|
6
|
+
import"./p-6a68306c.js";const t=new Map([["ar","ar"],["bg","bg"],["bs","bs"],["ca","ca"],["cs","cs"],["da","da"],["de","de"],["el","el"],["en","en"],["es","es"],["et","et"],["fi","fi"],["fr","fr"],["he","he"],["hr","hr"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["nb","nb"],["nl","nl"],["pl","pl"],["pt-br","pt-BR"],["pt-pt","pt-PT"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sr","sr"],["sv","sv"],["th","th"],["tr","tr"],["uk","uk"],["vi","vi"],["zh-cn","zh-CN"],["zh-hk","zh-HK"],["zh-tw","zh-TW"]]);function r(t){return function(t){const r=t.closest("[dir]");return r?r.getAttribute("dir"):"ltr"}(t)}export{r as g,t as l}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-fa1ceaf9.js";import{b as o,c as n,a as h}from"./p-c1cf3ebc.js";import{l as c,g as d}from"./p-ffd41e25.js";import{e as r,h as p}from"./p-996c1ac5.js";import{s as g}from"./p-c4ddb206.js";import{c as b,r as m}from"./p-00291b93.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-8c6d9b5a.js";import"./p-3d7cff5e.js";import"./p-a230b270.js";import"./p-a0300d31.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,{key:"329b485ac7b134bf2ae1758c07a2ca7988706cb5"},e("calcite-shell",{key:"d8280c38878b047cdaa55beb31d8895a420f3661"},e("calcite-action-bar",{key:"a83fcca2612f13b3f0220b3015a96750223f016b",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===h.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${a}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${a}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),e("div",{class:`padding-top-sides-1 ${i}`},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),e("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),e("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},e("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==h.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await d(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{r as t,c as i,h as e,H as s,g as a}from"./p-fa1ceaf9.js";import{c as o}from"./p-e6c9e6af.js";import{C as r}from"./p-c41997d5.js";import{g as n}from"./p-ffd41e25.js";import{d as h,p as l}from"./p-996c1ac5.js";import{s as c}from"./p-c4ddb206.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-c1cf3ebc.js";import"./p-8c6d9b5a.js";const d=class{constructor(e){t(this,e),this.calciteInternalDropdownItemChange=i(this,"calciteInternalDropdownItemChange",6),this.updateItems=()=>{Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach((t=>t.selectionMode=this.selectionMode))},this.mutationObserver=o("mutation",(()=>this.updateItems())),this.groupTitle=void 0,this.scale="m",this.selectionMode="single"}handlePropsChange(){this.updateItems()}connectedCallback(){var t;this.updateItems(),null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0})}componentWillLoad(){this.groupPosition=this.getGroupPosition()}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}render(){const t=this.groupTitle?e("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null,i=this.groupPosition>0?e("div",{class:"dropdown-separator",role:"separator"}):null;return e(s,{key:"c1b662afcbb612d775cea66edb949d71f5f63167","aria-label":this.groupTitle,role:"group"},e("div",{key:"cdfdb0919b1b6006f69f7fbcda0c16c2beefec5e",class:{[r.container]:!0,[`${r.container}--${this.scale}`]:!0}},i,t,e("slot",{key:"166c8236f3315d2f038f61b0619270d2bd9b344a"})))}updateActiveItemOnChange(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{selectionMode:["handlePropsChange"]}}};d.style=":host{position:relative;display:block}.container{text-align:start}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const p=class{constructor(e){t(this,e),this.idsFound=i(this,"idsFound",7),this.noLayersFound=i(this,"noLayersFound",7),this.layerSelectionChange=i(this,"layerSelectionChange",7),this.defaultLayerHonored=!1,this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.height=void 0,this.isMobile=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=void 0,this.showSingleLayerAsLabel=!1,this.type="select",this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=void 0,this.ids=[],this.selectedName="",this._translations=void 0}async mapViewWatchHandler(){await this._setLayers(),this.ids.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async componentWillLoad(){await this._getTranslations(),await this._setLayers(),(this.ids.length>0||1===this.selectedIds.length)&&this.layerSelectionChange.emit(1===this.selectedIds.length?[this.selectedIds[0]]:[this.ids[0]])}render(){const t="map-layer-picker";let i=this.height>0?{height:`${this.height.toString()}px`}:{};return i=Object.assign(Object.assign({},i),{display:this.display}),e(s,{key:"a96e93924530d926c5e10dd2f7212f3f8c1cbe3c"},e("div",{key:"4b96a73e43e86c31291e4ac60eb15976b01de6a2",class:"map-layer-picker-container",style:i},e("div",{key:"e75c61d8ce0853814dd3903b9e1952cc613b6fbb",class:"map-layer-picker",style:i},this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():"combobox"===this.type?this._getCombobox(t):"select"===this.type?this._getSelect(t):this._getDropdown(t):this._getInvalidPlaceholder())))}async componentDidLoad(){if(this.ids.length>0||1===this.selectedIds.length){const t=1===this.selectedIds.length?this.selectedIds[0]:this.ids[0];"select"===this.type?this._layerElement.value=t:"dropdown"===this.type&&(this.selectedName=Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t].name:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t].name:"")}}_getInvalidPlaceholder(){return e("div",null,e("calcite-notice",{class:"height-100",icon:"exclamation-mark-triangle",id:"no-valid-layers",kind:"danger",open:!0},e("div",{slot:"message"},this._translations.noLayersFound)),e("calcite-tooltip",{label:this._translations.enableEditUpdate,placement:"bottom","reference-element":"no-valid-layers"},e("span",null,this._translations.enableEditUpdate)))}_getSingleLayerPlaceholder(){return e("div",{class:"layer-picker-label-container cursor-default"},e("calcite-icon",{icon:"layers",scale:"s"}),e("calcite-label",{class:"no-bottom-margin padding-start-1"},this.selectedName))}_getSelect(t){return e("calcite-select",{id:t,label:"",onCalciteSelectChange:()=>this._layerSelectionChange(),ref:t=>{this._layerElement=t},scale:this.scale},this._getMapLayerOptions())}_getCombobox(t){return e("calcite-combobox",{clearDisabled:!0,id:t,label:"",onCalciteComboboxChange:()=>this._layerSelectionChange(),"placeholder-icon":this.placeholderIcon,ref:t=>{this._layerElement=t},scale:this.scale,"selection-mode":"single"},this._getMapLayerOptions())}_getDropdown(t){return e("calcite-dropdown",{class:"layer-picker-dropdown",onCalciteDropdownBeforeClose:()=>this._isDropdownOpen=!1,onCalciteDropdownBeforeOpen:()=>this._isDropdownOpen=!0},this.isMobile?this._getDropdownButton():this._getActionDropdownButton(t),e("calcite-dropdown-group",{"selection-mode":"single"},this._getMapLayerOptions()))}_getActionDropdownButton(t){return e("calcite-action",{id:t,slot:"trigger",text:""},this._getDropdownButton())}_getDropdownButton(){return e("calcite-button",{alignment:"icon-end-space-between",appearance:this.appearance,class:this.isMobile?"":"max-width-350",iconEnd:this._isDropdownOpen?"chevron-up":"chevron-down",iconStart:"layers",kind:"neutral",slot:this.isMobile?"trigger":"",width:"full"},e("div",null,this.selectedName))}_getMapLayerOptions(){return this.ids.reduce(((t,i)=>(this._validLayer(i)?t.push(this._getItem(i,"layer")):this._validTable(i)&&t.push(this._getItem(i,"table")),t)),[])}_getItem(t,i){const s="layer"===i?this._layerNameHash[t]:this._tableNameHash[t],a=!!this.onlyShowUpdatableLayers&&!s.supportsUpdate,o=s.name,r=this.selectedIds.indexOf(t)>-1;return"combobox"===this.type?e("calcite-combobox-item",{disabled:a,selected:r,textLabel:o,value:t}):"select"===this.type?e("calcite-option",{disabled:a,label:o,selected:r,value:t}):e("calcite-dropdown-group",{class:a?"disabled":"",selectionMode:a?"none":"single"},e("calcite-dropdown-item",{onClick:a?void 0:()=>{this._setSelectedLayer(t)},selected:r},o))}_setSelectedLayer(t){let i;this.defaultLayerId&&!this.defaultLayerHonored&&(i=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=void 0!==i,t=this.defaultLayerHonored?this.defaultLayerId:t),i=i||this._getLayerFromHash(t),this.selectedName=null==i?void 0:i.name,this.selectedIds=[t],this.layerSelectionChange.emit(this.selectedIds)}_getLayerFromHash(t){return Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t]:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();const t=this.onlyShowUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash),i=this.showTables?this.onlyShowUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[];this.ids=[...t.reverse().filter((t=>{var i;return!((null===(i=this.enabledLayerIds)||void 0===i?void 0:i.length)>0)||this.enabledLayerIds.reverse().indexOf(t)>-1})),...i.reverse().filter((t=>{var i;return!((null===(i=this.enabledTableIds)||void 0===i?void 0:i.length)>0)||this.enabledTableIds.reverse().indexOf(t)>-1}))],this.idsFound.emit({layerIds:t,tableIds:i})}}_getEditableIds(t){return Object.keys(t).reduce(((i,e)=>(t[e].supportsUpdate&&i.push(e),i)),[])}async _initLayerTableHash(){this._layerNameHash=await h(this.mapView,this.onlyShowUpdatableLayers),this._tableNameHash=this.showTables?await l(this.mapView,this.onlyShowUpdatableLayers):{}}_validLayer(t){var i;const e=null===(i=this._layerNameHash[t])||void 0===i?void 0:i.name;return e&&Object.keys(c.managedLayers).indexOf(e)<0&&(!(this.enabledLayerIds.length>0)||this.enabledLayerIds.indexOf(t)>-1)}_validTable(t){var i;const e=null===(i=this._tableNameHash[t])||void 0===i?void 0:i.name,s=e&&this.showTables;return s?c.managedTables.indexOf(e)<0&&(!(this.enabledTableIds.length>0)||this.enabledTableIds.indexOf(t)>-1):s}_layerSelectionChange(){const t=Array.isArray(this._layerElement.value)?this._layerElement.value:[this._layerElement.value];JSON.stringify(t)!==JSON.stringify([""])&&(this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom:0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}";export{d as calcite_dropdown_group,p as map_layer_picker}
|