@esri/solutions-components 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/buffer-tools/resources_ar.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_bg.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_bs.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_ca.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_cs.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_da.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_de.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_el.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_es.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_et.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_fi.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_fr.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_he.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_hr.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_hu.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_id.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_it.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_ja.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_ko.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_lt.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_lv.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_nb.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_nl.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_pl.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_pt-BR.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_pt-PT.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_ro.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_ru.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_sk.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_sl.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_sr.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_sv.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_th.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_tr.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_uk.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_vi.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_zh-CN.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_zh-HK.json +4 -4
- package/dist/assets/t9n/buffer-tools/resources_zh-TW.json +4 -4
- package/dist/assets/t9n/map-draw-tools/resources_ar.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_bg.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_bs.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_ca.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_cs.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_da.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_de.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_el.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_es.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_et.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_fi.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_fr.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_he.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_hr.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_hu.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_id.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_it.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_ja.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_ko.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_lt.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_lv.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_nb.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_nl.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_pl.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_pt-BR.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_pt-PT.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_ro.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_ru.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_sk.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_sl.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_sr.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_sv.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_th.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_tr.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_uk.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_vi.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_zh-CN.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_zh-HK.json +3 -3
- package/dist/assets/t9n/map-draw-tools/resources_zh-TW.json +3 -3
- package/dist/assets/t9n/map-select-tools/resources_ar.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_bg.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_bs.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_ca.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_cs.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_da.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_de.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_el.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_es.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_et.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_fi.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_fr.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_he.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_hr.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_hu.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_id.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_it.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_ja.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_ko.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_lt.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_lv.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_nb.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_nl.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_pl.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_pt-BR.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_pt-PT.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_ro.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_ru.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_sk.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_sl.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_sr.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_sv.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_th.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_tr.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_uk.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_vi.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_zh-CN.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_zh-HK.json +13 -11
- package/dist/assets/t9n/map-select-tools/resources_zh-TW.json +13 -11
- package/dist/assets/t9n/pdf-download/resources_ar.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_bg.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_bs.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_ca.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_cs.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_da.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_de.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_el.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_es.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_et.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_fi.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_fr.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_he.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_hr.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_hu.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_id.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_it.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_ja.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_ko.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_lt.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_lv.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_nb.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_nl.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_pl.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_ro.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_ru.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_sk.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_sl.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_sr.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_sv.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_th.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_tr.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_uk.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_vi.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/pdf-download/resources_zh-TW.json +1 -1
- package/dist/assets/t9n/public-notification/resources.json +11 -9
- package/dist/assets/t9n/public-notification/resources_ar.json +39 -38
- package/dist/assets/t9n/public-notification/resources_bg.json +39 -38
- package/dist/assets/t9n/public-notification/resources_bs.json +39 -38
- package/dist/assets/t9n/public-notification/resources_ca.json +39 -38
- package/dist/assets/t9n/public-notification/resources_cs.json +39 -38
- package/dist/assets/t9n/public-notification/resources_da.json +39 -38
- package/dist/assets/t9n/public-notification/resources_de.json +39 -38
- package/dist/assets/t9n/public-notification/resources_el.json +39 -38
- package/dist/assets/t9n/public-notification/resources_en.json +11 -9
- package/dist/assets/t9n/public-notification/resources_es.json +39 -38
- package/dist/assets/t9n/public-notification/resources_et.json +39 -38
- package/dist/assets/t9n/public-notification/resources_fi.json +39 -38
- package/dist/assets/t9n/public-notification/resources_fr.json +39 -38
- package/dist/assets/t9n/public-notification/resources_he.json +39 -38
- package/dist/assets/t9n/public-notification/resources_hr.json +39 -38
- package/dist/assets/t9n/public-notification/resources_hu.json +39 -38
- package/dist/assets/t9n/public-notification/resources_id.json +39 -38
- package/dist/assets/t9n/public-notification/resources_it.json +39 -38
- package/dist/assets/t9n/public-notification/resources_ja.json +39 -38
- package/dist/assets/t9n/public-notification/resources_ko.json +39 -38
- package/dist/assets/t9n/public-notification/resources_lt.json +39 -38
- package/dist/assets/t9n/public-notification/resources_lv.json +39 -38
- package/dist/assets/t9n/public-notification/resources_nb.json +39 -38
- package/dist/assets/t9n/public-notification/resources_nl.json +39 -38
- package/dist/assets/t9n/public-notification/resources_pl.json +39 -38
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +39 -38
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +39 -38
- package/dist/assets/t9n/public-notification/resources_ro.json +39 -38
- package/dist/assets/t9n/public-notification/resources_ru.json +39 -38
- package/dist/assets/t9n/public-notification/resources_sk.json +39 -38
- package/dist/assets/t9n/public-notification/resources_sl.json +39 -38
- package/dist/assets/t9n/public-notification/resources_sr.json +39 -38
- package/dist/assets/t9n/public-notification/resources_sv.json +39 -38
- package/dist/assets/t9n/public-notification/resources_th.json +39 -38
- package/dist/assets/t9n/public-notification/resources_tr.json +39 -38
- package/dist/assets/t9n/public-notification/resources_uk.json +39 -38
- package/dist/assets/t9n/public-notification/resources_vi.json +39 -38
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +39 -38
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +39 -38
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +39 -38
- package/dist/assets/t9n/refine-selection/resources.json +3 -1
- package/dist/assets/t9n/refine-selection/resources_en.json +3 -1
- package/dist/cjs/calcite-input-text_5.cjs.entry.js +3 -3
- package/dist/cjs/{downloadUtils-8d66f03e.js → downloadUtils-4ef4b28b.js} +1 -9
- package/dist/cjs/{index.es-4f5dfcc6.js → index.es-cbe67d5b.js} +1 -1
- package/dist/cjs/layer-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +2 -2
- package/dist/collection/components/refine-selection/refine-selection.css +21 -0
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/utils/downloadUtils.js +0 -8
- package/dist/collection/utils/downloadUtils.ts +0 -8
- package/dist/components/downloadUtils.js +0 -8
- package/dist/components/public-notification.js +2 -2
- package/dist/components/refine-selection2.js +36 -24
- package/dist/esm/calcite-input-text_5.entry.js +3 -3
- package/dist/esm/{downloadUtils-b9785635.js → downloadUtils-2ebeb46d.js} +1 -9
- package/dist/esm/{index.es-70994c40.js → index.es-6dd27a48.js} +1 -1
- package/dist/esm/layer-table_2.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-be943993.js → p-657caece.js} +2 -2
- package/dist/solutions-components/{p-c3e3d0bb.entry.js → p-6f27bea2.entry.js} +2 -2
- package/dist/solutions-components/{p-5d5e10d4.js → p-ad82c173.js} +1 -1
- package/dist/solutions-components/p-db82a9ce.entry.js +6 -0
- package/dist/solutions-components/{p-10336554.entry.js → p-deb90ce7.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +0 -8
- package/package.json +1 -1
- package/dist/solutions-components/p-f66a7ea7.entry.js +0 -6
- package/dist/solutions-components_commit.txt +0 -8
@@ -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 i,c as t,h as e,H as s,g as a}from"./p-f8be5d5f.js";import{a as n,e as o,g as l,b as r}from"./p-dd3d070d.js";import{s as c,c as h,d,H as p}from"./p-bf0c6866.js";import{u}from"./p-c0d3537c.js";import{c as m,d as g,g as b}from"./p-24cb0a19.js";import{s as v,a as f,c as y}from"./p-5b5ad89d.js";import{c as w,d as x}from"./p-0d207a2c.js";import{c as k}from"./p-631b6461.js";import{C as z}from"./p-062f1fe7.js";import{u as _,c as L,d as S,s as D}from"./p-6bbf6f62.js";import{c as I,d as C}from"./p-a4f08a98.js";import{K as P}from"./p-7f76303e.js";import{l as M}from"./p-d7ddd3a2.js";import{g as j,h as A,q as N,a as O,b as G,c as H,d as W,e as E}from"./p-390d7de8.js";import{c as F,e as R,f as V}from"./p-92de1de9.js";import{s as T}from"./p-a29ba58a.js";import{a as q,g as Y}from"./p-fc2277fe.js";import{d as $,a as B}from"./p-
|
6
|
+
import{r as i,c as t,h as e,H as s,g as a}from"./p-f8be5d5f.js";import{a as n,e as o,g as l,b as r}from"./p-dd3d070d.js";import{s as c,c as h,d,H as p}from"./p-bf0c6866.js";import{u}from"./p-c0d3537c.js";import{c as m,d as g,g as b}from"./p-24cb0a19.js";import{s as v,a as f,c as y}from"./p-5b5ad89d.js";import{c as w,d as x}from"./p-0d207a2c.js";import{c as k}from"./p-631b6461.js";import{C as z}from"./p-062f1fe7.js";import{u as _,c as L,d as S,s as D}from"./p-6bbf6f62.js";import{c as I,d as C}from"./p-a4f08a98.js";import{K as P}from"./p-7f76303e.js";import{l as M}from"./p-d7ddd3a2.js";import{g as j,h as A,q as N,a as O,b as G,c as H,d as W,e as E}from"./p-390d7de8.js";import{c as F,e as R,f as V}from"./p-92de1de9.js";import{s as T}from"./p-a29ba58a.js";import{a as q,g as Y}from"./p-fc2277fe.js";import{d as $,a as B}from"./p-657caece.js";import"./p-d1bcb992.js";import"./p-89e6a976.js";import"./p-4ff653eb.js";import"./p-e1a4994d.js";
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
@@ -14,4 +14,4 @@ import{r as i,c as t,h as e,H as s,g as a}from"./p-f8be5d5f.js";import{a as n,e
|
|
14
14
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
15
15
|
* v1.2.0
|
16
16
|
*/
|
17
|
-
const J="actions-end",U=class{constructor(e){i(this,e),this.calciteNoticeClose=t(this,"calciteNoticeClose",6),this.calciteNoticeOpen=t(this,"calciteNoticeOpen",6),this.close=()=>{this.open=!1,this.calciteNoticeClose.emit()},this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=o(P,this.icon,this.kind)}connectedCallback(){I(this),w(this),L(this)}disconnectedCallback(){C(this),x(this),S(this)}async componentWillLoad(){v(this),this.requestedIcon=o(P,this.icon,this.kind),await D(this)}componentDidLoad(){f(this)}render(){const{el:i}=this,t=e("button",{"aria-label":this.messages.close,class:"notice-close",onClick:this.close,ref:i=>this.closeButton=i},e("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),s=n(i,J);return e("div",{class:"container"},this.requestedIcon?e("div",{class:"notice-icon"},e("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"l"===this.scale?"m":"s"})):null,e("div",{class:"notice-content"},e("slot",{name:"title"}),e("slot",{name:"message"}),e("slot",{name:"link"})),s?e("div",{class:"actions-end"},e("slot",{name:J})):null,this.closable?t:null)}async setFocus(){await y(this);const i=this.el.querySelector("calcite-link");(this.closeButton||i)&&(i?i.setFocus():this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){_(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};U.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:none;inline-size:100%;background-color:var(--calcite-ui-foreground-1);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;max-block-size:0;text-align:start;-webkit-border-start:0px solid;border-inline-start:0px solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host{display:flex}:host([open]) .container{pointer-events:auto;display:flex;max-block-size:100%;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:var(--calcite-notice-spacing-token-small);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-notice-spacing-token-large);padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.notice-close:active{background-color:var(--calcite-ui-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-ui-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-ui-brand)}:host([kind=info]) .container{border-color:var(--calcite-ui-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-ui-info)}:host([kind=danger]) .container{border-color:var(--calcite-ui-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-ui-danger)}:host([kind=success]) .container{border-color:var(--calcite-ui-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-ui-success)}:host([kind=warning]) .container{border-color:var(--calcite-ui-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-ui-warning)}";const Q=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.distance,download:!0,unit:this._bufferTools.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}distanceChanged(i){this._distanceChanged(i.detail)}unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){return this._init()}render(){return e(s,null,this._getMapLayerPicker(),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("div",{class:"search-widget",ref:i=>{this._searchElement=i}}),e("div",{class:"padding-top-1"},e("map-draw-tools",{active:!0,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this._getBufferOptions(),this._getUseLayerFeaturesOptions(),this._getNumSelected()),e("div",{class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){var i,t;const s=this._searchDistanceEnabled?"search-distance":"div-not-visible",a="number"==typeof(null===(i=this.selectionSet)||void 0===i?void 0:i.distance)?this.selectionSet.distance:this.defaultBufferDistance;return e("div",null,e("div",{class:"padding-top-1 display-flex"},e("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},e("div",{class:"tooltip-container"},this._translations.searchDistance,e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"search-distance-icon",scale:"s"}))),e("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},e("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),e("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),e("div",{class:s},e("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:a,geometries:this.geometries,onBufferComplete:i=>this._bufferComplete(i),ref:i=>this._bufferTools=i,unit:(null===(t=this.selectionSet)||void 0===t?void 0:t.unit)||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return e("div",null,e("div",{class:"padding-top-1 display-flex"},e("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},e("div",{class:"tooltip-container"},this._translations.useLayerFeatures,e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"use-layer-features-icon",scale:"s"}))),e("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},e("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),e("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),e("div",{class:i+" padding-top-1"},e("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedLayerIds:this.layerViews.map((i=>i.layer.id)),selectionMode:"single"})))}_getNumSelected(){const i=q(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return e("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?e("div",null,e("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):e("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),e("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return e("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},e("calcite-label",{class:"font-bold"},this._translations.listName,e("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,e("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>this._inputLayerSelectionChange(i),selectedLayerIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],selectionMode:"single"})))}async _initModules(){const[i,t,e,s,a]=await M(["esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this.GraphicsLayer=i,this.Graphic=t,this.Search=e,this._geometryEngine=s,this.FeatureLayer=a}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),this._initSearchWidget()}async _initSelectionSet(){var i,t,e,s,a;this.selectionSet&&(this._searchTerm=null===(i=this.selectionSet.searchResult)||void 0===i?void 0:i.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...(null===(t=this.selectionSet)||void 0===t?void 0:t.geometries)||[]],this._graphics=[...(null===(e=this.selectionSet)||void 0===e?void 0:e.graphics)||[]],this._selectionLabel=null===(s=this.selectionSet)||void 0===s?void 0:s.label,this._useLayerFeaturesEnabled||null===(a=this._drawTools)||void 0===a||a.updateGraphics(),await j(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}_initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t=Object.assign({view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm},i);this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{var t,e;if(i.result){this._searchResult=i.result;const s=(null===(e=null===(t=i.source)||void 0===t?void 0:t.layer)||void 0===e?void 0:e.id)&&i.source.layer.id===this.selectLayerView.layer.id,a=s?[i.result.feature.getObjectId()]:void 0;this._workflowType=F.SEARCH,this._updateLabel();const n=[i.result.feature];this._updateSelection(n,s,a),this._drawTools.graphics=n,this._drawTools.updateGraphics()}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}))}}_searchClearLabel(){var i;return(null===(i=this._searchResult)||void 0===i?void 0:i.name)&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=null==i?void 0:i.sources;return(null==e?void 0:e.length)>0?(i.includeDefaultSources=!1,e.forEach((i=>{var e,s;if(i.hasOwnProperty("layer")){const a=i,n=null===(e=a.layer)||void 0===e?void 0:e.id,o=n?t.map.findLayerById(n):null,l=null===(s=null==a?void 0:a.layer)||void 0===s?void 0:s.url;o?a.layer=o:l&&(a.layer=new this.FeatureLayer(l))}})),null==e||e.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===(null==t?void 0:t.name)&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i=Object.assign(Object.assign({},i),{includeDefaultSources:!0}),i}_initGraphicsLayer(){const i=this._translations.bufferLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),T.managedLayers.push(i);const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this._useLayerFeaturesEnabled?F.SELECT:F.SKETCH,this._workflowType===F.SKETCH&&this._drawTools.updateGraphics(),this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>{var e;return(null===(e=null==t?void 0:t.layer)||void 0===e?void 0:e.objectIdField)?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i}),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){var i;return(null===(i=this._skipGeomOIDs)||void 0===i?void 0:i.length)>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){T.removeHandles(),i.length>0&&T.highlightHandles.push(await A(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await N(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=O(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){var e;this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value=""),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),T.removeHandles(),(null===(e=this._drawTools)||void 0===e?void 0:e.clear)&&(this._graphics=[],await this._drawTools.clear()),this.selectionSetChange.emit(this._selectedIds.length)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}_updateLabel(){var i,t;const e=this._selectionLabel.indexOf(this._translations.sketch)>-1,s=this._selectionLabel.indexOf(this._translations.select)>-1,a=this._selectionLabel.indexOf(null===(i=this._searchResult)||void 0===i?void 0:i.name)>-1,n=this._workflowType===F.SEARCH?null===(t=this._searchResult)||void 0===t?void 0:t.name:this._workflowType===F.SELECT?this._translations.select:this._translations.sketch,o=this._unit?this._unit:this._bufferTools.unit,l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=e||s||a||!this._selectionLabel?`${n} ${l} ${o}`:this._selectionLabel,this._labelName.value=this._selectionLabel}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>G(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){var t;const e=(null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.length)>0?i.detail[0]:"";this.selectLayerView&&e===this.selectLayerView.layer.id||(this.selectLayerView=await G(this.mapView,e),this._updateLabel(),await this._highlightWithOIDsOrGeoms())}_distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],H(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{var t;const s=i.geometry;i.symbol="point"===s.type?this.sketchPointSymbol:"polyline"===s.type?this.sketchLineSymbol:"polygon"===s.type?this.sketchPolygonSymbol:void 0,e=(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.hasOwnProperty("objectIdField"))||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.title===this.selectLayerView.layer.title&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}get el(){return a(this)}static get watchers(){return{geometries:["watchGeometriesHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};Q.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}';const X=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),Z=class{constructor(t){i(this,t),this.disabled=!1,this._translations=void 0}async downloadCSV(i,t,e=!0){Object.keys(i).forEach((s=>{const a=i[s];$(a.selectionSetNames,a.layerView.layer,a.ids,!0,t,e)}))}async downloadPDF(i,t=!1,e="",s=""){Object.keys(i).forEach((a=>{const n=i[a];B(n.selectionSetNames,n.layerView.layer,n.ids,this._labelInfoElement.selectedOption.value,t,e,s)}))}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return e(s,null,e("calcite-select",{disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}},this._renderItems()))}async _initModules(){const[i]=await M(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t=`${i.descriptionPDF.labelWidthDisplay} x ${i.descriptionPDF.labelHeightDisplay}`;return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}_renderItems(){return(X.default||X).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).map((i=>e("calcite-option",{value:i},this._getLabelSizeText(i))))}get el(){return a(this)}};Z.style=":host{display:block}";const ii=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this._addEnabled=!0,this._refineSets=[],this._enabledLayerIds=[],this._featuresCollection={},this.addresseeLayer=void 0,this.enabledLayerIds=[],this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=R.ADD,this._refineLayer=void 0}async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){var i,t;return e(s,null,e("div",{class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},e("map-layer-picker",{enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedLayerIds:[this._refineLayer.layer.id],selectionMode:"single"})),e("div",{class:"padding-1"},e("div",{class:"padding-bottom-1"},e("calcite-segmented-control",{class:"w-100"},e("calcite-segmented-control-item",{checked:this._addEnabled,class:"w-50",onClick:()=>this._setSelectionMode(R.ADD),value:R.ADD},this._translations.add),e("calcite-segmented-control-item",{checked:!this._addEnabled,class:"w-50",onClick:()=>this._setSelectionMode(R.REMOVE),value:R.REMOVE},this._translations.remove))),e("div",null,e("map-draw-tools",{active:!0,drawMode:V.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:(null===(i=this._refineSelectionSet)||void 0===i?void 0:i.redoStack.length)>0,ref:i=>{this._drawTools=i},undoEnabled:(null===(t=this._refineSelectionSet)||void 0===t?void 0:t.undoStack.length)>0})),e("br",null),e("calcite-list",{class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){var t;const e=null===(t=i.detail)||void 0===t?void 0:t.graphics[0].geometry;this._selectFeatures(e)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{var e;const s=null===(e=null==t?void 0:t.layerView)||void 0===e?void 0:e.layer.id;return s&&i.indexOf(s)<0?i.push(s):t.workflowType===F.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===F.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await G(this.mapView,i)},t?t.refineInfos=Object.assign(Object.assign({},t.refineInfos),e):(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:F.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===R.ADD?R.REMOVE:R.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===R.ADD?R.REMOVE:R.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===F.REFINE)return t=i,!0}));let s=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{s+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[e("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",s.toString()),"non-interactive":!0}),e("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),e("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=W(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}async _selectFeatures(i){var t,e;this.selectionLoadingChange.emit(!0),this._featuresCollection[null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id]=[];const s=await H(0,null===(e=this._refineLayer)||void 0===e?void 0:e.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let a=[];Object.keys(s).forEach((i=>{var t;i===(null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id)&&(a=a.concat(s[i]))}));const n=Array.isArray(a)?a.map((i=>{var t;return i.attributes[null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.objectIdField]})):[];await this._updateIds(n,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),T.highlightHandles=await E(this.selectionSets)}_clearHighlight(){T.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const n=this._refineSelectionSet.refineInfos,o=s.layer.id,l={};l[o]={addIds:[],removeIds:[],layerView:s};const r=Object.keys(n).indexOf(o)>-1?n[o]:l[o];if(t===R.ADD)r.addIds=[...new Set([...i,...r.addIds])],r.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),r.removeIds.length>0&&(r.removeIds=r.removeIds.filter((t=>i.indexOf(t)<0)));else{const n=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==F.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const n=e.refineInfos[a];if(n.layerView.layer.id===s.layer.id&&n.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);r.removeIds=[...new Set([...n,...r.removeIds])],r.addIds=r.addIds.filter((i=>n.indexOf(i)<0)),r.removeIds.length>0&&e.push({ids:n,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==F.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>r.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[o]=r,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}get el(){return a(this)}};ii.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-ui-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}';export{K as calcite_input_text,U as calcite_notice,Q as map_select_tools,Z as pdf_download,ii as refine_selection}
|
17
|
+
const J="actions-end",U=class{constructor(e){i(this,e),this.calciteNoticeClose=t(this,"calciteNoticeClose",6),this.calciteNoticeOpen=t(this,"calciteNoticeOpen",6),this.close=()=>{this.open=!1,this.calciteNoticeClose.emit()},this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=o(P,this.icon,this.kind)}connectedCallback(){I(this),w(this),L(this)}disconnectedCallback(){C(this),x(this),S(this)}async componentWillLoad(){v(this),this.requestedIcon=o(P,this.icon,this.kind),await D(this)}componentDidLoad(){f(this)}render(){const{el:i}=this,t=e("button",{"aria-label":this.messages.close,class:"notice-close",onClick:this.close,ref:i=>this.closeButton=i},e("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),s=n(i,J);return e("div",{class:"container"},this.requestedIcon?e("div",{class:"notice-icon"},e("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"l"===this.scale?"m":"s"})):null,e("div",{class:"notice-content"},e("slot",{name:"title"}),e("slot",{name:"message"}),e("slot",{name:"link"})),s?e("div",{class:"actions-end"},e("slot",{name:J})):null,this.closable?t:null)}async setFocus(){await y(this);const i=this.el.querySelector("calcite-link");(this.closeButton||i)&&(i?i.setFocus():this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){_(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};U.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:none;inline-size:100%;background-color:var(--calcite-ui-foreground-1);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;max-block-size:0;text-align:start;-webkit-border-start:0px solid;border-inline-start:0px solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host{display:flex}:host([open]) .container{pointer-events:auto;display:flex;max-block-size:100%;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:var(--calcite-notice-spacing-token-small);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-notice-spacing-token-large);padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.notice-close:active{background-color:var(--calcite-ui-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-ui-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-ui-brand)}:host([kind=info]) .container{border-color:var(--calcite-ui-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-ui-info)}:host([kind=danger]) .container{border-color:var(--calcite-ui-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-ui-danger)}:host([kind=success]) .container{border-color:var(--calcite-ui-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-ui-success)}:host([kind=warning]) .container{border-color:var(--calcite-ui-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-ui-warning)}";const Q=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.distance,download:!0,unit:this._bufferTools.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}distanceChanged(i){this._distanceChanged(i.detail)}unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){return this._init()}render(){return e(s,null,this._getMapLayerPicker(),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("div",{class:"search-widget",ref:i=>{this._searchElement=i}}),e("div",{class:"padding-top-1"},e("map-draw-tools",{active:!0,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this._getBufferOptions(),this._getUseLayerFeaturesOptions(),this._getNumSelected()),e("div",{class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){var i,t;const s=this._searchDistanceEnabled?"search-distance":"div-not-visible",a="number"==typeof(null===(i=this.selectionSet)||void 0===i?void 0:i.distance)?this.selectionSet.distance:this.defaultBufferDistance;return e("div",null,e("div",{class:"padding-top-1 display-flex"},e("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},e("div",{class:"tooltip-container"},this._translations.searchDistance,e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"search-distance-icon",scale:"s"}))),e("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},e("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),e("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),e("div",{class:s},e("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:a,geometries:this.geometries,onBufferComplete:i=>this._bufferComplete(i),ref:i=>this._bufferTools=i,unit:(null===(t=this.selectionSet)||void 0===t?void 0:t.unit)||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return e("div",null,e("div",{class:"padding-top-1 display-flex"},e("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},e("div",{class:"tooltip-container"},this._translations.useLayerFeatures,e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"use-layer-features-icon",scale:"s"}))),e("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},e("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),e("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),e("div",{class:i+" padding-top-1"},e("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedLayerIds:this.layerViews.map((i=>i.layer.id)),selectionMode:"single"})))}_getNumSelected(){const i=q(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return e("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?e("div",null,e("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):e("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),e("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return e("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},e("calcite-label",{class:"font-bold"},this._translations.listName,e("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,e("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>this._inputLayerSelectionChange(i),selectedLayerIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],selectionMode:"single"})))}async _initModules(){const[i,t,e,s,a]=await M(["esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this.GraphicsLayer=i,this.Graphic=t,this.Search=e,this._geometryEngine=s,this.FeatureLayer=a}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),this._initSearchWidget()}async _initSelectionSet(){var i,t,e,s,a;this.selectionSet&&(this._searchTerm=null===(i=this.selectionSet.searchResult)||void 0===i?void 0:i.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...(null===(t=this.selectionSet)||void 0===t?void 0:t.geometries)||[]],this._graphics=[...(null===(e=this.selectionSet)||void 0===e?void 0:e.graphics)||[]],this._selectionLabel=null===(s=this.selectionSet)||void 0===s?void 0:s.label,this._useLayerFeaturesEnabled||null===(a=this._drawTools)||void 0===a||a.updateGraphics(),await j(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}_initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t=Object.assign({view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm},i);this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{var t,e;if(i.result){this._searchResult=i.result;const s=(null===(e=null===(t=i.source)||void 0===t?void 0:t.layer)||void 0===e?void 0:e.id)&&i.source.layer.id===this.selectLayerView.layer.id,a=s?[i.result.feature.getObjectId()]:void 0;this._workflowType=F.SEARCH,this._updateLabel();const n=[i.result.feature];this._updateSelection(n,s,a),this._drawTools.graphics=n,this._drawTools.updateGraphics()}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}))}}_searchClearLabel(){var i;return(null===(i=this._searchResult)||void 0===i?void 0:i.name)&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=null==i?void 0:i.sources;return(null==e?void 0:e.length)>0?(i.includeDefaultSources=!1,e.forEach((i=>{var e,s;if(i.hasOwnProperty("layer")){const a=i,n=null===(e=a.layer)||void 0===e?void 0:e.id,o=n?t.map.findLayerById(n):null,l=null===(s=null==a?void 0:a.layer)||void 0===s?void 0:s.url;o?a.layer=o:l&&(a.layer=new this.FeatureLayer(l))}})),null==e||e.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===(null==t?void 0:t.name)&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i=Object.assign(Object.assign({},i),{includeDefaultSources:!0}),i}_initGraphicsLayer(){const i=this._translations.bufferLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),T.managedLayers.push(i);const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this._useLayerFeaturesEnabled?F.SELECT:F.SKETCH,this._workflowType===F.SKETCH&&this._drawTools.updateGraphics(),this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>{var e;return(null===(e=null==t?void 0:t.layer)||void 0===e?void 0:e.objectIdField)?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i}),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){var i;return(null===(i=this._skipGeomOIDs)||void 0===i?void 0:i.length)>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){T.removeHandles(),i.length>0&&T.highlightHandles.push(await A(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await N(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=O(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){var e;this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value=""),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),T.removeHandles(),(null===(e=this._drawTools)||void 0===e?void 0:e.clear)&&(this._graphics=[],await this._drawTools.clear()),this.selectionSetChange.emit(this._selectedIds.length)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}_updateLabel(){var i,t;const e=this._selectionLabel.indexOf(this._translations.sketch)>-1,s=this._selectionLabel.indexOf(this._translations.select)>-1,a=this._selectionLabel.indexOf(null===(i=this._searchResult)||void 0===i?void 0:i.name)>-1,n=this._workflowType===F.SEARCH?null===(t=this._searchResult)||void 0===t?void 0:t.name:this._workflowType===F.SELECT?this._translations.select:this._translations.sketch,o=this._unit?this._unit:this._bufferTools.unit,l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=e||s||a||!this._selectionLabel?`${n} ${l} ${o}`:this._selectionLabel,this._labelName.value=this._selectionLabel}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>G(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){var t;const e=(null===(t=null==i?void 0:i.detail)||void 0===t?void 0:t.length)>0?i.detail[0]:"";this.selectLayerView&&e===this.selectLayerView.layer.id||(this.selectLayerView=await G(this.mapView,e),this._updateLabel(),await this._highlightWithOIDsOrGeoms())}_distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],H(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{var t;const s=i.geometry;i.symbol="point"===s.type?this.sketchPointSymbol:"polyline"===s.type?this.sketchLineSymbol:"polygon"===s.type?this.sketchPolygonSymbol:void 0,e=(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.hasOwnProperty("objectIdField"))||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.title===this.selectLayerView.layer.title&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}get el(){return a(this)}static get watchers(){return{geometries:["watchGeometriesHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};Q.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.tooltip-container{display:flex}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.icon{--calcite-ui-icon-color:var(--calcite-ui-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}';const X=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),Z=class{constructor(t){i(this,t),this.disabled=!1,this._translations=void 0}async downloadCSV(i,t,e=!0){Object.keys(i).forEach((s=>{const a=i[s];$(a.selectionSetNames,a.layerView.layer,a.ids,!0,t,e)}))}async downloadPDF(i,t=!1,e="",s=""){Object.keys(i).forEach((a=>{const n=i[a];B(n.selectionSetNames,n.layerView.layer,n.ids,this._labelInfoElement.selectedOption.value,t,e,s)}))}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return e(s,null,e("calcite-select",{disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}},this._renderItems()))}async _initModules(){const[i]=await M(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t=`${i.descriptionPDF.labelWidthDisplay} x ${i.descriptionPDF.labelHeightDisplay}`;return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}_renderItems(){return(X.default||X).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).map((i=>e("calcite-option",{value:i},this._getLabelSizeText(i))))}get el(){return a(this)}};Z.style=":host{display:block}";const ii=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this._addEnabled=!0,this._refineSets=[],this._enabledLayerIds=[],this._featuresCollection={},this.addresseeLayer=void 0,this.enabledLayerIds=[],this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=R.ADD,this._refineLayer=void 0}async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){var i,t;return e(s,null,e("div",{class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},e("div",{class:"display-flex"},e("calcite-label",{class:"font-bold width-full label-margin-0"},e("div",{class:"display-flex"},this._translations.inputLayer,e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"refine-input-layer",scale:"s"})),e("map-layer-picker",{enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedLayerIds:[this._refineLayer.layer.id],selectionMode:"single"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"refine-input-layer"},e("span",{class:"tooltip-message"},this._translations.inputLayerTip)))),e("div",{class:"padding-1"},e("div",{class:"padding-bottom-1"},e("calcite-segmented-control",{class:"w-100"},e("calcite-segmented-control-item",{checked:this._addEnabled,class:"w-50",onClick:()=>this._setSelectionMode(R.ADD),value:R.ADD},this._translations.add),e("calcite-segmented-control-item",{checked:!this._addEnabled,class:"w-50",onClick:()=>this._setSelectionMode(R.REMOVE),value:R.REMOVE},this._translations.remove))),e("div",null,e("map-draw-tools",{active:!0,drawMode:V.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:(null===(i=this._refineSelectionSet)||void 0===i?void 0:i.redoStack.length)>0,ref:i=>{this._drawTools=i},undoEnabled:(null===(t=this._refineSelectionSet)||void 0===t?void 0:t.undoStack.length)>0})),e("br",null),e("calcite-list",{class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){var t;const e=null===(t=i.detail)||void 0===t?void 0:t.graphics[0].geometry;this._selectFeatures(e)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{var e;const s=null===(e=null==t?void 0:t.layerView)||void 0===e?void 0:e.layer.id;return s&&i.indexOf(s)<0?i.push(s):t.workflowType===F.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===F.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await G(this.mapView,i)},t?t.refineInfos=Object.assign(Object.assign({},t.refineInfos),e):(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:F.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===R.ADD?R.REMOVE:R.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===R.ADD?R.REMOVE:R.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===F.REFINE)return t=i,!0}));let s=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{s+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[e("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",s.toString()),"non-interactive":!0}),e("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),e("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=W(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await Y(this.el);this._translations=i[0]}async _selectFeatures(i){var t,e;this.selectionLoadingChange.emit(!0),this._featuresCollection[null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id]=[];const s=await H(0,null===(e=this._refineLayer)||void 0===e?void 0:e.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let a=[];Object.keys(s).forEach((i=>{var t;i===(null===(t=this._refineLayer)||void 0===t?void 0:t.layer.id)&&(a=a.concat(s[i]))}));const n=Array.isArray(a)?a.map((i=>{var t;return i.attributes[null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.objectIdField]})):[];await this._updateIds(n,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),T.highlightHandles=await E(this.selectionSets)}_clearHighlight(){T.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const n=this._refineSelectionSet.refineInfos,o=s.layer.id,l={};l[o]={addIds:[],removeIds:[],layerView:s};const r=Object.keys(n).indexOf(o)>-1?n[o]:l[o];if(t===R.ADD)r.addIds=[...new Set([...i,...r.addIds])],r.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),r.removeIds.length>0&&(r.removeIds=r.removeIds.filter((t=>i.indexOf(t)<0)));else{const n=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==F.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const n=e.refineInfos[a];if(n.layerView.layer.id===s.layer.id&&n.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);r.removeIds=[...new Set([...n,...r.removeIds])],r.addIds=r.addIds.filter((i=>n.indexOf(i)<0)),r.removeIds.length>0&&e.push({ids:n,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==F.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>r.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[o]=r,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}get el(){return a(this)}};ii.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-ui-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-ui-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}';export{K as calcite_input_text,U as calcite_notice,Q as map_select_tools,Z as pdf_download,ii as refine_selection}
|
@@ -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{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-be943993.js";import"./p-f8be5d5f.js";import"./p-d7ddd3a2.js";import"./p-fc2277fe.js";import"./p-390d7de8.js";import"./p-92de1de9.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,P=x("".split),j=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?P(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return j(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t){return L(t)?t:void 0},F=function(t,r){return arguments.length<2?D(o[t]):o[t]&&o[t][r]},z=x({}.isPrototypeOf),_="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=o.process,X=o.Deno,q=Y&&Y.versions||X&&X.version,G=q&&q.v8;G&&(s=(n=G.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&_&&(!(n=_.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=_.match(/Chrome\/(\d+)/))&&(s=+n[1]);var U=s,V=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),H=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,Q=H?function(t){return"symbol"==typeof t}:function(t){var r=F("Symbol");return L(r)&&z(r.prototype,W(t))},Z=String,K=function(t){try{return Z(t)}catch(t){return"Object"}},J=TypeError,tt=function(t){if(L(t))return t;throw J(K(t)+" is not a function")},rt=function(t,r){var i=t[r];return O(i)?void 0:tt(i)},it=TypeError,et=Object.defineProperty,nt=function(t,r){try{et(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},st="__core-js_shared__",at=o[st]||nt(st,{}),ot=r((function(t){(t.exports=function(t,r){return at[t]||(at[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"})})),ht=Object,ut=function(t){return ht(T(t))},ct=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,r){return ct(ut(t),r)},lt=0,vt=Math.random(),dt=x(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++lt+vt,36)},yt=o.Symbol,gt=ot("wks"),mt=H?yt.for||yt:yt&&yt.withoutSetter||pt,bt=function(t){return ft(gt,t)||(gt[t]=V&&ft(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,xt=bt("toPrimitive"),Mt=function(t){var r=function(t,r){if(!I(t)||Q(t))return t;var i,e=rt(t,xt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||Q(i))return i;throw wt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw it("Can't convert object to primitive value")}(t,r)}(t,"string");return Q(r)?r:r+""},kt=o.document,St=I(kt)&&I(kt.createElement),Nt=function(t){return St?kt.createElement(t):{}},Pt=!u&&!h((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Ot=u?jt:function(t,r){if(t=C(t),r=Mt(r),Pt)try{return jt(t,r)}catch(t){}if(ft(t,r))return g(!l(y.f,t,r),t[r])},Et={f:Ot},Tt=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,At=TypeError,Rt=function(t){if(I(t))return t;throw At(Ct(t)+" is not an object")},Bt=TypeError,Lt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,It="enumerable",Dt="configurable",Ft="writable",zt=u?Tt?function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Ft in i&&!i[Ft]){var e=$t(t,r);e&&e[Ft]&&(t[r]=i.value,i={configurable:Dt in i?i[Dt]:e[Dt],enumerable:It in i?i[It]:e[It],writable:!1})}return Lt(t,r,i)}:Lt:function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),Pt)try{return Lt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Bt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},_t={f:zt},Yt=u?function(t,r,i){return _t.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Xt=Function.prototype,qt=u&&Object.getOwnPropertyDescriptor,Gt=ft(Xt,"name"),Ut={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!u||u&&qt(Xt,"name").configurable)},Vt=x(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Vt(t)});var Ht,Wt,Qt,Zt=at.inspectSource,Kt=o.WeakMap,Jt=L(Kt)&&/native code/.test(String(Kt)),tr=ot("keys"),rr=function(t){return tr[t]||(tr[t]=pt(t))},ir={},er="Object already initialized",nr=o.TypeError;if(Jt||at.state){var sr=at.state||(at.state=new(0,o.WeakMap));sr.get=sr.get,sr.has=sr.has,sr.set=sr.set,Ht=function(t,r){if(sr.has(t))throw nr(er);return r.facade=t,sr.set(t,r),r},Wt=function(t){return sr.get(t)||{}},Qt=function(t){return sr.has(t)}}else{var ar=rr("state");ir[ar]=!0,Ht=function(t,r){if(ft(t,ar))throw nr(er);return r.facade=t,Yt(t,ar,r),r},Wt=function(t){return ft(t,ar)?t[ar]:{}},Qt=function(t){return ft(t,ar)}}var or={set:Ht,get:Wt,has:Qt,enforce:function(t){return Qt(t)?Wt(t):Ht(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Wt(r)).type!==t)throw nr("Incompatible receiver, "+t+" required");return i}}},hr=r((function(t){var r=Ut.CONFIGURABLE,i=or.enforce,e=or.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ft(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ft(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ft(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ft(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Zt(this)}),"toString")})),ur=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&hr(i,s,e),e.global)n?t[r]=i:nt(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:_t.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},cr=Math.ceil,fr=Math.floor,lr=Math.trunc||function(t){var r=+t;return(r>0?fr:cr)(r)},vr=function(t){var r=+t;return r!=r||0===r?0:lr(r)},dr=Math.max,pr=Math.min,yr=function(t,r){var i=vr(t);return i<0?dr(i+r,0):pr(i,r)},gr=Math.min,mr=function(t){return t>0?gr(vr(t),9007199254740991):0},br=function(t){return mr(t.length)},wr=function(t){return function(r,i,e){var n,s=C(r),a=br(s),o=yr(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}},xr={includes:wr(!0),indexOf:wr(!1)},Mr=xr.indexOf,kr=x([].push),Sr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ft(ir,i)&&ft(e,i)&&kr(s,i);for(;r.length>n;)ft(e,i=r[n++])&&(~Mr(s,i)||kr(s,i));return s},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=Nr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return Sr(t,Pr)},Or={f:jr},Er={f:Object.getOwnPropertySymbols},Tr=x([].concat),Cr=F("Reflect","ownKeys")||function(t){var r=Or.f(Rt(t)),i=Er.f;return i?Tr(r,i(t)):r},Ar=function(t,r,i){for(var e=Cr(r),n=_t.f,s=Et.f,a=0;a<e.length;a++){var o=e[a];ft(t,o)||i&&ft(i,o)||n(t,o,s(r,o))}},Rr=/#|\.prototype\./,Br=function(t,r){var i=$r[Lr(t)];return i==Dr||i!=Ir&&(L(r)?h(r):!!r)},Lr=Br.normalize=function(t){return String(t).replace(Rr,".").toLowerCase()},$r=Br.data={},Ir=Br.NATIVE="N",Dr=Br.POLYFILL="P",Fr=Br,zr=Et.f,_r=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||nt(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=zr(i,e))&&a.value:i[e],!Fr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Ar(s,n)}(t.sham||n&&n.sham)&&Yt(s,"sham",!0),ur(i,e,s,t)}},Yr="undefined"!=typeof process&&"process"==S(process),Xr=String,qr=TypeError,Gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Rt(i),function(t){if("object"==typeof t||L(t))return t;throw qr("Can't set "+Xr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Ur=_t.f,Vr=bt("toStringTag"),Hr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ft(t,Vr)&&Ur(t,Vr,{configurable:!0,value:r})},Wr=bt("species"),Qr=TypeError,Zr={};Zr[bt("toStringTag")]="z";var Kr="[object z]"===String(Zr),Jr=bt("toStringTag"),ti=Object,ri="Arguments"==S(function(){return arguments}()),ii=Kr?S: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=ti(t),Jr))?i:ri?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ei=function(){},ni=[],si=F("Reflect","construct"),ai=/^\s*(?:class|function)\b/,oi=x(ai.exec),hi=!ai.exec(ei),ui=function(t){if(!L(t))return!1;try{return si(ei,ni,t),!0}catch(t){return!1}},ci=function(t){if(!L(t))return!1;switch(ii(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hi||!!oi(ai,Zt(t))}catch(t){return!0}};ci.sham=!0;var fi,li,vi,di,pi=!si||h((function(){var t;return ui(ui.call)||!ui(Object)||!ui((function(){t=!0}))||t}))?ci:ui,yi=TypeError,gi=bt("species"),mi=function(t,r){var i,e=Rt(t).constructor;return void 0===e||O(i=Rt(e)[gi])?r:function(t){if(pi(t))return t;throw yi(K(t)+" is not a constructor")}(i)},bi=Function.prototype,wi=bi.apply,xi=bi.call,Mi="object"==typeof Reflect&&Reflect.apply||(c?xi.bind(wi):function(){return xi.apply(wi,arguments)}),ki=function(t){if("Function"===S(t))return x(t)},Si=ki(ki.bind),Ni=function(t,r){return tt(t),void 0===r?t:c?Si(t,r):function(){return t.apply(r,arguments)}},Pi=F("document","documentElement"),ji=x([].slice),Oi=TypeError,Ei=function(t,r){if(t<r)throw Oi("Not enough arguments");return t},Ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),Ci=o.setImmediate,Ai=o.clearImmediate,Ri=o.process,Bi=o.Dispatch,Li=o.Function,$i=o.MessageChannel,Ii=o.String,Di=0,Fi={},zi="onreadystatechange";h((function(){fi=o.location}));var _i=function(t){if(ft(Fi,t)){var r=Fi[t];delete Fi[t],r()}},Yi=function(t){return function(){_i(t)}},Xi=function(t){_i(t.data)},qi=function(t){o.postMessage(Ii(t),fi.protocol+"//"+fi.host)};Ci&&Ai||(Ci=function(t){Ei(arguments.length,1);var r=L(t)?t:Li(t),i=ji(arguments,1);return Fi[++Di]=function(){Mi(r,void 0,i)},li(Di),Di},Ai=function(t){delete Fi[t]},Yr?li=function(t){Ri.nextTick(Yi(t))}:Bi&&Bi.now?li=function(t){Bi.now(Yi(t))}:$i&&!Ti?(di=(vi=new $i).port2,vi.port1.onmessage=Xi,li=Ni(di.postMessage,di)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&fi&&"file:"!==fi.protocol&&!h(qi)?(li=qi,o.addEventListener("message",Xi,!1)):li=zi in Nt("script")?function(t){Pi.appendChild(Nt("script"))[zi]=function(){Pi.removeChild(this),_i(t)}}:function(t){setTimeout(Yi(t),0)});var Gi={set:Ci,clear:Ai},Ui=function(){this.head=null,this.tail=null};Ui.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 Vi,Hi,Wi,Qi,Zi,Ki=Ui,Ji=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,te=/web0s(?!.*chrome)/i.test(_),re=Gi.set,ie=o.MutationObserver||o.WebKitMutationObserver,ee=o.document,ne=o.process,se=o.Promise,ae=(0,Et.f)(o,"queueMicrotask"),oe=ae&&ae.value;if(!oe){var he=new Ki,ue=function(){var t,r;for(Yr&&(t=ne.domain)&&t.exit();r=he.get();)try{r()}catch(t){throw he.head&&Vi(),t}t&&t.enter()};Ti||Yr||te||!ie||!ee?!Ji&&se&&se.resolve?((Qi=se.resolve(void 0)).constructor=se,Zi=Ni(Qi.then,Qi),Vi=function(){Zi(ue)}):Yr?Vi=function(){ne.nextTick(ue)}:(re=Ni(re,o),Vi=function(){re(ue)}):(Hi=!0,Wi=ee.createTextNode(""),new ie(ue).observe(Wi,{characterData:!0}),Vi=function(){Wi.data=Hi=!Hi}),oe=function(t){he.head||Vi(),he.add(t)}}var ce,fe,le,ve,de=oe,pe=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ye=o.Promise,ge="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,me=!ge&&!Yr&&"object"==typeof window&&"object"==typeof document,be=bt("species"),we=!1,xe=L(o.PromiseRejectionEvent),Me=Fr("Promise",(function(){var t=Zt(ye),r=t!==String(ye);if(!r&&66===U)return!0;if(!U||U<51||!/native code/.test(t)){var i=new ye((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[be]=e,!(we=i.then((function(){}))instanceof e))return!0}return!r&&(me||ge)&&!xe})),ke={CONSTRUCTOR:Me,REJECTION_EVENT:xe,SUBCLASSING:we},Se=TypeError,Ne=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Se("Bad Promise constructor");r=t,i=e})),this.resolve=tt(r),this.reject=tt(i)},Pe={f:function(t){return new Ne(t)}},je=Gi.set,Oe="Promise",Ee=ke.CONSTRUCTOR,Te=ke.REJECTION_EVENT,Ce=ke.SUBCLASSING,Ae=or.getterFor(Oe),Re=or.set,Be=ye&&ye.prototype,Le=ye,$e=Be,Ie=o.TypeError,De=o.document,Fe=o.process,ze=Pe.f,_e=ze,Ye=!!(De&&De.createEvent&&o.dispatchEvent),Xe="unhandledrejection",qe=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Ge=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&&Qe(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ie("Promise-chain cycle")):(e=qe(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},Ue=function(t,r){t.notified||(t.notified=!0,de((function(){for(var i,e=t.reactions;i=e.get();)Ge(i,t);t.notified=!1,r&&!t.rejection&&He(t)})))},Ve=function(t,r,i){var e,n;Ye?((e=De.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Te&&(n=o["on"+t])?n(e):t===Xe&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},He=function(t){l(je,o,(function(){var r,i=t.facade,e=t.value;if(We(t)&&(r=pe((function(){Yr?Fe.emit("unhandledRejection",e,i):Ve(Xe,i,e)})),t.rejection=Yr||We(t)?2:1,r.error))throw r.value}))},We=function(t){return 1!==t.rejection&&!t.parent},Qe=function(t){l(je,o,(function(){var r=t.facade;Yr?Fe.emit("rejectionHandled",r):Ve("rejectionhandled",r,t.value)}))},Ze=function(t,r,i){return function(e){t(r,e,i)}},Ke=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,Ue(t,!0))},Je=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ie("Promise can't be resolved itself");var e=qe(r);e?de((function(){var i={done:!1};try{l(e,r,Ze(Je,i,t),Ze(Ke,i,t))}catch(r){Ke(i,r,t)}})):(t.value=r,t.state=1,Ue(t,!1))}catch(r){Ke({done:!1},r,t)}}};if(Ee&&(Le=function(t){!function(t){if(z($e,t))return t;throw Qr("Incorrect invocation")}(this),tt(t),l(ce,this);var r=Ae(this);try{t(Ze(Je,r),Ze(Ke,r))}catch(t){Ke(r,t)}},(ce=function(){Re(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:new Ki,rejection:!1,state:0,value:void 0})}).prototype=ur($e=Le.prototype,"then",(function(t,r){var i=Ae(this),e=ze(mi(this,Le));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=Yr?Fe.domain:void 0,0==i.state?i.reactions.add(e):de((function(){Ge(e,i)})),e.promise})),fe=function(){var t=new ce,r=Ae(t);this.promise=t,this.resolve=Ze(Je,r),this.reject=Ze(Ke,r)},Pe.f=ze=function(t){return t===Le||void 0===t?new fe(t):_e(t)},L(ye)&&Be!==Object.prototype)){le=Be.then,Ce||ur(Be,"then",(function(t,r){var i=this;return new Le((function(t,r){l(le,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Be.constructor}catch(t){}Gr&&Gr(Be,$e)}_r({global:!0,constructor:!0,wrap:!0,forced:Ee},{Promise:Le}),Hr(Le,Oe,!1),ve=F(Oe),u&&ve&&!ve[Wr]&&(0,_t.f)(ve,Wr,{configurable:!0,get:function(){return this}});var tn={},rn=bt("iterator"),en=Array.prototype,nn=bt("iterator"),sn=function(t){if(!O(t))return rt(t,nn)||rt(t,"@@iterator")||tn[ii(t)]},an=TypeError,on=function(t,r,i){var e,n;Rt(t);try{if(!(e=rt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return Rt(e),i},hn=TypeError,un=function(t,r){this.stopped=t,this.result=r},cn=un.prototype,fn=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Ni(r,i&&i.that),g=function(t){return e&&on(e,"normal",t),new un(!0,t)},m=function(t){return f?(Rt(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=sn(t)))throw hn(K(t)+" is not iterable");if(void 0!==(c=n)&&(tn.Array===c||en[rn]===c)){for(s=0,a=br(t);a>s;s++)if((o=m(t[s]))&&z(cn,o))return o;return new un(!1)}e=function(t,r){var i=arguments.length<2?sn(t):r;if(tt(i))return Rt(l(i,t));throw an(K(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){on(e,"throw",t)}if("object"==typeof o&&o&&z(cn,o))return o}return new un(!1)},ln=bt("iterator"),vn=!1;try{var dn=0,pn={next:function(){return{done:!!dn++}},return:function(){vn=!0}};pn[ln]=function(){return this},Array.from(pn,(function(){throw 2}))}catch(t){}var yn=ke.CONSTRUCTOR||!function(){if(!vn)return!1;var t=!1;try{var r={};r[ln]=function(){return{next:function(){return{done:t=!0}}}},ye.all(r).then(void 0,(function(){}))}catch(t){}return t}();_r({target:"Promise",stat:!0,forced:yn},{all:function(t){var r=this,i=Pe.f(r),e=i.resolve,n=i.reject,s=pe((function(){var i=tt(r.resolve),s=[],a=0,o=1;fn(t,(function(t){var h=a++,u=!1;o++,l(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 gn=ye&&ye.prototype;if(_r({target:"Promise",proto:!0,forced:ke.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(ye)){var mn=F("Promise").prototype.catch;gn.catch!==mn&&ur(gn,"catch",mn,{unsafe:!0})}_r({target:"Promise",stat:!0,forced:yn},{race:function(t){var r=this,i=Pe.f(r),e=i.reject,n=pe((function(){var n=tt(r.resolve);fn(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{reject:function(t){var r=Pe.f(this);return l(r.reject,void 0,t),r.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(Rt(t),I(r)&&r.constructor===t)return r;var i=Pe.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const bn=i(r((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})));var wn,xn=String,Mn=function(t){if("Symbol"===ii(t))throw TypeError("Cannot convert a Symbol value to a string");return xn(t)},kn=function(){var t=Rt(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},Sn=o.RegExp,Nn=h((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Pn=Nn||h((function(){return!Sn("a","y").sticky})),jn={BROKEN_CARET:Nn||h((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Pn,UNSUPPORTED_Y:Nn},On=Object.keys||function(t){return Sr(t,Nr)},En=u&&!Tt?Object.defineProperties:function(t,r){Rt(t);for(var i,e=C(r),n=On(r),s=n.length,a=0;s>a;)_t.f(t,i=n[a++],e[i]);return t},Tn={f:En},Cn="prototype",An="script",Rn=rr("IE_PROTO"),Bn=function(){},Ln=function(t){return"<"+An+">"+t+"</"+An+">"},$n=function(t){t.write(Ln("")),t.close();var r=t.parentWindow.Object;return t=null,r},In=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;In="undefined"!=typeof document?document.domain&&wn?$n(wn):(r=Nt("iframe"),i="java"+An+":",r.style.display="none",Pi.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):$n(wn);for(var e=Nr.length;e--;)delete In[Cn][Nr[e]];return In()};ir[Rn]=!0;var Dn,Fn,zn=Object.create||function(t,r){var i;return null!==t?(Bn[Cn]=Rt(t),i=new Bn,Bn[Cn]=null,i[Rn]=t):i=In(),void 0===r?i:Tn.f(i,r)},_n=o.RegExp,Yn=h((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Xn=o.RegExp,qn=h((function(){var t=Xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gn=or.get,Un=ot("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Hn=Vn,Wn=x("".charAt),Qn=x("".indexOf),Zn=x("".replace),Kn=x("".slice),Jn=(Fn=/b*/g,l(Vn,Dn=/a/,"a"),l(Vn,Fn,"a"),0!==Dn.lastIndex||0!==Fn.lastIndex),ts=jn.BROKEN_CARET,rs=void 0!==/()??/.exec("")[1];(Jn||rs||ts||Yn||qn)&&(Hn=function(t){var r,i,e,n,s,a,o,h=this,u=Gn(h),c=Mn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Hn,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=ts&&h.sticky,p=l(kn,h),y=h.source,g=0,m=c;if(d&&(p=Zn(p,"y",""),-1===Qn(p,"g")&&(p+="g"),m=Kn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Wn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),rs&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Jn&&(e=h.lastIndex),n=l(Vn,d?i:h,m),d?n?(n.input=Kn(n.input,g),n[0]=Kn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Jn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),rs&&n&&n.length>1&&l(Un,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=zn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var is=Hn;_r({target:"RegExp",proto:!0,forced:/./.exec!==is},{exec:is});var es=bt("species"),ns=RegExp.prototype,ss=function(t,r,i,e){var n=bt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[es]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=ki(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=ki(t),h=r.exec;return h===is||h===ns.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));ur(String.prototype,t,u[0]),ur(ns,n,u[1])}e&&Yt(ns[n],"sham",!0)},as=x("".charAt),os=x("".charCodeAt),hs=x("".slice),us=function(t){return function(r,i){var e,n,s=Mn(T(r)),a=vr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=os(s,a))<55296||e>56319||a+1===o||(n=os(s,a+1))<56320||n>57343?t?as(s,a):e:t?hs(s,a,a+2):n-56320+(e-55296<<10)+65536}},cs=(us(!1),us(!0)),fs=function(t,r,i){return r+(i?cs(t,r).length:1)},ls=TypeError,vs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&Rt(e),e}if("RegExp"===S(t))return l(is,t,r);throw ls("RegExp#exec called on incompatible receiver")};ss("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:rt(r,t);return e?l(e,r,i):new RegExp(r)[t](Mn(i))},function(t){var e=Rt(this),n=Mn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return vs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=vs(e,n));){var c=Mn(o[0]);h[u]=c,""===c&&(e.lastIndex=fs(n,mr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ds=Math.floor,ps=x("".charAt),ys=x("".replace),gs=x("".slice),ms=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bs=/\$([$&'`]|\d{1,2})/g,ws=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=bs;return void 0!==n&&(n=ut(n),h=ms),ys(s,h,(function(s,h){var u;switch(ps(h,0)){case"$":return"$";case"&":return t;case"`":return gs(r,0,i);case"'":return gs(r,a);case"<":u=n[gs(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ds(c/10);return 0===f?s:f<=o?void 0===e[f-1]?ps(h,1):e[f-1]+ps(h,1):s}u=e[c-1]}return void 0===u?"":u}))},xs=bt("replace"),Ms=Math.max,ks=Math.min,Ss=x([].concat),Ns=x([].push),Ps=x("".indexOf),js=x("".slice),Os="$0"==="a".replace(/./,"$0"),Es=!!/./[xs]&&""===/./[xs]("a","$0");ss("replace",(function(t,r,i){var e=Es?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:rt(t,xs);return n?l(n,t,e,i):l(r,Mn(e),t,i)},function(t,n){var s=Rt(this),a=Mn(t);if("string"==typeof n&&-1===Ps(n,e)&&-1===Ps(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=Mn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=vs(s,a);if(null===l)break;if(Ns(f,l),!u)break;""===Mn(l[0])&&(s.lastIndex=fs(a,mr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=Mn((l=f[y])[0]),m=Ms(ks(vr(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ns(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ss([g],b,m,a);void 0!==x&&Ns(M,x);var k=Mn(Mi(n,void 0,M))}else k=ws(g,a,m,b,x,n);m>=p&&(d+=js(a,p,m)+k,p=m+g.length)}return d+js(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Os||Es);var Ts,Cs=bt("match"),As=function(t){var r;return I(t)&&(void 0!==(r=t[Cs])?!!r:"RegExp"==S(t))},Rs=TypeError,Bs=function(t){if(As(t))throw Rs("The method doesn't accept regular expressions");return t},Ls=bt("match"),$s=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Ls]=!1,"/./"[t](r)}catch(t){}}return!1},Is=Et.f,Ds=ki("".startsWith),Fs=ki("".slice),zs=Math.min,_s=$s("startsWith"),Ys=!(_s||(Ts=Is(String.prototype,"startsWith"),!Ts||Ts.writable));_r({target:"String",proto:!0,forced:!Ys&&!_s},{startsWith:function(t){var r=Mn(T(this));Bs(t);var i=mr(zs(arguments.length>1?arguments[1]:void 0,r.length)),e=Mn(t);return Ds?Ds(r,e,i):Fs(r,i,i+e.length)===e}});var Xs=_t.f,qs=bt("unscopables"),Gs=Array.prototype;null==Gs[qs]&&Xs(Gs,qs,{configurable:!0,value:zn(null)});var Us,Vs,Hs,Ws=function(t){Gs[qs][t]=!0},Qs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Zs=rr("IE_PROTO"),Ks=Object,Js=Ks.prototype,ta=Qs?Ks.getPrototypeOf:function(t){var r=ut(t);if(ft(r,Zs))return r[Zs];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Ks?Js:null},ra=bt("iterator"),ia=!1;[].keys&&("next"in(Hs=[].keys())?(Vs=ta(ta(Hs)))!==Object.prototype&&(Us=Vs):ia=!0);var ea=!I(Us)||h((function(){var t={};return Us[ra].call(t)!==t}));ea&&(Us={}),L(Us[ra])||ur(Us,ra,(function(){return this}));var na={IteratorPrototype:Us,BUGGY_SAFARI_ITERATORS:ia},sa=na.IteratorPrototype,aa=function(){return this},oa=Ut.PROPER,ha=Ut.CONFIGURABLE,ua=na.IteratorPrototype,ca=na.BUGGY_SAFARI_ITERATORS,fa=bt("iterator"),la="keys",va="values",da="entries",pa=function(){return this},ya=function(t,r){return{value:t,done:r}},ga=_t.f,ma="Array Iterator",ba=or.set,wa=or.getterFor(ma),xa=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=zn(sa,{next:g(1,i)}),Hr(t,e,!1),tn[e]=aa}(i,r,(function(){var t=wa(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,ya(void 0,!0)):ya("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ca&&t in f)return f[t];switch(t){case la:case va:case da:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[fa]||f["@@iterator"]||n&&f[n],d=!ca&&v||h(n),p=f.entries||v;if(p&&(s=ta(p.call(new t)))!==Object.prototype&&s.next&&(ta(s)!==ua&&(Gr?Gr(s,ua):L(s[fa])||ur(s,fa,pa)),Hr(s,u,!0)),oa&&v&&v.name!==va&&(ha?Yt(f,"name",va):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(va),keys:h(la),entries:h(da)}))for(o in a)(ca||c||!(o in f))&&ur(f,o,a[o]);else _r({target:r,proto:!0,forced:ca||c},a);return f[fa]!==d&&ur(f,fa,d,{name:n}),tn[r]=d,a}(Array,"Array",(function(t,r){ba(this,{type:ma,target:C(t),index:0,kind:r})}),0,"values"),Ma=tn.Arguments=tn.Array;if(Ws("keys"),Ws("values"),Ws("entries"),u&&"values"!==Ma.name)try{ga(Ma,"name",{value:"values"})}catch(t){}var ka={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},Sa=Nt("span").classList,Na=Sa&&Sa.constructor&&Sa.constructor.prototype,Pa=Na===Object.prototype?void 0:Na,ja=bt("iterator"),Oa=bt("toStringTag"),Ea=xa.values,Ta=function(t,r){if(t){if(t[ja]!==Ea)try{Yt(t,ja,Ea)}catch(r){t[ja]=Ea}if(t[Oa]||Yt(t,Oa,r),ka[r])for(var i in xa)if(t[i]!==xa[i])try{Yt(t,i,xa[i])}catch(r){t[i]=xa[i]}}};for(var Ca in ka)Ta(o[Ca]&&o[Ca].prototype,Ca);Ta(Pa,"DOMTokenList");var Aa=r((function(t){var r=e.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})),Ra=r((function(t){var r=e.default;t.exports=function(t){var i=Aa(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Ba=i(r((function(t){t.exports=function(t,r,i){return(r=Ra(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var La=TypeError,$a=function(t){return function(r,i,e,n){tt(i);var s=ut(r),a=j(s),o=br(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 La("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}},Ia=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},Da=[$a(!1),$a(!0)][0],Fa=!Yr&&U>79&&U<83||!Ia("reduce");_r({target:"Array",proto:!0,forced:Fa},{reduce:function(t){var r=arguments.length;return Da(this,t,r,r>1?arguments[1]:void 0)}});var za=Et.f,_a=ki("".endsWith),Ya=ki("".slice),Xa=Math.min,qa=$s("endsWith"),Ga=!qa&&!!function(){var t=za(String.prototype,"endsWith");return t&&!t.writable}();_r({target:"String",proto:!0,forced:!Ga&&!qa},{endsWith:function(t){var r=Mn(T(this));Bs(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Xa(mr(i),e),s=Mn(t);return _a?_a(r,s,n):Ya(r,n-s.length,n)===s}});var Ua=Array,Va=Math.max,Ha=function(t,r,i){for(var e,n,s,a=br(t),o=yr(r,a),h=yr(void 0===i?a:i,a),u=Ua(Va(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=Mt(c))in e?_t.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Wa=jn.UNSUPPORTED_Y,Qa=4294967295,Za=Math.min,Ka=[].push,Ja=x(/./.exec),to=x(Ka),ro=x("".slice);ss("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=Mn(T(this)),n=void 0===i?Qa:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!As(t))return l(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=l(is,c,e))&&!((a=c.lastIndex)>u&&(to(h,ro(e,u,s.index)),s.length>1&&s.index<e.length&&Mi(Ka,h,Ha(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Ja(c,"")||to(h,""):to(h,ro(e,u)),h.length>n?Ha(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:rt(r,t);return s?l(s,r,n,i):l(e,Mn(n),r,i)},function(t,n){var s=Rt(this),a=Mn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=mi(s,RegExp),u=s.unicode,c=new h(Wa?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wa?"g":"y")),f=void 0===n?Qa:n>>>0;if(0===f)return[];if(0===a.length)return null===vs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Wa?0:v;var p,y=vs(c,Wa?ro(a,v):a);if(null===y||(p=Za(mr(c.lastIndex+(Wa?v:0)),a.length))===l)v=fs(a,v,u);else{if(to(d,ro(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(to(d,y[g]),d.length===f)return d;v=l=p}}return to(d,ro(a,l)),d}]}),!!h((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]})),Wa);for(var io=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),eo="undefined"==typeof window?t:window,no=["moz","webkit"],so="AnimationFrame",ao=eo["request"+so],oo=eo["cancel"+so]||eo["cancelRequest"+so],ho=0;!ao&&ho<no.length;ho++)ao=eo[no[ho]+"Request"+so],oo=eo[no[ho]+"Cancel"+so]||eo[no[ho]+"CancelRequest"+so];if(!ao||!oo){var uo=0,co=0,fo=[];ao=function(t){if(0===fo.length){var r=io(),i=Math.max(0,16.666666666666668-(r-uo));uo=i+r,setTimeout((function(){var t=fo.slice(0);fo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(uo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return fo.push({handle:++co,callback:t,cancelled:!1}),co},oo=function(t){for(var r=0;r<fo.length;r++)fo[r].handle===t&&(fo[r].cancelled=!0)}}var lo=function(t){return ao.call(eo,t)};lo.cancel=function(){oo.apply(eo,arguments)},lo.polyfill=function(t){t||(t=eo),t.requestAnimationFrame=ao,t.cancelAnimationFrame=oo};var vo,po="\t\n\v\f\r \u2028\u2029\ufeff",yo=x("".replace),go="["+po+"]",mo=RegExp("^"+go+go+"*"),bo=RegExp(go+go+"*$"),wo=function(t){return function(r){var i=Mn(T(r));return 1&t&&(i=yo(i,mo,"")),2&t&&(i=yo(i,bo,"")),i}},xo={start:wo(1),end:wo(2),trim:wo(3)},Mo=Ut.PROPER,ko=xo.trim;_r({target:"String",proto:!0,forced:(vo="trim",h((function(){return!!po[vo]()||"
"!=="
"[vo]()||Mo&&po[vo].name!==vo})))},{trim:function(){return ko(this)}});var So=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}},No=xr.indexOf,Po=ki([].indexOf),jo=!!Po&&1/Po([1],1,-0)<0,Oo=jo||!Ia("indexOf");_r({target:"Array",proto:!0,forced:Oo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return jo?Po(this,t,r)||0:No(this,t,r)}});var Eo=x("".indexOf);_r({target:"String",proto:!0,forced:!$s("includes")},{includes:function(t){return!!~Eo(Mn(T(this)),Mn(Bs(t)),arguments.length>1?arguments[1]:void 0)}});var To=Array.isArray||function(t){return"Array"==S(t)},Co=x([].reverse),Ao=[1,2];_r({target:"Array",proto:!0,forced:String(Ao)===String(Ao.reverse())},{reverse:function(){return To(this)&&(this.length=this.length),Co(this)}});
|
6
|
+
import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-657caece.js";import"./p-f8be5d5f.js";import"./p-d7ddd3a2.js";import"./p-fc2277fe.js";import"./p-390d7de8.js";import"./p-92de1de9.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,P=x("".split),j=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?P(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return j(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t){return L(t)?t:void 0},F=function(t,r){return arguments.length<2?D(o[t]):o[t]&&o[t][r]},z=x({}.isPrototypeOf),_="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=o.process,X=o.Deno,q=Y&&Y.versions||X&&X.version,G=q&&q.v8;G&&(s=(n=G.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&_&&(!(n=_.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=_.match(/Chrome\/(\d+)/))&&(s=+n[1]);var U=s,V=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),H=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,Q=H?function(t){return"symbol"==typeof t}:function(t){var r=F("Symbol");return L(r)&&z(r.prototype,W(t))},Z=String,K=function(t){try{return Z(t)}catch(t){return"Object"}},J=TypeError,tt=function(t){if(L(t))return t;throw J(K(t)+" is not a function")},rt=function(t,r){var i=t[r];return O(i)?void 0:tt(i)},it=TypeError,et=Object.defineProperty,nt=function(t,r){try{et(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},st="__core-js_shared__",at=o[st]||nt(st,{}),ot=r((function(t){(t.exports=function(t,r){return at[t]||(at[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"})})),ht=Object,ut=function(t){return ht(T(t))},ct=x({}.hasOwnProperty),ft=Object.hasOwn||function(t,r){return ct(ut(t),r)},lt=0,vt=Math.random(),dt=x(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++lt+vt,36)},yt=o.Symbol,gt=ot("wks"),mt=H?yt.for||yt:yt&&yt.withoutSetter||pt,bt=function(t){return ft(gt,t)||(gt[t]=V&&ft(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,xt=bt("toPrimitive"),Mt=function(t){var r=function(t,r){if(!I(t)||Q(t))return t;var i,e=rt(t,xt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||Q(i))return i;throw wt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw it("Can't convert object to primitive value")}(t,r)}(t,"string");return Q(r)?r:r+""},kt=o.document,St=I(kt)&&I(kt.createElement),Nt=function(t){return St?kt.createElement(t):{}},Pt=!u&&!h((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Ot=u?jt:function(t,r){if(t=C(t),r=Mt(r),Pt)try{return jt(t,r)}catch(t){}if(ft(t,r))return g(!l(y.f,t,r),t[r])},Et={f:Ot},Tt=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,At=TypeError,Rt=function(t){if(I(t))return t;throw At(Ct(t)+" is not an object")},Bt=TypeError,Lt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,It="enumerable",Dt="configurable",Ft="writable",zt=u?Tt?function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Ft in i&&!i[Ft]){var e=$t(t,r);e&&e[Ft]&&(t[r]=i.value,i={configurable:Dt in i?i[Dt]:e[Dt],enumerable:It in i?i[It]:e[It],writable:!1})}return Lt(t,r,i)}:Lt:function(t,r,i){if(Rt(t),r=Mt(r),Rt(i),Pt)try{return Lt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Bt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},_t={f:zt},Yt=u?function(t,r,i){return _t.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Xt=Function.prototype,qt=u&&Object.getOwnPropertyDescriptor,Gt=ft(Xt,"name"),Ut={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!u||u&&qt(Xt,"name").configurable)},Vt=x(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Vt(t)});var Ht,Wt,Qt,Zt=at.inspectSource,Kt=o.WeakMap,Jt=L(Kt)&&/native code/.test(String(Kt)),tr=ot("keys"),rr=function(t){return tr[t]||(tr[t]=pt(t))},ir={},er="Object already initialized",nr=o.TypeError;if(Jt||at.state){var sr=at.state||(at.state=new(0,o.WeakMap));sr.get=sr.get,sr.has=sr.has,sr.set=sr.set,Ht=function(t,r){if(sr.has(t))throw nr(er);return r.facade=t,sr.set(t,r),r},Wt=function(t){return sr.get(t)||{}},Qt=function(t){return sr.has(t)}}else{var ar=rr("state");ir[ar]=!0,Ht=function(t,r){if(ft(t,ar))throw nr(er);return r.facade=t,Yt(t,ar,r),r},Wt=function(t){return ft(t,ar)?t[ar]:{}},Qt=function(t){return ft(t,ar)}}var or={set:Ht,get:Wt,has:Qt,enforce:function(t){return Qt(t)?Wt(t):Ht(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Wt(r)).type!==t)throw nr("Incompatible receiver, "+t+" required");return i}}},hr=r((function(t){var r=Ut.CONFIGURABLE,i=or.enforce,e=or.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ft(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ft(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ft(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ft(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Zt(this)}),"toString")})),ur=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&hr(i,s,e),e.global)n?t[r]=i:nt(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:_t.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},cr=Math.ceil,fr=Math.floor,lr=Math.trunc||function(t){var r=+t;return(r>0?fr:cr)(r)},vr=function(t){var r=+t;return r!=r||0===r?0:lr(r)},dr=Math.max,pr=Math.min,yr=function(t,r){var i=vr(t);return i<0?dr(i+r,0):pr(i,r)},gr=Math.min,mr=function(t){return t>0?gr(vr(t),9007199254740991):0},br=function(t){return mr(t.length)},wr=function(t){return function(r,i,e){var n,s=C(r),a=br(s),o=yr(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}},xr={includes:wr(!0),indexOf:wr(!1)},Mr=xr.indexOf,kr=x([].push),Sr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ft(ir,i)&&ft(e,i)&&kr(s,i);for(;r.length>n;)ft(e,i=r[n++])&&(~Mr(s,i)||kr(s,i));return s},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=Nr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return Sr(t,Pr)},Or={f:jr},Er={f:Object.getOwnPropertySymbols},Tr=x([].concat),Cr=F("Reflect","ownKeys")||function(t){var r=Or.f(Rt(t)),i=Er.f;return i?Tr(r,i(t)):r},Ar=function(t,r,i){for(var e=Cr(r),n=_t.f,s=Et.f,a=0;a<e.length;a++){var o=e[a];ft(t,o)||i&&ft(i,o)||n(t,o,s(r,o))}},Rr=/#|\.prototype\./,Br=function(t,r){var i=$r[Lr(t)];return i==Dr||i!=Ir&&(L(r)?h(r):!!r)},Lr=Br.normalize=function(t){return String(t).replace(Rr,".").toLowerCase()},$r=Br.data={},Ir=Br.NATIVE="N",Dr=Br.POLYFILL="P",Fr=Br,zr=Et.f,_r=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||nt(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=zr(i,e))&&a.value:i[e],!Fr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Ar(s,n)}(t.sham||n&&n.sham)&&Yt(s,"sham",!0),ur(i,e,s,t)}},Yr="undefined"!=typeof process&&"process"==S(process),Xr=String,qr=TypeError,Gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Rt(i),function(t){if("object"==typeof t||L(t))return t;throw qr("Can't set "+Xr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Ur=_t.f,Vr=bt("toStringTag"),Hr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ft(t,Vr)&&Ur(t,Vr,{configurable:!0,value:r})},Wr=bt("species"),Qr=TypeError,Zr={};Zr[bt("toStringTag")]="z";var Kr="[object z]"===String(Zr),Jr=bt("toStringTag"),ti=Object,ri="Arguments"==S(function(){return arguments}()),ii=Kr?S: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=ti(t),Jr))?i:ri?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ei=function(){},ni=[],si=F("Reflect","construct"),ai=/^\s*(?:class|function)\b/,oi=x(ai.exec),hi=!ai.exec(ei),ui=function(t){if(!L(t))return!1;try{return si(ei,ni,t),!0}catch(t){return!1}},ci=function(t){if(!L(t))return!1;switch(ii(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hi||!!oi(ai,Zt(t))}catch(t){return!0}};ci.sham=!0;var fi,li,vi,di,pi=!si||h((function(){var t;return ui(ui.call)||!ui(Object)||!ui((function(){t=!0}))||t}))?ci:ui,yi=TypeError,gi=bt("species"),mi=function(t,r){var i,e=Rt(t).constructor;return void 0===e||O(i=Rt(e)[gi])?r:function(t){if(pi(t))return t;throw yi(K(t)+" is not a constructor")}(i)},bi=Function.prototype,wi=bi.apply,xi=bi.call,Mi="object"==typeof Reflect&&Reflect.apply||(c?xi.bind(wi):function(){return xi.apply(wi,arguments)}),ki=function(t){if("Function"===S(t))return x(t)},Si=ki(ki.bind),Ni=function(t,r){return tt(t),void 0===r?t:c?Si(t,r):function(){return t.apply(r,arguments)}},Pi=F("document","documentElement"),ji=x([].slice),Oi=TypeError,Ei=function(t,r){if(t<r)throw Oi("Not enough arguments");return t},Ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),Ci=o.setImmediate,Ai=o.clearImmediate,Ri=o.process,Bi=o.Dispatch,Li=o.Function,$i=o.MessageChannel,Ii=o.String,Di=0,Fi={},zi="onreadystatechange";h((function(){fi=o.location}));var _i=function(t){if(ft(Fi,t)){var r=Fi[t];delete Fi[t],r()}},Yi=function(t){return function(){_i(t)}},Xi=function(t){_i(t.data)},qi=function(t){o.postMessage(Ii(t),fi.protocol+"//"+fi.host)};Ci&&Ai||(Ci=function(t){Ei(arguments.length,1);var r=L(t)?t:Li(t),i=ji(arguments,1);return Fi[++Di]=function(){Mi(r,void 0,i)},li(Di),Di},Ai=function(t){delete Fi[t]},Yr?li=function(t){Ri.nextTick(Yi(t))}:Bi&&Bi.now?li=function(t){Bi.now(Yi(t))}:$i&&!Ti?(di=(vi=new $i).port2,vi.port1.onmessage=Xi,li=Ni(di.postMessage,di)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&fi&&"file:"!==fi.protocol&&!h(qi)?(li=qi,o.addEventListener("message",Xi,!1)):li=zi in Nt("script")?function(t){Pi.appendChild(Nt("script"))[zi]=function(){Pi.removeChild(this),_i(t)}}:function(t){setTimeout(Yi(t),0)});var Gi={set:Ci,clear:Ai},Ui=function(){this.head=null,this.tail=null};Ui.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 Vi,Hi,Wi,Qi,Zi,Ki=Ui,Ji=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,te=/web0s(?!.*chrome)/i.test(_),re=Gi.set,ie=o.MutationObserver||o.WebKitMutationObserver,ee=o.document,ne=o.process,se=o.Promise,ae=(0,Et.f)(o,"queueMicrotask"),oe=ae&&ae.value;if(!oe){var he=new Ki,ue=function(){var t,r;for(Yr&&(t=ne.domain)&&t.exit();r=he.get();)try{r()}catch(t){throw he.head&&Vi(),t}t&&t.enter()};Ti||Yr||te||!ie||!ee?!Ji&&se&&se.resolve?((Qi=se.resolve(void 0)).constructor=se,Zi=Ni(Qi.then,Qi),Vi=function(){Zi(ue)}):Yr?Vi=function(){ne.nextTick(ue)}:(re=Ni(re,o),Vi=function(){re(ue)}):(Hi=!0,Wi=ee.createTextNode(""),new ie(ue).observe(Wi,{characterData:!0}),Vi=function(){Wi.data=Hi=!Hi}),oe=function(t){he.head||Vi(),he.add(t)}}var ce,fe,le,ve,de=oe,pe=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ye=o.Promise,ge="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,me=!ge&&!Yr&&"object"==typeof window&&"object"==typeof document,be=bt("species"),we=!1,xe=L(o.PromiseRejectionEvent),Me=Fr("Promise",(function(){var t=Zt(ye),r=t!==String(ye);if(!r&&66===U)return!0;if(!U||U<51||!/native code/.test(t)){var i=new ye((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[be]=e,!(we=i.then((function(){}))instanceof e))return!0}return!r&&(me||ge)&&!xe})),ke={CONSTRUCTOR:Me,REJECTION_EVENT:xe,SUBCLASSING:we},Se=TypeError,Ne=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Se("Bad Promise constructor");r=t,i=e})),this.resolve=tt(r),this.reject=tt(i)},Pe={f:function(t){return new Ne(t)}},je=Gi.set,Oe="Promise",Ee=ke.CONSTRUCTOR,Te=ke.REJECTION_EVENT,Ce=ke.SUBCLASSING,Ae=or.getterFor(Oe),Re=or.set,Be=ye&&ye.prototype,Le=ye,$e=Be,Ie=o.TypeError,De=o.document,Fe=o.process,ze=Pe.f,_e=ze,Ye=!!(De&&De.createEvent&&o.dispatchEvent),Xe="unhandledrejection",qe=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Ge=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&&Qe(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ie("Promise-chain cycle")):(e=qe(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},Ue=function(t,r){t.notified||(t.notified=!0,de((function(){for(var i,e=t.reactions;i=e.get();)Ge(i,t);t.notified=!1,r&&!t.rejection&&He(t)})))},Ve=function(t,r,i){var e,n;Ye?((e=De.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Te&&(n=o["on"+t])?n(e):t===Xe&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},He=function(t){l(je,o,(function(){var r,i=t.facade,e=t.value;if(We(t)&&(r=pe((function(){Yr?Fe.emit("unhandledRejection",e,i):Ve(Xe,i,e)})),t.rejection=Yr||We(t)?2:1,r.error))throw r.value}))},We=function(t){return 1!==t.rejection&&!t.parent},Qe=function(t){l(je,o,(function(){var r=t.facade;Yr?Fe.emit("rejectionHandled",r):Ve("rejectionhandled",r,t.value)}))},Ze=function(t,r,i){return function(e){t(r,e,i)}},Ke=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,Ue(t,!0))},Je=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ie("Promise can't be resolved itself");var e=qe(r);e?de((function(){var i={done:!1};try{l(e,r,Ze(Je,i,t),Ze(Ke,i,t))}catch(r){Ke(i,r,t)}})):(t.value=r,t.state=1,Ue(t,!1))}catch(r){Ke({done:!1},r,t)}}};if(Ee&&(Le=function(t){!function(t){if(z($e,t))return t;throw Qr("Incorrect invocation")}(this),tt(t),l(ce,this);var r=Ae(this);try{t(Ze(Je,r),Ze(Ke,r))}catch(t){Ke(r,t)}},(ce=function(){Re(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:new Ki,rejection:!1,state:0,value:void 0})}).prototype=ur($e=Le.prototype,"then",(function(t,r){var i=Ae(this),e=ze(mi(this,Le));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=Yr?Fe.domain:void 0,0==i.state?i.reactions.add(e):de((function(){Ge(e,i)})),e.promise})),fe=function(){var t=new ce,r=Ae(t);this.promise=t,this.resolve=Ze(Je,r),this.reject=Ze(Ke,r)},Pe.f=ze=function(t){return t===Le||void 0===t?new fe(t):_e(t)},L(ye)&&Be!==Object.prototype)){le=Be.then,Ce||ur(Be,"then",(function(t,r){var i=this;return new Le((function(t,r){l(le,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Be.constructor}catch(t){}Gr&&Gr(Be,$e)}_r({global:!0,constructor:!0,wrap:!0,forced:Ee},{Promise:Le}),Hr(Le,Oe,!1),ve=F(Oe),u&&ve&&!ve[Wr]&&(0,_t.f)(ve,Wr,{configurable:!0,get:function(){return this}});var tn={},rn=bt("iterator"),en=Array.prototype,nn=bt("iterator"),sn=function(t){if(!O(t))return rt(t,nn)||rt(t,"@@iterator")||tn[ii(t)]},an=TypeError,on=function(t,r,i){var e,n;Rt(t);try{if(!(e=rt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return Rt(e),i},hn=TypeError,un=function(t,r){this.stopped=t,this.result=r},cn=un.prototype,fn=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Ni(r,i&&i.that),g=function(t){return e&&on(e,"normal",t),new un(!0,t)},m=function(t){return f?(Rt(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=sn(t)))throw hn(K(t)+" is not iterable");if(void 0!==(c=n)&&(tn.Array===c||en[rn]===c)){for(s=0,a=br(t);a>s;s++)if((o=m(t[s]))&&z(cn,o))return o;return new un(!1)}e=function(t,r){var i=arguments.length<2?sn(t):r;if(tt(i))return Rt(l(i,t));throw an(K(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){on(e,"throw",t)}if("object"==typeof o&&o&&z(cn,o))return o}return new un(!1)},ln=bt("iterator"),vn=!1;try{var dn=0,pn={next:function(){return{done:!!dn++}},return:function(){vn=!0}};pn[ln]=function(){return this},Array.from(pn,(function(){throw 2}))}catch(t){}var yn=ke.CONSTRUCTOR||!function(){if(!vn)return!1;var t=!1;try{var r={};r[ln]=function(){return{next:function(){return{done:t=!0}}}},ye.all(r).then(void 0,(function(){}))}catch(t){}return t}();_r({target:"Promise",stat:!0,forced:yn},{all:function(t){var r=this,i=Pe.f(r),e=i.resolve,n=i.reject,s=pe((function(){var i=tt(r.resolve),s=[],a=0,o=1;fn(t,(function(t){var h=a++,u=!1;o++,l(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 gn=ye&&ye.prototype;if(_r({target:"Promise",proto:!0,forced:ke.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(ye)){var mn=F("Promise").prototype.catch;gn.catch!==mn&&ur(gn,"catch",mn,{unsafe:!0})}_r({target:"Promise",stat:!0,forced:yn},{race:function(t){var r=this,i=Pe.f(r),e=i.reject,n=pe((function(){var n=tt(r.resolve);fn(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{reject:function(t){var r=Pe.f(this);return l(r.reject,void 0,t),r.promise}}),_r({target:"Promise",stat:!0,forced:ke.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(Rt(t),I(r)&&r.constructor===t)return r;var i=Pe.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const bn=i(r((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})));var wn,xn=String,Mn=function(t){if("Symbol"===ii(t))throw TypeError("Cannot convert a Symbol value to a string");return xn(t)},kn=function(){var t=Rt(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},Sn=o.RegExp,Nn=h((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Pn=Nn||h((function(){return!Sn("a","y").sticky})),jn={BROKEN_CARET:Nn||h((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Pn,UNSUPPORTED_Y:Nn},On=Object.keys||function(t){return Sr(t,Nr)},En=u&&!Tt?Object.defineProperties:function(t,r){Rt(t);for(var i,e=C(r),n=On(r),s=n.length,a=0;s>a;)_t.f(t,i=n[a++],e[i]);return t},Tn={f:En},Cn="prototype",An="script",Rn=rr("IE_PROTO"),Bn=function(){},Ln=function(t){return"<"+An+">"+t+"</"+An+">"},$n=function(t){t.write(Ln("")),t.close();var r=t.parentWindow.Object;return t=null,r},In=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;In="undefined"!=typeof document?document.domain&&wn?$n(wn):(r=Nt("iframe"),i="java"+An+":",r.style.display="none",Pi.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):$n(wn);for(var e=Nr.length;e--;)delete In[Cn][Nr[e]];return In()};ir[Rn]=!0;var Dn,Fn,zn=Object.create||function(t,r){var i;return null!==t?(Bn[Cn]=Rt(t),i=new Bn,Bn[Cn]=null,i[Rn]=t):i=In(),void 0===r?i:Tn.f(i,r)},_n=o.RegExp,Yn=h((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Xn=o.RegExp,qn=h((function(){var t=Xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gn=or.get,Un=ot("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Hn=Vn,Wn=x("".charAt),Qn=x("".indexOf),Zn=x("".replace),Kn=x("".slice),Jn=(Fn=/b*/g,l(Vn,Dn=/a/,"a"),l(Vn,Fn,"a"),0!==Dn.lastIndex||0!==Fn.lastIndex),ts=jn.BROKEN_CARET,rs=void 0!==/()??/.exec("")[1];(Jn||rs||ts||Yn||qn)&&(Hn=function(t){var r,i,e,n,s,a,o,h=this,u=Gn(h),c=Mn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Hn,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=ts&&h.sticky,p=l(kn,h),y=h.source,g=0,m=c;if(d&&(p=Zn(p,"y",""),-1===Qn(p,"g")&&(p+="g"),m=Kn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Wn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),rs&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Jn&&(e=h.lastIndex),n=l(Vn,d?i:h,m),d?n?(n.input=Kn(n.input,g),n[0]=Kn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Jn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),rs&&n&&n.length>1&&l(Un,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=zn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var is=Hn;_r({target:"RegExp",proto:!0,forced:/./.exec!==is},{exec:is});var es=bt("species"),ns=RegExp.prototype,ss=function(t,r,i,e){var n=bt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[es]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=ki(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=ki(t),h=r.exec;return h===is||h===ns.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));ur(String.prototype,t,u[0]),ur(ns,n,u[1])}e&&Yt(ns[n],"sham",!0)},as=x("".charAt),os=x("".charCodeAt),hs=x("".slice),us=function(t){return function(r,i){var e,n,s=Mn(T(r)),a=vr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=os(s,a))<55296||e>56319||a+1===o||(n=os(s,a+1))<56320||n>57343?t?as(s,a):e:t?hs(s,a,a+2):n-56320+(e-55296<<10)+65536}},cs=(us(!1),us(!0)),fs=function(t,r,i){return r+(i?cs(t,r).length:1)},ls=TypeError,vs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&Rt(e),e}if("RegExp"===S(t))return l(is,t,r);throw ls("RegExp#exec called on incompatible receiver")};ss("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:rt(r,t);return e?l(e,r,i):new RegExp(r)[t](Mn(i))},function(t){var e=Rt(this),n=Mn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return vs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=vs(e,n));){var c=Mn(o[0]);h[u]=c,""===c&&(e.lastIndex=fs(n,mr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ds=Math.floor,ps=x("".charAt),ys=x("".replace),gs=x("".slice),ms=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bs=/\$([$&'`]|\d{1,2})/g,ws=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=bs;return void 0!==n&&(n=ut(n),h=ms),ys(s,h,(function(s,h){var u;switch(ps(h,0)){case"$":return"$";case"&":return t;case"`":return gs(r,0,i);case"'":return gs(r,a);case"<":u=n[gs(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ds(c/10);return 0===f?s:f<=o?void 0===e[f-1]?ps(h,1):e[f-1]+ps(h,1):s}u=e[c-1]}return void 0===u?"":u}))},xs=bt("replace"),Ms=Math.max,ks=Math.min,Ss=x([].concat),Ns=x([].push),Ps=x("".indexOf),js=x("".slice),Os="$0"==="a".replace(/./,"$0"),Es=!!/./[xs]&&""===/./[xs]("a","$0");ss("replace",(function(t,r,i){var e=Es?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:rt(t,xs);return n?l(n,t,e,i):l(r,Mn(e),t,i)},function(t,n){var s=Rt(this),a=Mn(t);if("string"==typeof n&&-1===Ps(n,e)&&-1===Ps(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=Mn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=vs(s,a);if(null===l)break;if(Ns(f,l),!u)break;""===Mn(l[0])&&(s.lastIndex=fs(a,mr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=Mn((l=f[y])[0]),m=Ms(ks(vr(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ns(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ss([g],b,m,a);void 0!==x&&Ns(M,x);var k=Mn(Mi(n,void 0,M))}else k=ws(g,a,m,b,x,n);m>=p&&(d+=js(a,p,m)+k,p=m+g.length)}return d+js(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Os||Es);var Ts,Cs=bt("match"),As=function(t){var r;return I(t)&&(void 0!==(r=t[Cs])?!!r:"RegExp"==S(t))},Rs=TypeError,Bs=function(t){if(As(t))throw Rs("The method doesn't accept regular expressions");return t},Ls=bt("match"),$s=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Ls]=!1,"/./"[t](r)}catch(t){}}return!1},Is=Et.f,Ds=ki("".startsWith),Fs=ki("".slice),zs=Math.min,_s=$s("startsWith"),Ys=!(_s||(Ts=Is(String.prototype,"startsWith"),!Ts||Ts.writable));_r({target:"String",proto:!0,forced:!Ys&&!_s},{startsWith:function(t){var r=Mn(T(this));Bs(t);var i=mr(zs(arguments.length>1?arguments[1]:void 0,r.length)),e=Mn(t);return Ds?Ds(r,e,i):Fs(r,i,i+e.length)===e}});var Xs=_t.f,qs=bt("unscopables"),Gs=Array.prototype;null==Gs[qs]&&Xs(Gs,qs,{configurable:!0,value:zn(null)});var Us,Vs,Hs,Ws=function(t){Gs[qs][t]=!0},Qs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Zs=rr("IE_PROTO"),Ks=Object,Js=Ks.prototype,ta=Qs?Ks.getPrototypeOf:function(t){var r=ut(t);if(ft(r,Zs))return r[Zs];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Ks?Js:null},ra=bt("iterator"),ia=!1;[].keys&&("next"in(Hs=[].keys())?(Vs=ta(ta(Hs)))!==Object.prototype&&(Us=Vs):ia=!0);var ea=!I(Us)||h((function(){var t={};return Us[ra].call(t)!==t}));ea&&(Us={}),L(Us[ra])||ur(Us,ra,(function(){return this}));var na={IteratorPrototype:Us,BUGGY_SAFARI_ITERATORS:ia},sa=na.IteratorPrototype,aa=function(){return this},oa=Ut.PROPER,ha=Ut.CONFIGURABLE,ua=na.IteratorPrototype,ca=na.BUGGY_SAFARI_ITERATORS,fa=bt("iterator"),la="keys",va="values",da="entries",pa=function(){return this},ya=function(t,r){return{value:t,done:r}},ga=_t.f,ma="Array Iterator",ba=or.set,wa=or.getterFor(ma),xa=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=zn(sa,{next:g(1,i)}),Hr(t,e,!1),tn[e]=aa}(i,r,(function(){var t=wa(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,ya(void 0,!0)):ya("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ca&&t in f)return f[t];switch(t){case la:case va:case da:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[fa]||f["@@iterator"]||n&&f[n],d=!ca&&v||h(n),p=f.entries||v;if(p&&(s=ta(p.call(new t)))!==Object.prototype&&s.next&&(ta(s)!==ua&&(Gr?Gr(s,ua):L(s[fa])||ur(s,fa,pa)),Hr(s,u,!0)),oa&&v&&v.name!==va&&(ha?Yt(f,"name",va):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(va),keys:h(la),entries:h(da)}))for(o in a)(ca||c||!(o in f))&&ur(f,o,a[o]);else _r({target:r,proto:!0,forced:ca||c},a);return f[fa]!==d&&ur(f,fa,d,{name:n}),tn[r]=d,a}(Array,"Array",(function(t,r){ba(this,{type:ma,target:C(t),index:0,kind:r})}),0,"values"),Ma=tn.Arguments=tn.Array;if(Ws("keys"),Ws("values"),Ws("entries"),u&&"values"!==Ma.name)try{ga(Ma,"name",{value:"values"})}catch(t){}var ka={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},Sa=Nt("span").classList,Na=Sa&&Sa.constructor&&Sa.constructor.prototype,Pa=Na===Object.prototype?void 0:Na,ja=bt("iterator"),Oa=bt("toStringTag"),Ea=xa.values,Ta=function(t,r){if(t){if(t[ja]!==Ea)try{Yt(t,ja,Ea)}catch(r){t[ja]=Ea}if(t[Oa]||Yt(t,Oa,r),ka[r])for(var i in xa)if(t[i]!==xa[i])try{Yt(t,i,xa[i])}catch(r){t[i]=xa[i]}}};for(var Ca in ka)Ta(o[Ca]&&o[Ca].prototype,Ca);Ta(Pa,"DOMTokenList");var Aa=r((function(t){var r=e.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})),Ra=r((function(t){var r=e.default;t.exports=function(t){var i=Aa(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Ba=i(r((function(t){t.exports=function(t,r,i){return(r=Ra(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var La=TypeError,$a=function(t){return function(r,i,e,n){tt(i);var s=ut(r),a=j(s),o=br(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 La("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}},Ia=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},Da=[$a(!1),$a(!0)][0],Fa=!Yr&&U>79&&U<83||!Ia("reduce");_r({target:"Array",proto:!0,forced:Fa},{reduce:function(t){var r=arguments.length;return Da(this,t,r,r>1?arguments[1]:void 0)}});var za=Et.f,_a=ki("".endsWith),Ya=ki("".slice),Xa=Math.min,qa=$s("endsWith"),Ga=!qa&&!!function(){var t=za(String.prototype,"endsWith");return t&&!t.writable}();_r({target:"String",proto:!0,forced:!Ga&&!qa},{endsWith:function(t){var r=Mn(T(this));Bs(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Xa(mr(i),e),s=Mn(t);return _a?_a(r,s,n):Ya(r,n-s.length,n)===s}});var Ua=Array,Va=Math.max,Ha=function(t,r,i){for(var e,n,s,a=br(t),o=yr(r,a),h=yr(void 0===i?a:i,a),u=Ua(Va(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=Mt(c))in e?_t.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Wa=jn.UNSUPPORTED_Y,Qa=4294967295,Za=Math.min,Ka=[].push,Ja=x(/./.exec),to=x(Ka),ro=x("".slice);ss("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=Mn(T(this)),n=void 0===i?Qa:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!As(t))return l(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=l(is,c,e))&&!((a=c.lastIndex)>u&&(to(h,ro(e,u,s.index)),s.length>1&&s.index<e.length&&Mi(Ka,h,Ha(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Ja(c,"")||to(h,""):to(h,ro(e,u)),h.length>n?Ha(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:rt(r,t);return s?l(s,r,n,i):l(e,Mn(n),r,i)},function(t,n){var s=Rt(this),a=Mn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=mi(s,RegExp),u=s.unicode,c=new h(Wa?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wa?"g":"y")),f=void 0===n?Qa:n>>>0;if(0===f)return[];if(0===a.length)return null===vs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Wa?0:v;var p,y=vs(c,Wa?ro(a,v):a);if(null===y||(p=Za(mr(c.lastIndex+(Wa?v:0)),a.length))===l)v=fs(a,v,u);else{if(to(d,ro(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(to(d,y[g]),d.length===f)return d;v=l=p}}return to(d,ro(a,l)),d}]}),!!h((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]})),Wa);for(var io=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),eo="undefined"==typeof window?t:window,no=["moz","webkit"],so="AnimationFrame",ao=eo["request"+so],oo=eo["cancel"+so]||eo["cancelRequest"+so],ho=0;!ao&&ho<no.length;ho++)ao=eo[no[ho]+"Request"+so],oo=eo[no[ho]+"Cancel"+so]||eo[no[ho]+"CancelRequest"+so];if(!ao||!oo){var uo=0,co=0,fo=[];ao=function(t){if(0===fo.length){var r=io(),i=Math.max(0,16.666666666666668-(r-uo));uo=i+r,setTimeout((function(){var t=fo.slice(0);fo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(uo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return fo.push({handle:++co,callback:t,cancelled:!1}),co},oo=function(t){for(var r=0;r<fo.length;r++)fo[r].handle===t&&(fo[r].cancelled=!0)}}var lo=function(t){return ao.call(eo,t)};lo.cancel=function(){oo.apply(eo,arguments)},lo.polyfill=function(t){t||(t=eo),t.requestAnimationFrame=ao,t.cancelAnimationFrame=oo};var vo,po="\t\n\v\f\r \u2028\u2029\ufeff",yo=x("".replace),go="["+po+"]",mo=RegExp("^"+go+go+"*"),bo=RegExp(go+go+"*$"),wo=function(t){return function(r){var i=Mn(T(r));return 1&t&&(i=yo(i,mo,"")),2&t&&(i=yo(i,bo,"")),i}},xo={start:wo(1),end:wo(2),trim:wo(3)},Mo=Ut.PROPER,ko=xo.trim;_r({target:"String",proto:!0,forced:(vo="trim",h((function(){return!!po[vo]()||"
"!=="
"[vo]()||Mo&&po[vo].name!==vo})))},{trim:function(){return ko(this)}});var So=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}},No=xr.indexOf,Po=ki([].indexOf),jo=!!Po&&1/Po([1],1,-0)<0,Oo=jo||!Ia("indexOf");_r({target:"Array",proto:!0,forced:Oo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return jo?Po(this,t,r)||0:No(this,t,r)}});var Eo=x("".indexOf);_r({target:"String",proto:!0,forced:!$s("includes")},{includes:function(t){return!!~Eo(Mn(T(this)),Mn(Bs(t)),arguments.length>1?arguments[1]:void 0)}});var To=Array.isArray||function(t){return"Array"==S(t)},Co=x([].reverse),Ao=[1,2];_r({target:"Array",proto:!0,forced:String(Ao)===String(Ao.reverse())},{reverse:function(){return To(this)&&(this.length=this.length),Co(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 e,H as s,g as l}from"./p-f8be5d5f.js";import{a,b as n,c as o}from"./p-92de1de9.js";import{l as d}from"./p-d7ddd3a2.js";import{g as c,h as r}from"./p-390d7de8.js";import{s as h}from"./p-a29ba58a.js";import{g as p}from"./p-fc2277fe.js";import"./p-4ff653eb.js";import"./p-e1a4994d.js";const g=class{constructor(e){t(this,e),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),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.featureEffect=void 0,this.featureHighlightEnabled=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._addMap=!1,this._addTitle=!1,this._downloadActive=!0,this._exportType=a.PDF,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)}async watchSearchConfigurationHandler(t,i){const e=JSON.stringify(t);e!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(e),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 e;if(this._checkPopups(),(null===(e=this.mapView)||void 0===e?void 0:e.popup)&&(this.mapView.popup.autoOpenEnabled=t===n.LIST&&this._popupsEnabled),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols()}render(){return e(s,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"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 _initModules(){const[t,i]=await d(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_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"})}_getActionGroup(t,i,s){return e("calcite-action-group",{class:"action-center"+(this.showRefineSelection?" w-1-3":" w-1-2"),layout:"horizontal"},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"),t?this._getSelectionSetList():null,e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},this._translations.add)))}_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 l;const a=this._getSelectionSetIds(i);let n=!0;return i.workflowType===o.REFINE&&(n=Object.keys(i.refineInfos).reduce(((t,e)=>{const s=i.refineInfos[e];return t+(s.addIds.length+s.removeIds.length)}),0)>0),n&&t.push(e("calcite-list-item",{description:this._translations.selectedFeatures.replace("{{n}}",a.length.toString()),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===(l=null==i?void 0:i.layerView)||void 0===l?void 0:l.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.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!==o.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,e)=>[...i,...t.refineInfos[e].addIds]),[])}_hasSelections(t=!1){let i=[];const e=this._selectionSets.some((t=>{if(t.workflowType===o.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&e?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}_hasDuplicates(){const t=this._getSelectedIds();return this._getNumDuplicates(t)>0}_getNumDuplicates(t){return t.length-new Set(t).size}_getSelectedIds(){return this._selectionSets.reduce(((t,i)=>t.concat(i.download?i.selectedIds:[])),[])}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t),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.selectionLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,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._getNumDuplicates(this._getSelectedIds());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"},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}}",i.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",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)},e("calcite-segmented-control-item",{checked:this._exportType===a.PDF,class:"w-50 end-border",value:a.PDF},this._translations.pdf),e("calcite-segmented-control-item",{checked:this._exportType===a.CSV,class:"w-50",value:a.CSV},this._translations.csv))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive,onClick:()=>{this._export()},width:"full"},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";return e("div",{class:this._exportType===a.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"},this._translations.selectPDFLabelOption)),e("div",{class:"padding-sides-1"},e("pdf-download",{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.addTitle)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",placeholder:this._translations.titlePlaceholder,ref:t=>{this._title=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_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,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,l,a,n){return e("div",null,e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},t)),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:a,onClick:n,width:"full"},l)))}_getNotice(t,i="padding-1"){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{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)=>{const s=this._getSelectionSetIds(i),l=i.workflowType!==o.REFINE||s.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",{description:this._translations.selectedFeatures.replace("{{n}}",s.length.toString()),disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}})))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((e=>(e.download=e.id===t?!e.download:e.download,i=!!e.download||i,e))),this._downloadActive=i,await this._highlightFeatures()}async _export(){const t=this._getSelectionIdsAndViews(this._selectionSets,!0);if(this._exportType===a.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._downloadTools.downloadPDF(t,this._removeDuplicates.checked,this._addTitle?this._title.value:"",i)}this._exportType===a.CSV&&this._downloadTools.downloadCSV(t,this._removeDuplicates.checked)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var e;if(i.workflowType===o.REFINE)Object.keys(i.refineInfos).forEach((e=>{const s=i.refineInfos[e];s.addIds&&(t=this._updateExportInfos(t,s.layerView.layer.id,i.label,s.addIds,s.layerView))}));else{const s=null===(e=null==i?void 0:i.layerView)||void 0===e?void 0:e.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,e,s,l){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...s])],t[i].selectionSetNames.push(e)):i&&(t[i]={ids:s,layerView:l,selectionSetNames:[e]}),t}_getAction(t,i,s,l,a=!1,n=""){return e("calcite-action",{disabled:!t,icon:i,indicator:a,onClick:l,slot:n,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 e=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),s=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=s?this._selectionSets.map((t=>t.id===e.id?e:t)):[...this._selectionSets,e],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,e)=>{if(e!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){c(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===o.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 e=0;e<i.length;e++){const s=t[i[e]];h.highlightHandles.push(await r(s.ids,s.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popup.autoOpenEnabled)}_clearHighlight(){h&&h.highlightHandles&&h.removeHandles()}async _getTranslations(){const t=await p(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"]}}};g.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-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;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-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;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{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-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-ui-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{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}';export{g as public_notification}
|
@@ -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{r as t,h as i,H as e,g as s,c as a}from"./p-f8be5d5f.js";import{l as o}from"./p-d7ddd3a2.js";import{g as l}from"./p-fc2277fe.js";import{i as n,b as c,g as h,j as r}from"./p-390d7de8.js";import{d}from"./p-
|
6
|
+
import{r as t,h as i,H as e,g as s,c as a}from"./p-f8be5d5f.js";import{l as o}from"./p-d7ddd3a2.js";import{g as l}from"./p-fc2277fe.js";import{i as n,b as c,g as h,j as r}from"./p-390d7de8.js";import{d}from"./p-657caece.js";import{g as p}from"./p-92de1de9.js";import"./p-e1a4994d.js";const m=class{constructor(i){t(this,i),this._fieldNames=[],this._graphics=[],this.onTableNodeCreate=t=>{this._tableNode=t,this._getTable(t)},this.mapView=void 0,this._layerView=void 0,this._selectedIndexes=[],this._translations=void 0}async mapViewWatchHandler(){const t=await n(this.mapView);this._layerView=await c(this.mapView,t[0])}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return this._layerView?i(e,null,this._getTableControlRow(),i("div",{class:"table-div width-full"},i("calcite-panel",{class:"height-full width-full"},i("div",{ref:this.onTableNodeCreate}))),i("edit-record-modal",{ref:t=>this._editMultipleMpdal=t})):null}async _initModules(){const[t]=await o(["esri/widgets/FeatureTable"]);this.FeatureTable=t}_getTableControlRow(){const t=this._selectedIndexes.length>0,e=this._selectedIndexes.length>1;return i("div",{class:"display-flex table-border"},i("map-layer-picker",{mapView:this.mapView,onLayerSelectionChange:t=>this._layerSelectionChanged(t)}),i("div",null,i("calcite-button",{appearance:"transparent",color:"neutral",disabled:!t,iconStart:"magnifying-glass",onClick:()=>this._zoom()},this._translations.zoom),i("calcite-button",{appearance:"transparent",color:"neutral",disabled:!e,iconStart:"pencil",onClick:()=>this._editMultiple()},this._translations.editMultiple),i("calcite-button",{appearance:"transparent",color:"neutral",disabled:!t,iconStart:"trash",onClick:()=>this._delete()},this._translations.delete),i("calcite-split-button",{appearance:"transparent",color:"neutral","primary-text":this._translations.more},i("calcite-dropdown-group",{"selection-mode":"none"},i("calcite-dropdown-item",{iconStart:"list-check-all",onClick:()=>this._selectAll(!0)},this._translations.selectAll),i("calcite-dropdown-item",{iconStart:"selected-items-filter",onClick:()=>this._showSelected()},this._translations.showSelected),i("calcite-dropdown-item",{iconStart:"erase",onClick:()=>this._clearSelection()},this._translations.clearSelection),i("calcite-dropdown-item",{iconStart:"refresh",onClick:()=>this._switchSelected()},this._translations.switchSelected),i("calcite-dropdown-item",{iconStart:"export",onClick:()=>this._exportToCSV()},this._translations.exportCSV)))))}_getTable(t){var i;(null===(i=this._layerView)||void 0===i?void 0:i.layer)&&(this._table=new this.FeatureTable({layer:this._layerView.layer,view:this.mapView,editingEnabled:!0,highlightOnRowSelectEnabled:!0,multiSortEnabled:!1,visibleElements:{header:!1,menu:!1},container:t}))}_selectAll(t){this._selectedIndexes=t?this._graphics.map(((t,i)=>i)):[]}_showSelected(){console.log("_showSelected")}_clearSelection(){this._selectedIndexes=[]}_switchSelected(){const t=[...this._selectedIndexes];this._selectedIndexes=this._graphics.reduce(((i,e,s)=>(t.indexOf(s)<0&&i.push(s),i)),[])}_exportToCSV(){d([],this._layerView.layer,this._getSelectedIds(),!1,!1,!0)}_zoom(){const t=this._getSelectedIds();h(t,this._layerView,this.mapView,!0)}_editMultiple(){this._editMultipleMpdal.open=!0}_delete(){console.log("delete")}_getGraphics(t){return this._graphics.filter(((i,e)=>t.indexOf(e)>-1))}_getSelectedIds(){return this._getGraphics(this._selectedIndexes).map((t=>t.getObjectId()))}_rowSelected(t){const i=this._selectedIndexes.indexOf(t);i>-1?(this._selectedIndexes.splice(i,1),this._selectedIndexes=[...this._selectedIndexes]):this._selectedIndexes=[...this._selectedIndexes,t]}async _layerSelectionChanged(t){const i=t.detail[0];this._layerView=await c(this.mapView,i),this._fieldNames=this._layerView.layer.fields.map((t=>t.alias||t.name)),this._graphics=await r(0,this._layerView.layer,[]),this._selectedIndexes=[],this._table.layer=this._layerView.layer,this._table.render()}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};m.style=":host{display:block}.table-div{height:calc(100% - 35px)}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}";const u=class{constructor(i){t(this,i),this.expandMap=a(this,"expandMap",7),this.mapChanged=a(this,"mapChanged",7),this._loadedId="",this.mapInfos=[],this.mapView=void 0,this._mapListExpanded=!1,this._translations=void 0,this._webMapId=""}_webMapIdWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._loadMap(t)}mapInfosWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._loadMap(t[0].id)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidRender(){this._loadMap(this._webMapId)}render(){return i(e,null,this._getToolbar(),this._getMapNameList(this._mapListExpanded),i("div",{class:"map-height",ref:t=>this._mapDiv=t}))}async _initModules(){const[t,i]=await o(["esri/WebMap","esri/views/MapView"]);this.WebMap=t,this.MapView=i}_getToolbar(){return i("div",{class:"display-flex"},i("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker(),this._getActionGroup("home",!1,this._translations.home,(()=>this._goHome())),this._getActionGroup("list",!1,this._translations.list,(()=>this._showList())),this._getActionGroup("magnifying-glass-plus",!1,this._translations.search,(()=>this._search())),this._getActionGroup("plus",!1,this._translations.zoomIn,(()=>this._zoomIn())),this._getActionGroup("minus",!1,this._translations.zoomOut,(()=>this._zoomOut())),this._getActionGroup("expand",!1,this._translations.expand,(()=>this._expand()))))}_loadMap(t){if(""===t&&this.mapInfos.length>0&&(t=this.mapInfos[0].id),this._loadedId!==t){const i=new this.WebMap({portalItem:{id:t}});this.mapView=new this.MapView({container:this._mapDiv,map:i,resizeAlign:"top-left"}),this._loadedId=t,this.mapChanged.emit(this.mapView)}}_getActionGroup(t,e,s,a){return i("calcite-action-group",{class:"action-center width-1-6",layout:"horizontal"},i("calcite-action",{alignment:"center",class:"width-full height-full",compact:!1,disabled:e,icon:t,id:t,onClick:a,text:""},i("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),i("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},i("span",null,s)))}_getMapPicker(){const t=this._mapListExpanded?"chevron-up":"chevron-down";return i("calcite-action-group",{class:"action-center width-1-6",layout:"horizontal"},i("calcite-block",{class:"action-center block-button width-full height-full display-grid",heading:"",onClick:()=>this._chooseMap()},i("calcite-icon",{icon:"map",scale:"s",slot:"icon"}),i("calcite-icon",{icon:t,scale:"s",slot:"icon"}),i("calcite-tooltip",{label:"",placement:"bottom"},i("span",null,this._translations.mapName))))}_getMapNameList(t){return i("div",{class:t?"map-list":"display-none"},i("calcite-pick-list",{id:"mapList"},this.mapInfos.map((t=>i("calcite-pick-list-item",{label:t.name,onClick:()=>this._webMapSelected(t.id),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){this._mapListExpanded=!1,this._webMapId=t}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}_goHome(){alert("go home")}_showList(){alert("show list")}_search(){alert("search")}_zoomIn(){alert("zoom in")}_zoomOut(){alert("zoom out")}_expand(){this.expandMap.emit(p.EXPAND)}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{_webMapId:["_webMapIdWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};u.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.action-bar-size{height:3.5rem;width:100%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.width-1-7{width:14.28%}.width-1-6{width:16.66%}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.display-grid{display:inline-grid}.block-button{border-bottom:0}.block-button:hover{background-color:var(--calcite-ui-foreground-2)}.block-button:active{background-color:var(--calcite-ui-foreground-3)}.map-list{position:absolute;inset:3.5rem 0 0 0;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background);z-index:1;width:100%;height:-moz-fit-content;height:fit-content}.map-height{height:calc(100% - 58px)}.display-none{display:none}.esri-zoom{display:none !important}";export{m as layer_table,u as map_card}
|